PDA

View Full Version : [2.0b1][SOLVED] window "div leak"



slobo
28 Oct 2007, 12:10 PM
if I create and close a window
(closeAction is the default ("close"))
some extra div's are staying "alive" in the DOM (just inside the body element)

so if I open/close a window many times
I may get a huge memory leak

maybe it has to do something with this post: "[2.0b1] window close error from prototype"?

jsakalos
28 Oct 2007, 2:04 PM
Yes, this is window drag proxy div that doesn't get deleted and is not reused when window is open again. Will be fixed.

aconran
15 Nov 2007, 4:41 AM
Does this issue only happen with the prototype adapter?

jsakalos
16 Nov 2007, 1:07 PM
I've tested it with simple window and ext-base adapter and what remains in dom are only shadow elements but they are reused when the window is opened another time.

Worse is that if window contains border layout then on each window open (create) new divs are created (split bars proxies) and they are not deleted on window close.

aconran
16 Nov 2007, 3:06 PM
The shadow divs which exist are left there by design. They are pulled from the ShadowPool and left there for performance reasons. The split bar proxies being left behind could be an issue though.

slobo
16 Nov 2007, 3:10 PM
when I tested this - it was beta1 - see the first post
the number of "leaked" divs kept growing without limit

there was no border layout

(maybe this was fixed in rc1 or later, I haven't checked)

stever
16 Nov 2007, 6:46 PM
when I tested this - it was beta1 - see the first post
the number of "leaked" divs kept growing without limit

there was no border layout

(maybe this was fixed in rc1 or later, I haven't checked)

Now would be a good time to check...

slobo
6 Dec 2007, 8:38 AM
in 2.0 final it seems to be OK