Closed ghost closed 11 years ago
Sorry for the delayed response. To be clear - just adding the +1 is fixing the memory issue for you? That's quite interesting. If so, we can definitely implement that here, and in other places where we clear canvases.
If you are aware of any information on why this fixes the problem, I'd love to see it, just to ensure we fix it properly.
The NEXT version of EaselJS has been pushed to GitHub, and includes the +1 workaround on ALL clearRect usages.
to Mr. gskinner, Mr. lannymcnie I'm sorry to replay so late. I'm not sure why this +1 can avoid the problem and no japanese blog mention about it. The NEXT version will be helpful for Japanese CreateJS user. Thank you very much.
Hello.
Some Japanese users found the problem of memory leak on some Android 4 devices popular in Japan which crashes the default browser just after few frames of the beginning of the Canvas animation. This is the list of the devices in question.
I did a little test to avoid it as mentioned in some Japanese blog. At first here is the test code. This code crashes the default browser.
And these two are the solution. We make some change in p.clear method of easeljs/display/Stage.js.
Both methods can solve the problem.
Sorry for my poor English.