-
2 Aug 2012 5:22 AM #11
Hi Don,
Thanks for the answer!
I just tried it with my test case: 5 columns, 30 records, reloading every 3 seconds, IE9.
~ 1 hour testing time increased memory from ~38000 KB to 63780 KB.
Then called CollectGarbage() on the console and it became 63144 KB. So, only ~600 KB off.
I call it several times more - no significant effect. Just a few bytes up and down.
So, I can say it doesn't help.
Please note it is reproducible in Chrome, FireFox and IE. Unlikely it's a browser JS issue. Though anything is possible. In that case it would be great to report it to the browsers technical support.
-
10 Aug 2012 5:35 AM #12
Bump...this is a show stopper...
-
13 Nov 2012 4:38 AM #13
I create real-time reporting and monitoring applications using ExtJS, so it is crucial for me to fix this. As I suspected, there are two separate issues here:
1. ExtJS uses Douglas Crockford's implementation of JSON parser, which is the problem. I have swapped the parser for this one: http://code.google.com/p/json-sans-eval/ and that stopped the leaks.
Just include the above parser and patch ExtJS like this:
2. If your record id is autogenerated, it will leak.Configure your JsonReader.idProperty and make sure your id is unique. Autogenerated record id's are prefixed with 'ext-record'. This applies to all types of stores, not only JSON.Code:Ext.util.JSON.decode = jsonParse; Ext.decode = jsonParse;
I was able to run my test case with the above modifications for 2 days without any leaks.
The same applies to ExtJS 4.x
Hope this will help.
-
13 Nov 2012 6:48 AM #14
This could prove to be very helpful information. But you make two very broad statements without any explanation. Can you please explain why it is that you feel that the Douglas Crockford implementation of JSON parse is the culprit, and why you think auto-generated IDs cause leaks?
Thanks
-
13 Nov 2012 8:35 AM #15
Unfortunately I don't have enough time to identify which code actually causes the leaks. I can only do my best to help all of us fixing this problem by providing test cases and a workaround without an explanation. Please verify my claims and correct me if they are wrong.
-
3 May 2013 6:56 AM #16
Memory Leak with GridPanel and Data Store
Memory Leak with GridPanel and Data Store
Hi Ext Team,
My whole application is build on the ExtJs API and now we are facing the same memory leak issue. We are working on lots of data and we present it on Grid using Data stores. When opening the same grid panel again and again, the browser memory keeps growing and becomes unresponsive after some time. I found this thread after searching for any solution. I did not see any last response with the issue to be fixed. Can you suggest any solution of the issue. It will be a great help.
Thanks,
Jitesh
Thank you for reporting this bug. We will make it our priority to review this report.



Reply With Quote