{"id":2292,"date":"2012-09-05T16:57:09","date_gmt":"2012-09-05T05:57:09","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=2292"},"modified":"2012-09-05T16:57:09","modified_gmt":"2012-09-05T05:57:09","slug":"memshrink-progress-week-63-64","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2012\/09\/05\/memshrink-progress-week-63-64\/","title":{"rendered":"MemShrink progress, week 63&#8211;64"},"content":{"rendered":"<h3>Add-ons<\/h3>\n<p>The big news this week was the <a href=\"https:\/\/blog.mozilla.org\/blog\/2012\/08\/28\/firefox-now-uses-less-memory-to-make-browsing-faster\/\">release of Firefox 15<\/a>, which <a href=\"https:\/\/blog.mozilla.org\/futurereleases\/2012\/08\/28\/more-on-firefox-memory-improvements\/\">prevents most add-on memory leaks<\/a>.\u00a0 As a consequence, we were able to close open bug reports for several add-ons that no longer leak:\u00a0 <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=669730\">Firebug<\/a> (yay!), <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=745149\">Enter Selects<\/a>, <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=728589\">LinkResolve<\/a>, <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=748296\">We-Care Reminder<\/a>, <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=743414\">Restartless Restart + SmartSearch<\/a> (the leak happened only when both were installed).<\/p>\n<p>Although Firefox 15 prevents most zombie compartment leaks, some remain.<\/p>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=743215\">Scriptish still leaks<\/a>.\u00a0 Scriptish is a GreaseMonkey fork.\u00a0 Fortunately it has many fewer users than GreaseMonkey.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=788015\">Speed Dial<\/a> creates a zombie compartment when adding a new page to the speed dial.\u00a0 This was only just reported, so we don&#8217;t yet know if it pre-dated Firefox 15 or not.<\/li>\n<\/ul>\n<p>I haven&#8217;t heard much feedback about the release from actual users. This is probably a good thing, as users are much more likely to notice and report problems than improvements.\u00a0 One thing that has cropped up is that a small number of add-ons have had their functionality adversely affected by the change, i.e. they were accessing compartments for a page after the page has been closed.<\/p>\n<ul>\n<li>This caused certain GreaseMonkey scripts to leak badly.\u00a0 <a href=\"https:\/\/blog.mozilla.org\/nnethercote\/2012\/08\/28\/update-to-greasemonkey-1-0-to-avoid-leaks-in-firefox-15\/\">This has now been fixed<\/a>.<\/li>\n<li>AutoPager&#8217;s main functionality is now <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=732782\">broken<\/a>.\u00a0 On the upside, it no longer leaks.\u00a0 AutoPager&#8217;s author hasn&#8217;t been responsive for the past five months, unfortunately.<\/li>\n<li>TabMix Plus is <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=786577\">popping up some error windows that it shouldn&#8217;t<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=785256\">Two<\/a> <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=787690\">users<\/a> with many add-ons installed have reported increased memory consumption.\u00a0 The add-on(s) responsible haven&#8217;t been identified yet.<\/li>\n<\/ul>\n<p>If you have any additional add-ons that you think have been adversely affected by Firefox 15, open the error console and use the &#8220;filter&#8221; search box in the top right-hand corner to look for a message that says <strong>&#8220;TypeError: can&#8217;t access dead object&#8221;<\/strong> &#8212; that&#8217;s the message that indicates an add-on is trying to access memory via a reference that Firefox 15 has pre-emptively cut.\u00a0 Please report any problems in Bugzilla and put &#8220;[MemShrink]&#8221; in the whiteboard field.<\/p>\n<p>On a related note, the discussion of Firefox 15&#8217;s release on various tech sites prompted me to <a href=\"https:\/\/blog.mozilla.org\/nnethercote\/2012\/08\/29\/debunking-a-misconception-about-firefox-releases\/\">debunk<\/a> the common misconception that Mozilla claims &#8220;this is the release that fixes the memory leaks&#8221; on every release.<\/p>\n<h3>Other stuff<\/h3>\n<p>Andrew McCreight <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=750570\">fixed a problem involving the cycle collector that could cause occasional leaks<\/a>.<\/p>\n<p>Brian Nicholson<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=784386\"> roughly halved the amount of memory used in Firefox Mobile&#8217;s page readability check<\/a>.\u00a0 (This wasn&#8217;t actually marked as a MemShrink bug;\u00a0 I just chanced upon it today when looking at TBPL.)<\/p>\n<p>Nick Cameron <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=769021\">fixed a small, obscure leak<\/a>.<\/p>\n<h3>Google Reader<\/h3>\n<p>For quite a while now we&#8217;ve had various people say that <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=750048\">Google Reader creates lots of windows and\/or compartments<\/a> and causes Firefox&#8217;s memory consumption to gradually increase when it&#8217;s open for a long time.\u00a0 This may only happen if you are signed into a Google+ account.\u00a0 It feels like it&#8217;s a problem with Google Reader itself rather than Firefox, and a Google Reader engineer is CC&#8217;d on the bug report, but no progress has been made, and the reported symptoms are on the vague side.<\/p>\n<p>If you have experienced this, we&#8217;d love to hear your feedback in the bug report.\u00a0 In particular, as always, reliable steps to reproduce would make a big difference.<\/p>\n<h3>Bug Counts<\/h3>\n<p>Here are the current bug counts.<\/p>\n<ul>\n<li>P1: 22 (-3\/+1)<\/li>\n<li>P2: 90 (-2\/+3)<\/li>\n<li>P3: 96 (-9\/+7)<\/li>\n<li>Unprioritized: 2 (-2\/+2)<\/li>\n<\/ul>\n<p>Forward progress!\u00a0 Good to see.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add-ons The big news this week was the release of Firefox 15, which prevents most add-on memory leaks.\u00a0 As a consequence, we were able to close open bug reports for several add-ons that no longer leak:\u00a0 Firebug (yay!), Enter Selects, LinkResolve, We-Care Reminder, Restartless Restart + SmartSearch (the leak happened only when both were installed). [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119,30,4544,4546],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2292"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=2292"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2292\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=2292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=2292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=2292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}