Ticket #1145 (closed defect: duplicate)

Opened 2 years ago

Last modified 12 months ago

Widget leaks

Reported by: sol@… Owned by: bill
Priority: high Milestone: 1.0
Component: Dijit Version: 0.3
Severity: critical Keywords: widgets memory+leak
Cc: sol@…

Description

Hey. I seem to still encounter memory leaks with dojo in IE:

  • General minor leaks - It seems that in general dojo leaks a little bit. When I load a simple test (test_SlideShow.html for example) in Drip (http://outofhanwell.com/ieleak/index.php?title=Main_Page) and let it refresh auto-refresh for a while I notice memory consumption going up. It's not major in general, but it could lead to major problems in some instances... This could also be the browser not completely cleaning up right away. IE is known to delay garbage collection.
  • Some widgets leak mercilessly - I found several widgets that do it: TabContainer? (test_TabContainer.html), ToolBar? (test_Toolbar.html). Interestingly, toolbar doesn't leak when created using markup (test_Toolbar_Markup.html), only when created using (test_Toolbar.html). I don't know if any other widgets have leak problems and I will report any I might find.

Change History

Changed 22 months ago by bill

  • cc sol@… added

Do you mean that every time you refresh the test_TabContainer.html page, IE's memory usage goes up? Or something about dynamically creating TabContainers? without refreshing the page?

Changed 22 months ago by ornus

Every time I refresh test_TabContainer.html memory usage goes up.

Changed 22 months ago by bill

OK, I'll take a look. You didn't say which browser, so I will assume IE6. But if I need to check another browser instead (for example, if it's a FF only problem) then let me know.

Changed 22 months ago by ornus

Yeah, it's IE6. I specified it in the ticket description. Drip (old version, new doesn't seem to work with Dojo well) also reports that some elements (divs and spans) don't get released by the browser.

Changed 22 months ago by francis

I had this problem with 0.3.1. I retested with the current SVN trunk and the TabContainer? is not leaking anymore.

BTW, ticket #1122 already defines this problem with the TabContainer?.

Changed 22 months ago by ornus

As far as I can tell the leak is still there. I think it's smaller now, but still detectable.

Changed 21 months ago by bill

  • milestone changed from 0.4 to 0.4.1

Changed 21 months ago by bill

  • milestone changed from 0.4.1 to 0.5

Changed 13 months ago by bill

  • component changed from Widgets to Dijit
  • milestone changed from 0.9 to 1.0

Changed 12 months ago by dante

  • status changed from new to closed
  • resolution set to duplicate

dup of #1122

Note: See TracTickets for help on using tickets.