Skip to main content
Adobe Photoshop Family

3 Messages

 • 

120 Points

Tue, Dec 18, 2018 8:09 PM

In progress

Photoshop: Plugin crema causing generator to break

In Adobe CC 2019 there is a generator plugin called crema (I believe is the new engine for save for web) which is causing an unknown Javascript Error and making Adobe Generator Engine Unstable, I have some plugins that use adobe generator engine to work and at some point this Unknown Javascript Error is making the engine crash.

I would love some advice on this.
[warning:crema 11:31:55.658 index.js:61:21] user settings file could not be created[warning:core 11:31:55.998 generator.js:133:30] Photoshop error { id: 5, body: 'Error: No image open' }
[warning:generator-assets 11:31:56.001 documentmanager.js:336:26] Error: No image open
[warning:core 11:31:56.531 generator.js:133:30] Photoshop error { id: 11, body: 'Error: No image open' }
[warning:crema 11:31:56.532 documentmanager.js:336:26] Error: No image open
[warning:core 11:31:56.796 generator.js:133:30] Photoshop error { id: 15, body: 'Unknown JavaScript error' }

Responses

Official Solution

Adobe Administrator

 • 

14.8K Messages

 • 

285K Points

a year ago

This issue should be fixed in the current version, Photoshop 2020 v21.x or later. Let us know if you're still having trouble.

Sr. Product Manager, Adobe Digital Imaging

2 Messages

 • 

70 Points

Similare issue using Generator.  Photoshop 2020 v21.x

 Except it does nto work and just does nothing. No tick to say it is work and no files being saved.

8 Messages

 • 

190 Points

2 years ago

Adan, if you remove the "crema" plugin does the problem persist?  In my experience, none of the errors in your log messages are "fatal" for generator.  (you can safely temporarily remove crema by moving the folder to a different directory and restarting photoshop.  replace the directory after you're done testing.)

5 Messages

 • 

102 Points

a year ago

I work with Adan. Just tried the March update for Photoshop CC 2019 with our custom plugins and it's still causing Generator to crash:
[warning:generator-assets 11:15:22.928 document.js:880:38] Unhandled property in raw change: parentID 348
[warning:generator-assets 11:15:23.853 document.js:880:38] Unhandled property in raw change: parentID 309
[warning:generator-assets 11:15:25.761 document.js:880:38] Unhandled property in raw change: parentID 195
[warning:core 11:17:11.010 generator.js:133:30] Photoshop error { id: 158, body: 'Unknown JavaScript error' }
[error:app 11:17:11.011 app.js:350:25] Unknown JavaScript error
[error:app 11:17:11.012 app.js:115:17] Exiting with code -1: Uncaught exception: undefined
Removing Crema does fix the problem, but seems a bit like a hack. What if we need the new Save For Web functionality?

Seems like Generator is crashing when opening and closing files. Any progress on this issue?

Thanks!
Eric

EDIT: Our custom plugins work perfectly in PS 2015, 2017, and 2018!

8 Messages

 • 

190 Points

a year ago

Eric, this "Unhandled property..." log does seems troubling. 

I'd like to find a way to reproduce it.  Would you be willing to share your custom generator plugins?  Does this error happen if you do *not* have your custom plugins installed?

Is there a specific file (or type of file) that this happens with?  Do you see this behavior with a *very simple* PSD; for example just a background image with rectangle drawn on top?

4 Messages

 • 

114 Points

Hi Eric,
if you open  some document and close it too fast, using any other plugin or script – there gonna be an "Unhandled property..." exception with "Unknown JavaScript error".

5 Messages

 • 

102 Points

Yeah, our script first renders video, and then saves start frames and end frames. Generator is crashing when saving the individual frames, which causes our script to stop working.. Do you have any idea of good timing for slowing it down?

8 Messages

 • 

190 Points

Danil, thanks for the details.  I was able to reproduce it, so we will investigate a fix.  Eric, it is not clear that this is the same issue (root cause) you are seeing.

3 Messages

 • 

120 Points

Hi Cory, I believe this is the same error since we are navigating through smart objects and opening them and closing them with our scripts, this might be happening too fast for the engine

8 Messages

 • 

190 Points

Eric, Adan, would you be willing to join the Photoshop Prerelease program so you can test with an advanced release of Photoshop?

5 Messages

 • 

102 Points

a year ago

Hi Cory.

Unfortunately, I can't share the plugins. I'm currently adding some console.log statements to our code to help track down exactly where it's failing.

I noticed some errors in the Generator log on launch of PS 2019 that I wondered if you  knew anything about them:
1) This plugin gives this error:
[error:app 09:50:01.536 app.js:309:37] Unable to load plugin at '/Library/Application Support/Adobe/Plug-Ins/CC/Generator/previewHD.generate': Plugin is blacklisted
When I remove that plugin, that error goes away. Not sure which version of Photoshop installed it since this machine used to have 2015, and currently has PS 2017 / 2018 / 2109 installed.

