Crash on large PNG "Invoke download of CanvasSnapshot"

Discussion and feedback on Construct 2

Post » Thu Aug 21, 2014 7:26 am

I am working on a wallpaper making app. It seems to crash when saving a snapshot with the art on the screen being very complex (big PNG.) At first I thought it was an issue with sprites bleeding off the edge of the layout, but it would crash before that occurred at times. For now, I have simply switched to saving the screen as a 90% jpg which always seems to work.

I just published this temporary fix to the Chrome Web Store and ColorMorphing.com, but I would eventually like to save the image with a user chosen-background, including an option for transparent.

Can anyone shed some light on how I could get around this issue with large PNGs? Is it a known issue? A limitation of C2? HTML5? Certain browsers?
Or perhaps it is another issue entirely?
B
6
S
2
Posts: 37
Reputation: 524

Post » Thu Aug 21, 2014 8:48 am

You don't give any figures with which to make a valid determination. How large a png are we talking?

Is there any chance you could create a very simple capx that recreates the issue that others can also test for you? That way, if it does crash for us, you can post a bug report for Ashley to look at.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Thu Aug 21, 2014 3:33 pm

It is not a large app. Here is the source. When I push the Distance slider to the max and continually click the camera icon to save a picture, the page crashes close to when the swirl reaches the edges of the screen. It handles PNGs close to 1.5MB. It has no issue with 90% JPGs.

I assume it is something to do with file size, but it could be anything. I have been testing in Chrome.
You do not have the required permissions to view the files attached to this post.
B
6
S
2
Posts: 37
Reputation: 524

Post » Thu Aug 21, 2014 8:13 pm

PNG isn't designed to save canvas with biggest images including million of colors, PHP does it same, you should use JPG.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361


Return to Construct 2 General

Who is online

Users browsing this forum: Brendan2007 and 9 guests