• Bugs
  • New Windows install... PhotoshopToSpine script crash.

Related Discussions
...

Hi, hope you can help me.

I have a fresh install of windows 10 with a new installed Photoshop 2019 (20.0.10 release).

Whenever I try to run the PhotoshopToSpine script, photoshop crashes out with an error report dialog.
I'm able to see the script dialog, and make any changes to the script settings. but clicking on "ok" from the dialog will bring up the message "initializing" for a few seconds, and then crash occurs.

I've tried numerous PSD files, some basic new ones, or even older Spine PSD's which the script had previously worked on before I reinstalled windows.

The script itself is taken right from the website, I started off using the original I had on my drive (before the new OS), as well as the latest from the git page.

I have also tried various settings (with or without JSON, background, etc.) and set different directories.
It's the same everytime.

on a side note, I can use the photoshop standard script "Export Layers To Files.jsx"
with no issues at all.

Spent a few hours checking both the Spine forums and around the photoshop script scene researching, but have made no progress whatsoever.
so it's forum time.

I'd appreciate any help,
thank you.

Photoshop should never crash, no matter what a script tries to do. Unfortunately such a crash would indicate a bug with Photoshop. When it worked for you previously did you have the exact same version of Photoshop?

You can try debugging the script. That requires the Adobe ExtendScript Toolkit. Older versions are also available.

Run ExtendScript, open the script, then check Debug > Do not break on guarded exceptions. Checking that means when you run the script it won't stop where the script handles an error. In a few places the script tries something, catches any error that occurs, then carries on, so you don't want ExtendScript stopping every time that happens. ExtendScript will still stop if an error occurs that the script doesn't catch ("guard").

Next run the script using Debug > Run/F5. If Photoshop crashes, do it again but use Debug > Step Into/F11 to run line by line (you can also use Debug > Step Over/F10 to run a whole line without going into the functions called). Continue pressing F11 and note the last line it was on when Photoshop crashes. Let us know what line (and paste the line here, so we can be sure which line it is) and maybe that will be enough of a clue to figure out what is happening.