Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 20067 by nicksoft: Canvas - memory leaks on getImageData
http://code.google.com/p/chromium/issues/detail?id=20067

http://alteredqualia.com/visualization/evolve/

Google Chrome   2.0.172.39 (Official Build )
WebKit  530.5
V8      1.1.10.14
User Agent      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5


Chrome Version       : 2.0.172.39 (Official Build )
URLs (if applicable) : http://alteredqualia.com/visualization/evolve/
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 4: not tested
   Firefox 2.x: Ok if I delete object from getImageData in compute_fitness
          IE 7: not tested
          IE 8: not tested

What steps will reproduce the problem?
1. press start button
2. memory is growing and not freed even if you stop the script.

or
1. create a page with a canvas element
2. put canvas element in variable canvasElement
3. repeat in a cycle:
   var d = canvasElement.getImageData(0, 0, IWIDTH, IHEIGHT);
   delete d;
   d = null;
(this works in firefox)

What is the expected result?
Eventually garbage collector should free the memory


What happens instead?
Memory is not freed.

Please provide any additional information below. Attach a screenshot if
possible.

I have this issue only if I get image data from canvas. I didn't try any
other types of arrays to see if there is a difference

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to