Closed Bug 605732 Opened 15 years ago Closed 14 years ago

test_taskbar_jumplistitems.js leaks items

Categories

(Core :: Widget: Win32, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9
Tracking Status
firefox7 --- fixed
firefox8 --- fixed

People

(Reporter: jdm, Assigned: bbondy)

References

Details

(Whiteboard: [xpcshell-leak][qa-])

Attachments

(1 file, 2 obsolete files)

== BloatView: ALL (cumulative) LEAK STATISTICS, default process 1928 |<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->| Per-Inst Leaked Total Rem Mean StdDev Total Rem Mean StdDev 0 TOTAL 21 244 5574 10 ( 310.86 +/- 408.18) 15681 10 ( 1666.64 +/- 1933.76) 52 nsCryptoHash 28 28 1 1 ( 1.00 +/- 0.00) 3 1 ( 1.40 +/- 0.55) 114 nsSimpleURI 56 168 5 3 ( 3.14 +/- 1.35) 63 3 ( 10.99 +/- 5.24) 119 nsStringBuffer 8 48 1705 6 ( 791.34 +/- 421.27) 8511 6 ( 3038.74 +/- 1664.35)
OS: Mac OS X → Windows 7
I wrote this so I suppose I should fix it. How series is this?
I'm one of numerous xpcshell tests leaking, but leaks don't turn the tree orange at the moment.
Whiteboard: [xpcshell-leak]
Blocks: 606067
No longer blocks: 606067
Depends on: 469523
Blocks: 469523
No longer depends on: 469523
Assignee: nobody → netzen
I noticed these leaks when running this test so I'll take this one.
Virtual destructor was missing on the base class causing the derived class' destructor to not be hit.
Attachment #555620 - Flags: review?(jmathies)
I think this one should probably be promoted above Nightly by the way because I think every 120 seconds it will leak more and more memory. If you leave the browser open this can contribute to it getting slower.
Accidentally had an extra semicolon.
Attachment #555620 - Attachment is obsolete: true
Attachment #555630 - Flags: review?(jmathies)
Attachment #555620 - Flags: review?(jmathies)
This leak is probably not seen by other tests because it takes 120 seconds to start a new jumplist build and I'm not sure if any test runs that long.
Comment on attachment 555630 [details] [diff] [review] test_taskbar_jumplistitems.js leaks items v2 oops.
Attachment #555630 - Flags: review?(jmathies) → review+
I will push this to inbound, but should this be also pushed to aurora or beta channels? If so what is the process for me to do that or request that?
(In reply to Brian R. Bondy [:bbondy] from comment #9) > I will push this to inbound, but should this be also pushed to aurora or > beta channels? If so what is the process for me to do that or request that? You can request branch landing via flags on the patch once it's landed. Drivers will then decide if it's worth the risk or if it should roll out normally.
ok cool, thanks for the info!
Out of curiosity, worst case how big is the leak?
15KiB every 2 minutes that the browser is left open. Or 10MiB/day.
Sorry that's if the leak is the same as what the xpcshell leaks. I'm guessing it is +/- similar though.
I'm sure it's fine but I'm running though try since I'm paranoid: http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=45a9fd7932c4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
Version: unspecified → Trunk
Attachment #555733 - Flags: approval-mozilla-beta?
Attachment #555733 - Flags: approval-mozilla-aurora?
Comment on attachment 555733 [details] [diff] [review] Rebased to mozilla-central tip so it doesn't require my jump list icon task Approved to land for aurora and beta per todays driver meeting.
Attachment #555733 - Flags: approval-mozilla-beta?
Attachment #555733 - Flags: approval-mozilla-beta+
Attachment #555733 - Flags: approval-mozilla-aurora?
Attachment #555733 - Flags: approval-mozilla-aurora+
I filed bug 685266 to get a static analysis which checks for this case.
I tried searching briefly for similar errors but didn't find any at the time. Great idea Ehsan, thanks.
Whiteboard: [xpcshell-leak] → [xpcshell-leak], [qa-]
Whiteboard: [xpcshell-leak], [qa-] → [xpcshell-leak][qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: