Closed Bug 1248543 Opened 8 years ago Closed 8 years ago

Need to release decoder resources for dom/media/test/crashtests

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

Run |./mach crashtest dom/media/test/crashtests/ --run-until-failure --repeat 10000| and soon you will see the following error messages:

[26928] WARNING: AudioStream::OpenCubeb() 7f631b9fad40 failed to init cubeb
[26928] WARNING: Decoder=7f6301aef400 Decode error, changed state to ERROR

This is because too many cubeb streams are opened and not released when tests finish. 495794-1.html times out because of failing to open a cubeb stream to start playback.

This is also responsible for the OOM in bug 1242774 comment 27.
Blocks: 1248313
Assignee: nobody → jwwang
Comment on attachment 8719762 [details]
MozReview Request: Bug 1248543 - release decoder resources when finishing tests to avoid OOM and failing to open cubeb streams. r=kinetik.

https://reviewboard.mozilla.org/r/35095/#review31787

Please add a comment explaining what resetting src does, so anyone creating or copying a test keeps that behaviour, and to make it easier to clean up the tests once we have better audio stream resource management.
Attachment #8719762 - Flags: review?(kinetik) → review+
Thanks for the review! I will add comments to explain the purpose of resetting 'src'.
https://hg.mozilla.org/mozilla-central/rev/0d9af8eaf17f
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: