Closed Bug 1270575 Opened 8 years ago Closed 8 years ago

Media Encoder threads leak until shutdown in MediaRecorder

Categories

(Core :: Audio/Video: Recording, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox46 --- wontfix
firefox47 --- wontfix
firefox48 --- affected
firefox49 --- fixed
firefox-esr45 --- wontfix

People

(Reporter: jesup, Assigned: jesup)

References

(Blocks 1 open bug)

Details

(Whiteboard: [memshrink])

Attachments

(1 file, 1 obsolete file)

When you Stop() a MediaRecorder, the Media Encoder thread isn't shut down.  If a MediaRecorder is running *at* shutdown, it uses a shutdown observer to kill the thread and close things, but normal patterns leave them lying around.
Assignee: nobody → rjesup
Rank: 17
Priority: -- → P1
Whiteboard: [memshrink]
MozReview-Commit-ID: Flf5JGyWHkF
Attachment #8749299 - Flags: review?(pehrsons)
Stop() is too early to shut down the read thread, apparently, though perhaps we could with a larger rework.  This seems simple and upliftable if we want.
Attachment #8749673 - Flags: review?(pehrsons)
Attachment #8749299 - Attachment is obsolete: true
Attachment #8749299 - Flags: review?(pehrsons)
Attachment #8749673 - Flags: review?(pehrsons) → review+
Note this really is a leak; multiple threads will leak if you use it multiple times.  They do get cleaned up by nsThreadManager which is why it was never flagged as a leak.

Presumably would affect pretty much every release.

Wontfix for esr45 as this is just a leak.  Same rationale for 47.
Blocks: 988464
No longer depends on: 988464
https://hg.mozilla.org/mozilla-central/rev/350def59bcf7
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: