PDA

View Full Version : [OPEN-1001] Memory leak on buttons inside a window



VT-TizianoF
27 May 2010, 7:01 AM
Ext version tested:


Ext 3.2.1



Adapter used:


ext



css used:


only default ext-all.css





Browser versions tested against:


IE8



Operating System:


WinXP Pro



Description:
Using sIEve, I see that after a 'show' and then a 'close' by clicking the button, the number of dom nodes increase by 3.

Apart from the shadow node (that's normal), there are two nodes that do not get GC:

Here is the copy/paste from sIEve:


file://C:\Documents and Settings\FurlanTi\Desktop\ext-3.2.1\examples\leak.html (1 reference)
nextSibling [null object]
onresizeend
onrowenter
aria-haspopup
childNodes [object]
ondragleave
canHaveHTML -1
onbeforepaste
ondragover
onbeforecopy
aria-disabled
onpage
recordNumber
previousSibling [null object]
nodeName TABLE
onbeforeactivate
accessKey
currentStyle [object]
scrollLeft 0
onbeforeeditfocus
oncontrolselect
aria-hidden
onblur
hideFocus 0
clientHeight 0
style [object]
onbeforedeactivate
dir
aria-expanded
onkeydown
nodeType 1
ondragstart
onscroll
onpropertychange
ondragenter
id ext-comp-1003
aria-level 0
onrowsinserted
scopeName HTML
lang
onmouseup
aria-busy
oncontextmenu
language
scrollTop 0
offsetWidth 0
onbeforeupdate
onreadystatechange
onmouseenter
filters (unknown)
onresize
isContentEditable 0
aria-checked
aria-readonly
oncopy
onselectstart
scrollHeight 0
onmove
ondragend
onrowexit
lastChild [null object]
aria-secret
onactivate
canHaveChildren -1
onfocus
onfocusin
isMultiLine -1
onmouseover
offsetTop 0
oncut
parentNode [object]
tagName TABLE
className x-btn x-btn-noicon x-btn-over x-btn-focus
onmousemove
title
role
behaviorUrns [object]
onfocusout
onfilterchange
disabled 0
parentTextEdit [null object]
ownerDocument [object]
offsetParent [null object]
aria-posinset 0
ondrop
ondblclick
onrowsdelete
tabIndex 0
onkeypress
aria-relevant
onlosecapture
innerText
aria-live
parentElement [null object]
ondeactivate
aria-labelledby
aria-pressed
children [object]
ondatasetchanged
ondataavailable
aria-invalid
onafterupdate
nodeValue
onmousewheel
onkeyup
readyState complete
onmovestart
aria-valuenow
aria-selected
onmouseout
aria-owns
aria-valuemax
onmoveend
contentEditable inherit
document [object]
firstChild [null object]
sourceIndex 0
outerText
isTextEdit 0
isDisabled 0
oncellchange
runtimeStyle [object]
scrollWidth 0
aria-valuemin
onlayoutcomplete
onhelp
attributes [object]
offsetHeight 0
onerrorupdate
onmousedown
clientTop 0
aria-setsize 0
clientWidth 0
onpaste
tagUrn
onmouseleave
onclick
outerHTML
<TABLE style="WIDTH: 75px" id=ext-comp-1003 class="x-btn x-btn-noicon x-btn-over x-btn-focus" cellSpacing=0 __sIEve_hookedNode="true"></TABLE>
ondrag
aria-controls
onresizestart
aria-flowto
ondatasetcomplete
aria-required
clientLeft 0
aria-describedby
all [object]
onbeforecut
innerHTML
aria-activedescendant
aria-multiselectable
offsetLeft 0
tBodies [object]
border
rules
cellSpacing 0
borderColor
rows [object]
summary
caption [null object]
borderColorLight
dataFld
borderColorDark
dataSrc
tFoot [null object]
cellPadding
dataPageSize 0
width
background
bgColor
frame
dataFormatAs
tHead [null object]
align
height
cells [object]
cols 0
cloneNode [object]


file://C:\Documents and Settings\FurlanTi\Desktop\ext-3.2.1\examples\leak.html (1 reference)
nextSibling [null object]
onresizeend
onrowenter
aria-haspopup
childNodes [object]
ondragleave
canHaveHTML -1
onbeforepaste
ondragover
onbeforecopy
aria-disabled
onpage
recordNumber
previousSibling [null object]
nodeName BUTTON
onbeforeactivate
accessKey
currentStyle [object]
scrollLeft 0
onbeforeeditfocus
oncontrolselect
aria-hidden
onblur
hideFocus 0
clientHeight 0
style [object]
onbeforedeactivate
dir
aria-expanded
onkeydown
nodeType 1
ondragstart
onscroll
onpropertychange
ondragenter
id ext-gen17
aria-level 0
onrowsinserted
scopeName HTML
lang
onmouseup
aria-busy
oncontextmenu
language
scrollTop 0
offsetWidth 0
onbeforeupdate
onreadystatechange
onmouseenter
filters (unknown)
onresize
isContentEditable 0
aria-checked
aria-readonly
oncopy
onselectstart
scrollHeight 0
onmove
ondragend
onrowexit
lastChild [null object]
aria-secret
onactivate
canHaveChildren -1
onfocus
onfocusin
isMultiLine -1
onmouseover
offsetTop 0
oncut
parentNode [object]
tagName BUTTON
className x-btn-text
onmousemove
title
role
behaviorUrns [object]
onfocusout
onfilterchange
disabled 0
parentTextEdit [null object]
ownerDocument [object]
offsetParent [null object]
aria-posinset 0
ondrop
ondblclick
onrowsdelete
tabIndex 0
onkeypress
aria-relevant
onlosecapture
innerText
aria-live
parentElement [null object]
ondeactivate
aria-labelledby
aria-pressed
children [object]
ondatasetchanged
ondataavailable
aria-invalid
onafterupdate
nodeValue
onmousewheel
onkeyup
readyState complete
onmovestart
aria-valuenow
aria-selected
onmouseout
aria-owns
aria-valuemax
onmoveend
contentEditable inherit
document [object]
firstChild [null object]
sourceIndex 0
outerText
isTextEdit -1
isDisabled 0
oncellchange
runtimeStyle [object]
scrollWidth 0
aria-valuemin
onlayoutcomplete
onhelp
attributes [object]
offsetHeight 0
onerrorupdate
onmousedown
clientTop 0
aria-setsize 0
clientWidth 0
onpaste
tagUrn
onmouseleave
onclick
outerHTML <BUTTON style="OVERFLOW-X: hidden; OVERFLOW-Y: hidden; WIDTH: 33px; OVERFLOW: hidden" id=ext-gen17 class=" x-btn-text" __sIEve_hookedNode="true"></BUTTON>
ondrag
aria-controls
onresizestart
aria-flowto
ondatasetcomplete
aria-required
clientLeft 0
aria-describedby
all [object]
onbeforecut
innerHTML
aria-activedescendant
aria-multiselectable
offsetLeft 0
name
type button
dataFormatAs
status
dataSrc
dataFld
value
form [null object]
cloneNode [object]


Test Case:



Ext.onReady(function(){
var win = new Ext.Window({
width:500,
height:300,
title: 'test panel',

html : 'test',

buttons: [
{
xtype: 'button',
text: 'Close',
handler : function(btn) {
btn.ownerCt.ownerCt.close();
}
}
]
});

win.show();
});


Steps to reproduce the problem:
Simply run the example and click on the close button using sIEve.

The result that was expected:
I'd expect that the number of dom nodes return to the initial one (plus the shadow one).

The result that occurs instead:


foo
bar



Screenshot or Video:


attached



Debugging already done:


none



Possible fix:


not provided

VT-TizianoF
7 Jun 2010, 11:56 PM
Any news?

VT-TizianoF
14 Oct 2010, 11:37 PM
So?