pkdevboxy / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

ScrollTable is leaking memory #335

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?
- GWT Incubator 2009.02.04

What OS and browser are you using?
- Windows XP - IE 6/IE 7/FF 3.5

Do you see this error in hosted mode, web mode, or both?
- Web mode. I'm using GWT 2.0, so I haven't tried it on hosted mode.

What steps will reproduce the problem? 
1. Add a ScrollTable to the app and display it;
2. Remove the ScrollTable or its parent container from the screen;
3. Check (I used IE Drip for this) the DOM tree for elements with circular
reference that dripped;

What is the expected output? What do you see instead?
The ScrollTable is not cleaning up after itself as it should, and the
memory usage of the app is growing steadily between 20-40MB each time I
display a ScrollTable and later remove it.

Workaround if you have one:
- Couldn't find any workarounds for this yet;

Please provide any additional information below,  and thank you for taking
the time and effort to report this issue, as good issue reports are
critical for our quest to make GWT's new widgets and libraries shine.

I noticed that the memory usage of my app is increasing constantly as I
keep using it, and I narrowed it down to the ScrollTable component. When I
display a ScrollTable and later remove it from the screen (to show the next
screen), the DOM Tree keeps some of the elements from ScrollTable because
of some circular reference (I checked this using IEDrip -
http://code.google.com/p/iedrip/). 

I tried adding the FixedWidthGrid and the FixedWidthFlexTable components
directly to the parent container (not using the ScrollTable), and noticed
that the memory leak doesn't happen in this situation, so I believe that
the problem is inside the ScrollTable component.

Original issue reported on code.google.com by alexandr...@gmail.com on 8 Feb 2010 at 1:09

GoogleCodeExporter commented 8 years ago
I see the same behavior with ScrollTable component but i was using the GWT 
incubator drop for gwt-2.1. Everytime, i try to add the ScrollTable it keeps 
shooting up the memory by 30kb, if i navigate between pages 10 times with each 
of the screen use the ScrollTable to display the data, it would almost use up 
to 20 to 30 mb of memory which would cause the IE to slow up almost not to 
respond at all.

Please let us know if you have a work around we couldn't find one. We are 
having a major prod issue because of this.

Thanks,
Jerome.

Original comment by jerome...@gmail.com on 23 Dec 2010 at 8:21