Closed Bug 982339 Opened 11 years ago Closed 11 years ago

TextureClientPoolMembers are never deleted

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31
blocking-b2g 1.4+
Tracking Status
firefox29 --- wontfix
firefox30 --- fixed
firefox31 --- fixed
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 3 obsolete files)

Attached patch Delete them! (obsolete) (deleted) — Splinter Review
This causes leaks, which we now catch in debug builds (thanks ehsan!)
Attachment #8389451 - Flags: review?(bas)
Assignee: nobody → matt.woodrow
Comment on attachment 8389451 [details] [diff] [review] Delete them! Review of attachment 8389451 [details] [diff] [review]: ----------------------------------------------------------------- Let's stop using mozilla::LinkedList, it's caused several problems already, the semantics are insane. Let's just use an STL container.
Attachment #8389451 - Flags: review?(bas) → review-
Attached patch Use nsTArray to make sure they get deleted (obsolete) (deleted) — Splinter Review
I went with nsTArray since policy is to stick with those classes unless we really need something specific to std:: (to maintain consistency across the code base). I think array/vector is better than list too here, since we're basically always going to have two pools, and we can allocate the size upfront.
Attachment #8389451 - Attachment is obsolete: true
Attachment #8389466 - Flags: review?(bas)
Attached patch Use nsTArray v2 (deleted) — Splinter Review
Attachment #8389466 - Attachment is obsolete: true
Attachment #8389466 - Flags: review?(bas)
Attachment #8389581 - Flags: review?(bas)
Attachment #8389581 - Flags: review?(bas) → review+
Backed out along with bug 982318 in https://hg.mozilla.org/integration/mozilla-inbound/rev/892dd317097f for b2g mochitest crash/hangs (nobody can really tell which they do) like https://tbpl.mozilla.org/php/getParsedLog.php?id=36315626&tree=Mozilla-Inbound in most chunks.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Bug 985302 is necessary for this bug. After applying attachment 8389581 [details] [diff] [review] to b2g v1.4, I faced Bug 985302 problem.
Depends on: 985302
Attached patch Use nsTArray v2 for b2g v1.4 (obsolete) (deleted) — Splinter Review
A patch for b2g v1.4.
Attachment #8411320 - Flags: review+
(In reply to Sotaro Ikeda [:sotaro] from comment #9) > Created attachment 8411320 [details] [diff] [review] > Use nsTArray v2 for b2g v1.4 > > A patch for b2g v1.4. Just unbitrot attachment 8389581 [details] [diff] [review].
Blocks: 998504
Nominate to "1.4+", because this bug blocks Bug 998504.
blocking-b2g: --- → 1.4?
blocking-b2g: 1.4? → 1.4+
Sorry, I created the patch based on attachment 8389581 [details] [diff] [review]. It was wrong. After that there was an update to the patch and updated patch was checked in to m-c. The crash happened because of lacking a cancel timer in TextureClientPool::~TextureClientPool(). It is not present in attachment 8389581 [details] [diff] [review]. But it is added to m-c checked in version.
Attachment #8411320 - Attachment is obsolete: true
(In reply to Carsten Book [:Tomcat] from comment #7) > https://hg.mozilla.org/mozilla-central/rev/2a19ce01687f I confirmed that the above checked-in diff could be safely applied to b2g v1.4.
aurora specific patch is not necessary. m-c checked in diff could be uplifted to aurora.
Keywords: checkin-needed
Flags: needinfo?(fabrice)
It is necessary only when tiling is enable. Tiling is a capability that enabled since b2g v1.4
James, we have no tiling on v1.3t, so we don't need that.
Flags: needinfo?(fabrice)
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: