Created attachment 266311 [details] testcase This non-reduced testcase eventually results in Firefox (188.8.131.52) / SeaMonkey (Gecko 184.108.40.206pre) eating up huge amounts of memory. I suspect the cause is the ctx.scale() and/or ctx.translate() which are done repeatedly with no ctx.restore() between iterations. Uncommenting ctx.restore() on line 158 makes the issue go away. <biesi> your wormhole2 thing basically made X unusable <biesi> I killed seamonkey from a console <Hendikins> CTho: I had to do the same on here. Steps to reproduce: 1. Open the testcase, let it run for a while (I'm guessing the scale/translate have to accumulate). A reduced testcase might be as simple as one or two ridiculously large scale/translate calls with some drawing.
11 years ago
Still occurs on trunk on Mac.
There's nothing in the current canvas code that would cause eating of additional memory on lots of subsequent transforms as far as I can see. I also cannot reproduce this issue in Nightly or Release. -> WFM Please re-open if somebody is still seeing this.
Works for me on 7.0 on Windows and 6.0.1 on Linux. Marking verified.