PDA

View Full Version : [FIXED] Infinite scrolling with JsonP proxy causes enormous memory consumption



gtokarski
7 Nov 2011, 9:04 AM
Ext version tested:


Ext 4.0.7



Browser versions tested against:


IE8
FF7 (firebug 1.8.4 installed)




Description:


When scrolling up/down the infinite scrolling demo
http://dev.sencha.com/deploy/ext-4.0.2a/examples/grid/infinite-scroll.html
memory usage ist constantly growing, finally gets to the level of ~ 500MB and then IE usually crashes.



Steps to reproduce the problem:


Scroll patiently the list and observe memory usage



The result that was expected:


Rather stable and constant memory usage is expected



The result that occurs instead:


Please, see description



Test Case:

Please, see description



See this URL for live test case: http://dev.sencha.com/deploy/ext-4.0.2a/examples/grid/infinite-scroll.html


Debugging already done:

It seems that the request reference, stored in statics by method request(..), (ext-all-debug.js, 53088)

me.statics().requests[id] = request = { ...

ist not properly cleared by method handleResponse (ext-all-debug.js, 53166):

delete this.statics()[request.id];

Possible fix:

Use:

delete this.statics().requests[request.id];
instead of:

delete this.statics()[request.id]


Operating System:


WinXP Pro

mitchellsimoens
7 Nov 2011, 11:40 AM
This got a lot of loving in 4.1 with the new scrolling... have you tried this with 4.1 and seen if you see the same behavior?