Closed
Bug 856080
Opened 12 years ago
Closed 12 years ago
memory leak in Layer with OMTC
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
People
(Reporter: christophe.mouraud, Assigned: nical)
References
Details
(Whiteboard: [MemShrink])
Attachments
(2 files, 1 obsolete file)
1.97 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
1.98 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 20130320062118
Steps to reproduce:
usign CSS opacity transition with OMTC
Actual results:
Memroy leak (finding with trace-malloc)
Reporter | ||
Comment 1•12 years ago
|
||
nsTArray does not own it manages pointers and there are not released in its destructor
OS: Windows XP → All
Hardware: x86 → All
Assignee | ||
Comment 2•12 years ago
|
||
Hi Christophe, thanks for your patch, can you please format it with the "unified" format, as shown here https://developer.mozilla.org/en-US/docs/Creating_a_patch
and submit it again?
Please add me as reviewer when you do, patches without review request tend to not get much attention.
Assignee | ||
Comment 3•12 years ago
|
||
This fix shouldn't wait longer so I reformated the patch (Christophe, I made sure to put your name and not mine in the patch's header, I don't mean to steal your work).
It's probably worth uplifting asap, I wonder if this could be the cause of the b2g camera app leak.
Assignee: nobody → nical.bugzilla
Attachment #731205 -
Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #734745 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 4•12 years ago
|
||
pushed to try severs https://tbpl.mozilla.org/?tree=Try&rev=52f7e9568509
Updated•12 years ago
|
Attachment #734745 -
Flags: review?(jmuizelaar) → review+
Updated•12 years ago
|
Whiteboard: [MemShrink]
Comment 5•12 years ago
|
||
> + InfallibleTArray<nsAutoPtr<css::ComputedTimingFunction>>& functions = data->mFunctions;
Shouldn't this be "> >"? I'd be surprised if all the compilers we support work with ">>" closing the nested template.
How do you think this might cause leaks of the objects identified in bug 846903 comment 64? I don't see the ComputedTimingFunction class holding on to OGL objects (or any objects at all, actually).
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #5)
> > + InfallibleTArray<nsAutoPtr<css::ComputedTimingFunction>>& functions = data->mFunctions;
>
> Shouldn't this be "> >"? I'd be surprised if all the compilers we support
> work with ">>" closing the nested template.
Oh, right. here is a fix
>
> How do you think this might cause leaks of the objects identified in bug
> 846903 comment 64? I don't see the ComputedTimingFunction class holding on
> to OGL objects (or any objects at all, actually).
This leak happens in SetAnimation which you mentioned in Comment 47 of the b2g bug:
> from mozilla::layers::Layer::SetAnimations(), which may or may not be related.
I suppose this won't fix the leak in the camera entirely though.
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #734772 -
Attachment description: Fixes ComputedTimingFunction leak (reformated patch) with >> template syntax fix → Fixes ComputedTimingFunction leak (reformated patch) with >> template syntax fix. Carries jmuizelaar: review+
Assignee | ||
Comment 8•12 years ago
|
||
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Comment 11•12 years ago
|
||
tef? because of bug 861492. Let's land this, please.
Updated•12 years ago
|
blocking-b2g: --- → tef?
Updated•12 years ago
|
status-b2g18:
--- → affected
status-b2g18-v1.0.1:
--- → affected
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Comment 12•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/eec81d0b7e26
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/77bdee6d53aa
status-b2g18-v1.0.0:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•