Thank you for reporting this bug. We will make it our priority to review this report.
Sencha Premium Member
Memory Leak on refresh ( IE9, HTML 5, ExtJS 3.4.0, ExtJS 4.1.1a Sandbox, No Iframe)
Ext version tested:
Browser versions tested against:
- ExtJS 4.1.1a Sandboxed with ExtJS 3.4.0
DOCTYPE tested against:
Steps to reproduce the problem:
- Including ExtJS 4.x sandbox, ExtJS 3.4.0 base and ExtJS 3.4.0 all scripts in a blank HTML 5 document and refreshing page leaks ~20MB each refresh.
The result that was expected:
The result that occurs instead:
- IE9 Memory Usage stays about the same after each refresh
- IE9 Memory Usage increases by ~20MB after each refresh
Debugging already done:
Additional CSS used:
- Remove the doctype - no leak
- Remove ExtJS 4.x sandbox - no leak
- Remove ExtJS 3.x base and all - no leak
- Comment out fireDocReady in ExtJS 4.x sandbox - no leak
Does this happen without sandbox?
Sencha Premium Member
If you mean does it happen without the Ext4 sandbox script included, then no it does not leak.
If you mean does it happen with Ext4 non-sandboxed included, then the answer is also no, it does not leak, however this is probably because of script errors triggered by running 3 & 4 together un-sandboxed.
Ext JS Premium Member
Hi, unfortunately I was also hit by this memory leak issue (and some other annoying things with sandbox).
Richard did a very good job with tracking this down to "fireDocReady", so I just took it from there.
Seems like the "MouseEnterLeave" test performed inside Ext.supports.init() call leaks in sandbox.
I'll continue checking tomorrow, but so far it seems to be the reason.
EDIT: I made a mistake with tests bisection (was too tired probably). It's not "MouseEnterLeave" as it turns out, but it's neightbour "GeoLocation", and specifically this beauty:
Here's some read on this topic: https://github.com/Modernizr/Modernizr/issues/513
typeof navigator.geolocation != 'undefined'
instead does not leak as it seems.
'geolocation' in navigator
PS: I only tested sandbox version, but seems this should leak in all cases - confirmed. I posted a separate bug report for this issue since it's not really sandbox related: http://www.sencha.com/forum/showthread.php?255148