Skip to main content

Search and Top Navigation

#8762 closed bug (notabug)

Opened November 01, 2012 07:50AM UTC

Closed November 04, 2012 10:32AM UTC

UI Widget Factory leaks in ALL browsers

Reported by: hkgbrucet Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.widget Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

Creating a widget inside an element and then removing the widget from the element causes a memory leak in all Windows browsers: IE8 leaks drastically although other browsers (IE9, FF, Chrome) also leak (to significantly lesser and varying degrees).

Forcing garbage collection in IE (for experimental purposes) has no effect.

This is easy to show by constructing a simple widget and then setting a repeating timer that clears the host element and then adds a new widget element. To hit 300MB memory usage, IE8 requires ~6000 cycles, Firefox 15 ~50,000 cycles

See http://jsfiddle.net/hEtcz/2

Memory can be monitored using Windows Task Manager.

This is relevant in a Web App that creates and destroys many widgets over long durations

Attachments (0)
Change History (2)

Changed November 04, 2012 06:42AM UTC by hkgbrucet comment:1

This issue is withdrawn - the example js had a jquery error .... please ignore

Changed November 04, 2012 10:32AM UTC by jzaefferer comment:2

resolution: → notabug
status: newclosed