Re: Leaks with IFrames and JSONP
Matthias, I tried many tricks as they were implemented in jQuery and other JS toolkits but none seem to fully solve the issue completely. I've implemented a caching strategy and now I avoid doing the same jsonp call. The data I am returning allows this since it is a finit set. But I do hope I can come up with a total solution. The IFrame leak was mainly caused by GWT not detaching the Ui in the onclose handler. That is a bug in IE and GWT does not support unloading on demand. But a fix is int the pipeline. If you find a generic solution to the jsonp leak please let me know! I rather let the browser handle cash operations. David On Thursday, January 3, 2013, Matthias Kühnle wrote: > I experienced the same bug. Did you solve your Problem somehow? > > Matthias > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/Z5eNy9RMEpEJ. > To post to this group, send email to > google-web-toolkit@googlegroups.com 'google-web-toolkit@googlegroups.com');> > . > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com 'cvml', 'google-web-toolkit%2bunsubscr...@googlegroups.com');>. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Leaks with IFrames and JSONP
I experienced the same bug. Did you solve your Problem somehow? Matthias -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Z5eNy9RMEpEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Leaks with IFrames and JSONP
Hi, I have been spending now 5 days trying to track down memory leaks in my big GWT application. I noticed that every time I call a JSONP service that I am leaking (size depends on the data received from that service). I also noticed that when I put GWT in an IFrame and remove that IFrame there is a big leak as well. GWT does not seem to ever cleanup its expandos when the IFrame is being disposed - I assume that that results in a ref cycle between JS and the DOM ? I tried many workarounds I found on the internet but it just keeps on leaking. It seems that the JSONP leak is well know since bugs have been reported on jQuery and Dojo at a certain point in time and some blogs have been written about this as well. But the strange thing is: I tried these workarounds (using a garbage bin in IE, clearing attributes, ... etc) but the problems remains. In my application I lose upto 10 MB per iteration which makes the memory footprint grow very quickly to 500MB or more, which is not really acceptable. So is there something specific to GWT that keeps a ref to the script and its contents ? It leaks both on IE8 and FireFox 10 (I don't have access to other browser from my dev machine). Reloading the root page does not clear all the memory. I tried using tools like sIEve but that one gave me no results ... no leaks except the __ expando fields that GWT applications install. Anybody have some extra ideas I might try out to solve this issue ? Is there some shutdown method available that I could start in the IFrame to make GWT detach completely from the DOM ? David -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DLTWoZF9XtsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.