Skip to main content
Known Participant
June 22, 2019
Question

Animate crash when I run exportPNG in a Jsfl script

  • June 22, 2019
  • 3 replies
  • 787 views

Hello,

I have a bug with doc.exportPNG(myURI, true, true); or doc.exportPNG(myURI, true, false); in a Jsfl script that crash Animate CC 19.2.1 (408) every time at the 24th frame with a Jsfl script that use the exportPNG function.

Can it be Graphic Card related? I'm on a Intel(R) HD Graphics 620.

I have submit a bug report, but nothing tell me that it's been received by support.

Related: https://forums.adobe.com/thread/2258230

This topic has been closed for replies.

3 replies

Known Participant
June 23, 2019

But I have tested on a simple fla file (Macromedia - Flash : Samples ). I can crash 2019 with my script, but not with a simple basic script as yours. So there is perhaps something in my script which 2019 doesn't like.

I also don't understand why that it's working well in 2018. The Animate's magic perhaps!

I will investigate my script. Adobe have change things in the Javascript API from 2018 to 2019?

JoãoCésar17023019
Community Expert
Community Expert
June 22, 2019

Hi.

I run a quick test here using this code...

var doc = fl.getDocumentDOM();

var script = fl.scriptURI;

var uri = script.replace(script.split("/").pop(), "") + "test.png";

doc.exportPNG(uri, true, true);

... and it's working.

Does this error you're facing happen with any FLA or frame?

Can you show us your code?

Regards,

JC

Known Participant
June 22, 2019
doc.exportPNG(uri, true, true);

export a png image.

But I want a sequence of pngs. With :

doc.exportPNG(uri, true, false);

And then it crash!

JoãoCésar17023019
Community Expert
Community Expert
June 23, 2019

The same script is working well with the same fla file in Animate 2018. And crash in 2019! My solution for now is to roll back in 2018, but I suspect a bug in 2019 version.


Mine is 2019. The same version and build as yours.

Known Participant
June 22, 2019

Unhandled exception at 0x00007FF71CDBA525 in Animate.exe : 0xC0000005 : Access violation reading location 0x0000000000000020.

Known Participant
June 22, 2019

And the JSFL script run well, without crashing, with Animate 18.0.2 (build 126). I'm just pulling out hair.