Opened 9 years ago

Closed 4 years ago

#12215 closed defect (patchwelcome)

Memory "leak" using Chart2D actions with silverlight gfx renderer

Reported by: davec Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: DojoX GFX Version: 1.6.0b1
Keywords: memory gfx Cc:
Blocked By: Blocking:

Description

If a Chart2D is created and an action (eg Tooltip) attached, and the chart is then repeatedly updated, a memory "leak" can be observed when the browser is Internet Explorer and the gfx renderer is "silverlight". That is, the memory allocation used by Internet Explorer begins to grow steadily and appears never to be recovered/reclaimed.

I have observed the effect with the attached testcase (testcase_actionleak_silverlight.html) using Internet Explorer 8 (8.0.6001.18702) and monitoring the "private bytes" memory reported by SysInternals? Process Explorer for the iexplore.exe instance showing the page. If I remove the "gfxRenderer: 'silverlight'" from djConfig, the 'vml' renderer is used and I no longer observe the effect with Internet Explorer, nor do I see any similar effect with other browsers I have tried (including Firefox, Chrome).

The memory growth is marked: after an initial flat period of varying length, the memory tends to grow steadily at about 0.5 MB per call to chart render(). The attached testcase renders about twice per second, and after running this page in Internet Explorer for about half and hour the memory allocation for iexplore.exe exceeded 2GB.

Attachments (2)

testcase_actionleak_silverlight.html (2.3 KB) - added by davec 9 years ago.
test case (load in Internet Explorer with Silverlight enabled)
screenshot_actionleak_silverlight.png (159.6 KB) - added by davec 9 years ago.
screen shot showing memory growth reported by Process Explorer

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by davec

test case (load in Internet Explorer with Silverlight enabled)

Changed 9 years ago by davec

screen shot showing memory growth reported by Process Explorer

comment:1 Changed 9 years ago by Eugene Lazutkin

Milestone: tbdfuture
Status: newassigned

comment:2 Changed 4 years ago by dylan

Milestone: future1.12
Resolution: patchwelcome
Status: assignedclosed

Silverlight is mostly abandoned as a tech, so closing as patchwelcome.

Note: See TracTickets for help on using tickets.