Closed Bug 847771 Opened 13 years ago Closed 12 years ago

Panels leak memory after unload

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: irakli)

References

Details

Attachments

(2 files)

I saw https://github.com/mozilla/addon-sdk/blob/master/lib/sdk/frame/hidden-frame.js#L168-L169 today and thought to check if the Panel module was leaking, and it appears to be.. I'm not sure if the link above is the cause or not right now though.
It looks like this file was messed up by https://github.com/mozilla/addon-sdk/pull/698 and the revert was not done properly. https://github.com/mozilla/addon-sdk/commit/670279994b4c49cc71960c022165b96de41f0d2e#lib/sdk/frame/hidden-frame.js I think that we should restore the Panel related code to the way it was, and not make updates to it until the pwpb changes have been made as I requested here https://github.com/mozilla/addon-sdk/pull/698#issuecomment-12450522
Assignee: nobody → rFobic
Assignee: rFobic → nobody
Priority: -- → P1
Target Milestone: --- → 1.14
Hey Erik I just looked at the diff of the merge: https://github.com/mozilla/addon-sdk/commit/42cede06862471f3c05cb937cb3d2200b4d3218e Diff-stat: 7 changed files with 115 additions and 86 deletions. And at the reverting commit: https://github.com/mozilla/addon-sdk/commit/670279994b4c49cc71960c022165b96de41f0d2e Diff-stat: 7 changed files with 86 additions and 115 deletions. So I believe that code was restored to it's previous state. What makes you believe it wasn't ? I also remember diffing reverted change to the state just before my original commit and delta was empty. Can you provide little more info about why you think panel leaks and how did you test that ?
Ahh it looks like github has a bug, it's showing the contents on master no matter what commit I choose.. This leak was introduced much further back sadly.. https://github.com/Gozala/addon-sdk/commit/58aabad258ea6544a6a61ca2c3449b749a81b9e0 https://github.com/mozilla/addon-sdk/pull/668
Ok this isn't in 1.13.2, but it is on stabilization
Assignee: nobody → rFobic
Flags: needinfo?(kwierso)
Flags: needinfo?(rFobic)
Pointer to Github pull-request
Flags: needinfo?(rFobic)
Comment on attachment 726995 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/874 This is just a typo fix against stabilization, I'll leave up to you to decide weather it's worth landing and uplifting. I'll write tests against master and submit separate pull request for it.
Attachment #726995 - Flags: review?(evold)
Attachment #726995 - Flags: feedback?(kwierso)
Comment on attachment 726995 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/874 Seems easy and harmless enough to me...
Attachment #726995 - Flags: feedback?(kwierso) → feedback+
Flags: needinfo?(kwierso)
Comment on attachment 727020 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/875 Fix for the master + tests.
Attachment #727020 - Flags: review?(evold)
Attachment #726995 - Flags: review?(evold) → review+
Commit pushed to stabilization at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/67dfdb63ae01d7c619cfab42ce33301561acfcee Merge pull request #874 from Gozala/hotfix/panel-leak Bug 847771 - Hotfix typo in hidden-frame module. r=@erikvold
Attachment #727020 - Flags: review?(evold) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/1177cc3de3aee511d228c201ae07057e7f824cdc Merge pull request #875 from Gozala/bug/panel-leaks@847771 Bug 847771 - Fix memory leaks and add tests r=@erikvold
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: