Photoshop: Plugin crema causing generator to break

  • 3
  • Problem
  • Updated 2 months ago
  • (Edited)
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' }
Photo of adan bialikover

adan bialikover

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 9 months ago

  • 3
Photo of Cory McIlroy

Cory McIlroy, Employee

  • 8 Posts
  • 3 Reply Likes
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.)
Photo of Eric Oehrl

Eric Oehrl

  • 5 Posts
  • 0 Reply Likes
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!
(Edited)
Photo of Cory McIlroy

Cory McIlroy, Employee

  • 8 Posts
  • 3 Reply Likes
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?
Photo of DANIL LUCHIN

DANIL LUCHIN

  • 4 Posts
  • 1 Reply Like
Hi Cory, 
count me in please :)
Photo of DANIL LUCHIN

DANIL LUCHIN

  • 4 Posts
  • 1 Reply Like
Hi Cory, 
count me in please :)
Photo of Cory McIlroy

Cory McIlroy, Employee

  • 8 Posts
  • 3 Reply Likes
Danil, Adan: Please go to the link I posted above and start the process.  Let me know when you're done so I can prioritize the follow-up steps on our side.  Email me with any problems.
Photo of Eric Oehrl

Eric Oehrl

  • 5 Posts
  • 0 Reply Likes
Hi Cory. Might make sense to just have Danil and Adan on the prerelease as I have to be careful to keep my machines production ready. I'm happy to get involved if it would help though.

Btw, it's super great that you guys are working on this!
Eric
Photo of DANIL LUCHIN

DANIL LUCHIN

  • 4 Posts
  • 1 Reply Like
Hi Cory,
I've done that two days ago.
Photo of Eric Oehrl

Eric Oehrl

  • 5 Posts
  • 0 Reply Likes
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.
(Edited)
Photo of Cory McIlroy

Cory McIlroy, Employee

  • 8 Posts
  • 3 Reply Likes
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
Photo of Eric Oehrl

Eric Oehrl

  • 5 Posts
  • 0 Reply Likes
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