One more thing I was able to see the Error Code or HResult. It is -2147352577
I rebuilt the applications just to make sure it was not corrupted. This all started around 8/22/2016. No updates on the server and no application updates. It has been running for a year plus with no issues until now.
Any help would be appreciated.
I'm seeing the same error after upgrading Illustrator from 2015 to 2017.
A few more hints for the devs:
- The same jsx script runs perfectly fine in 20.1.0 but throws the error in 21.0.2.
- What's even more baffling is that this same line runs fine in the first call, but threw the exception in the second call.
> var doc = app.documents.add(DocumentColorSpace.RGB, payload.width, payload.height);
I've double/triple checked that all fields are correct. In fact, same script runs just fine in 20.1.0.
FWIW, the whole file is here: Dropbox - 3469-0-cut_contour.jsx
Any suggestions would be greatly appreciated.
For no known reason I would suggest you try to:
var doc = app.activeDocument;
Enlarge your AI window could fix this issue.