Closed
Bug 724404
Opened 13 years ago
Closed 13 years ago
require("widget") creates zombie compartments
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: nmaier, Assigned: ochameau)
References
Details
(Keywords: memory-leak, Whiteboard: [MemShrink:P2])
Attachments
(3 files)
STR:
- Create a new add-on with the following main.js (and nothing else):
require("widget");
- cfx xpi
- Install xpi in a fresh profile
- Disable add-on again
- Go about:memory?verbose
- Minimize memory usage
- Wait a couple of minutes, just to be sure
- Minimize memory usage
-> Observe that all the jetpack compartments are still present
Tested and affected SDK versions: 1.3, 1.4.2
Tested with the latest Win64 Nightly
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Reporter | ||
Comment 3•13 years ago
|
||
Just to make sure that it is not just a broken Nightly:
Same issue can be observed under Firefox 10 Win32/Oneric x86_64
(The compartments are unnamed, except for the bootstrap.js compartment, due to lack of auto sandboxName support)
Updated•13 years ago
|
Whiteboard: [MemShrink]
Reporter | ||
Comment 4•13 years ago
|
||
Actually, it now seems more likely that the culprit might be in addon-kit/windows.
addon-kit/windows and addon-kit/tabs leak as well, but addon-kit/widget and addon-kit/tabs require addon-kit/windows.
Updated•13 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P2]
Updated•13 years ago
|
Priority: -- → P1
Assignee | ||
Comment 5•13 years ago
|
||
I've tested that against reddit-panel example, and it doesn't leak anymore.
More comments in the pull request.
Assignee: nobody → poirot.alex
Attachment #597082 -
Flags: review?(rFobic)
Assignee | ||
Comment 6•13 years ago
|
||
Irakli, I pushed a new changeset, with a simplier fix.
Comment 7•13 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/6a867fb0dab42b165d133095f4133688db5b08fd
Merge pull request #344 from ochameau/fix-widget-leaks
fix Bug 724404 - require("widget") creates zombie compartments r=@gozala
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Looks good. Can't reproduce this issue anymore with the referenced fix included. All compartments for widget modules are gone.
Status: RESOLVED → VERIFIED
Keywords: mlk
Comment 9•13 years ago
|
||
What version of the SDK should I build against to avoid this bug? Thanks!
Comment 10•13 years ago
|
||
(In reply to Fred Wenzel [:wenzel] from comment #9)
> What version of the SDK should I build against to avoid this bug? Thanks!
This fix will be released with version 1.6 of the SDK.
Updated•13 years ago
|
Attachment #597082 -
Flags: review?(rFobic) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•