2) After our custom plugin loads, we get a self-signed warning and then this error:
[warning:core 09:50:03.400 generator.js:133:30] Photoshop error { id: 19, body: 'Unknown JavaScript error' }
Anyway, the main purpose of our custom plugin is to render out a PNG sequence of an animation. (It does this reliably in 2019). Then, it should save out the first and last frames as JPEGs, but it consistently crashes Generator in 2019 at this step.

Any ideas of things to test / try would be most appreciated.

Thanks!
Eric

EDIT: Looks like we still get the blacklisted and core warnings without our plugin loaded. I will do some playing around to see if unhandled property errors too.

8 Messages

 • 

190 Points

a year ago

Eric, 

1) The "blacklisted" error can be ignored.  That is caused by an old plugin which is no longer supported - but in some cases will be left on your machine from an old photoshop install. 
2) That is an unfortunately vague error.  In some cases (but not all) it can actually be harmless.  We are working to make that particular message more informative about the underlying cause.

I'm curious to hear more about the "self signing error".

Things to try:
1) Use a JS debugger to pause in generator.js 133
2) Change the log level in app.js
-    var _loggerManager = new logging.LoggerManager(logging.LOG_LEVEL_INFO),
+    var _loggerManager = new logging.LoggerManager(logging.LOG_LEVEL_DEBUG),
3) Provide me with a stripped down plugin with just the JPEG error case.

You may reach out to me directly by email if you need to provide non-public information:  {my last name} at adobe dot com.

As a side note: there is another more technical forum specifically for generator here:
https://groups.google.com/forum/#!forum/adobe-generator-dev
You my find it helpful for other questions/issues which may have been raised there before

5 Messages

 • 

102 Points

a year ago

Hi Cory.

Thanks for the info about blacklisted plugin and unknown js error. I guess the self signed error is something on this end--Adan is aware of the issue, basically our plugin is not finding the location of our update server.

I turned up the log level of Generator to DEBUG. I'm seeing some more detail such as this one:
[warning:core 14:24:36.241 generator.js:133:30] Photoshop error Pipe write error: Error: EPIPE: broken pipe, write
This matches my experience that it will write the startframe, but not the endframe before Generator crashes.
 
I think we are probably going to have to strip down our plugin to something that's shareable with you. Not sure how much help I would be for that, since I didn't help on the development for this.

Thank you again!
Eric

1 Message

 • 

60 Points

9 months ago

ever since updating to the latest version, i have the generator error 

Log file created on Sun Jan 26 2020 09:09:29 GMT+0000 (GMT Standard Time)

[info:core 09:09:29.009 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:114:22] Launching with config:
{}
[info:core 09:09:29.009 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:116:26] provided PS information:
 version 21.0
 pathC:\Program Files\Adobe\Adobe Photoshop 2020

[info:core 09:09:29.018 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:237:30] Detected Photoshop version: 21.0.0
[warning:core 09:09:29.023 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:133:30] Photoshop error Pipe read error: Error: EBUSY: resource busy or locked, open '\\.\pipe\11e36cc0-1581-9048-8966-16d8f3398f8d_i'
[warning:core 09:09:29.023 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:133:30] Photoshop error Pipe write error: Error: ENOENT: no such file or directory, open '\\.\pipe\11e36cc0-1581-9048-8966-16d8f3398f8d_o'
[warning:app 09:09:29.029 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\app.js:217:29] No viable plugins were found in 'C:\Program Files\Adobe\Adobe Photoshop 2020\Plug-ins\Generator'
[info:core 09:09:29.030 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:1926:26] Loading plugin: generator-assets (v2.9.13) from: C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Plug-ins\Generator\assets.generate
[warning:core 09:09:29.117 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:915:26] WARNING the imageChanged event is expensive, please consider NOT listening to it
[info:core 09:09:29.119 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:1942:26] Plugin loaded: generator-assets
[info:core 09:09:29.119 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:1926:26] Loading plugin: crema (v3.2.12) from: C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Plug-ins\Generator\crema.generate
[info:core 09:09:29.295 C:\Program Files\Adobe\Adobe Photoshop 2020\Required\Generator-builtin\lib\generator.js:1942:26] Plugin loaded: crema