Closed Bug 1400490 Opened 7 years ago Closed 5 years ago

Intermittent dom/media/mediasource/test/test_AudioChange_mp4.html | should not fire 'error' event

Categories

(Core :: Audio/Video: cubeb, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Component: Audio/Video → Audio/Video: Playback
Hi Alastor, Please add this bug to your queue.
Flags: needinfo?(alwu)
From the log [1], we got the unexpected error, and it's like following > WARNING: Could not get a cubeb context.: 'rv == CUBEB_OK', file z:/build/build/src/dom/media/CubebUtils.cpp, line 404 > WARNING: Can't get cubeb context!: file z:/build/build/src/dom/media/AudioStream.cpp, line 354 > WARNING: Decoder=265c0433180 [OnMediaSinkAudioError]: file z:/build/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3649 > WARNING: Decoder=265c0433180 Decode error: file z:/build/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3344 Seems the cubeb error makes this test fail. [1] https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=133793386&lineNumber=2657 https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=133687122&lineNumber=2658 https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=133916603&lineNumber=2658 https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-beta&job_id=133422522&lineNumber=2625 --- Hi, Chun-Min, Do you have any idea about this fail? Thanks!
Flags: needinfo?(alwu) → needinfo?(cchang)
(In reply to Alastor Wu [:alwu][please needinfo me][GMT+8] from comment #5) > Hi, Chun-Min, > Do you have any idea about this fail? > Thanks! It's better to know whether it's a regression for remoting Cubeb first. In non-remote case, it happens when: - No default device - Cannot to initialize Windows COM - Running out of memeory I think we should figure out whether MOZ_CUBEB_REMOTING[0] is default on. [0] http://searchfox.org/mozilla-central/rev/1a4a26905f923458679a59a4be1e455ebc53c333/dom/media/CubebUtils.cpp#395
Flags: needinfo?(cchang)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → INCOMPLETE
Recent failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=195996878&repo=mozilla-inbound&lineNumber=1004 11:32:01 INFO - TEST-PASS | dom/media/mediasource/test/test_AudioChange_mp4.html | fetchWithXHR load uri='aac51-48000-128000-2.m4s' status=200 11:32:01 INFO - Loading buffer: [0, 47727) 11:32:01 INFO - SourceBuffer buffered ranges grew from TimeRanges: [0, 3.029333) to TimeRanges: [0, 6.058666) 11:32:01 INFO - got durationchange event 11:32:01 INFO - got canplaythrough event 11:32:01 INFO - Buffered messages logged at 11:32:00 11:32:01 INFO - got error event 11:32:01 INFO - Buffered messages finished 11:32:01 INFO - TEST-UNEXPECTED-FAIL | dom/media/mediasource/test/test_AudioChange_mp4.html | should not fire error event 11:32:01 INFO - @dom/media/mediasource/test/test_AudioChange_mp4.html:25:5 11:32:01 INFO - EventListener.handleEvent*@dom/media/mediasource/test/test_AudioChange_mp4.html:24:3 11:32:01 INFO - async*runWithMSE@dom/media/mediasource/test/mediasource.js:31:11 11:32:01 INFO - async*@dom/media/mediasource/test/test_AudioChange_mp4.html:17:1 11:32:01 INFO - GECKO(930) | MEMORY STAT | vsize 4108MB | residentFast 89MB | heapAllocated 15MB 11:32:01 INFO - got abort event 11:32:01 INFO - got pause event 11:32:01 INFO - got emptied event 11:32:01 INFO - TEST-OK | dom/media/mediasource/test/test_AudioChange_mp4.html | took 295344ms 11:32:01 INFO - TEST-START | dom/media/mediasource/test/test_AutoRevocation.html
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → INCOMPLETE
Status: REOPENED → RESOLVED
Closed: 6 years ago5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → INCOMPLETE

Recent failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=282297981&repo=mozilla-central&lineNumber=1839

[task 2019-12-22T01:34:59.681Z] 01:34:59 INFO - TEST-PASS | dom/media/mediasource/test/test_AudioChange_mp4.html | fetchWithXHR load uri='aac51-48000-128000-init.mp4' status=200
[task 2019-12-22T01:34:59.682Z] 01:34:59 INFO - Loading buffer: [0, 634)
[task 2019-12-22T01:34:59.682Z] 01:34:59 INFO - SourceBuffer buffered ranges grew from TimeRanges: [0, 3.029333) to TimeRanges: [0, 3.029333)
[task 2019-12-22T01:34:59.682Z] 01:34:59 INFO - got error event
[task 2019-12-22T01:34:59.683Z] 01:34:59 INFO - Buffered messages finished
[task 2019-12-22T01:34:59.684Z] 01:34:59 INFO - TEST-UNEXPECTED-FAIL | dom/media/mediasource/test/test_AudioChange_mp4.html | should not fire error event
[task 2019-12-22T01:34:59.684Z] 01:34:59 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:277:18
[task 2019-12-22T01:34:59.684Z] 01:34:59 INFO - @dom/media/mediasource/test/test_AudioChange_mp4.html:25:7
[task 2019-12-22T01:34:59.684Z] 01:34:59 INFO - EventListener.handleEvent*@dom/media/mediasource/test/test_AudioChange_mp4.html:24:6
[task 2019-12-22T01:34:59.685Z] 01:34:59 INFO - asyncrunWithMSE@dom/media/mediasource/test/mediasource.js:31:11
[task 2019-12-22T01:34:59.685Z] 01:34:59 INFO - async
@dom/media/mediasource/test/test_AudioChange_mp4.html:17:11
[task 2019-12-22T01:34:59.686Z] 01:34:59 INFO - GECKO(2212) | [Child 2500, MediaDecoderStateMachine #1] WARNING: Decoder=1824b86a000 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<MediaSourceTrackDemuxer::SamplesPromise> __cdecl mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file z:/task_1576969458/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3358
[task 2019-12-22T01:34:59.686Z] 01:34:59 INFO - GECKO(2212) | MEMORY STAT | vsize 6723MB | vsizeMaxContiguous 70027421MB | residentFast 116MB | heapAllocated 17MB
[task 2019-12-22T01:34:59.687Z] 01:34:59 INFO - got abort event
[task 2019-12-22T01:34:59.687Z] 01:34:59 INFO - got emptied event
[task 2019-12-22T01:34:59.688Z] 01:34:59 INFO - TEST-PASS | dom/media/mediasource/test/test_AudioChange_mp4.html | fetchWithXHR load uri='aac51-48000-128000-2.m4s' status=200
[task 2019-12-22T01:34:59.689Z] 01:34:59 INFO - Loading buffer: [0, 47727)
[task 2019-12-22T01:34:59.689Z] 01:34:59 INFO - Not taking screenshot here: see the one that was previously logged
[task 2019-12-22T01:34:59.690Z] 01:34:59 INFO - TEST-UNEXPECTED-FAIL | dom/media/mediasource/test/test_AudioChange_mp4.html | failed with error InvalidStateError
[task 2019-12-22T01:34:59.690Z] 01:34:59 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:277:18
[task 2019-12-22T01:34:59.691Z] 01:34:59 INFO - runWithMSE@dom/media/mediasource/test/mediasource.js:33:7
[task 2019-12-22T01:34:59.691Z] 01:34:59 INFO - async*@dom/media/mediasource/test/test_AudioChange_mp4.html:17:11
[task 2019-12-22T01:34:59.691Z] 01:34:59 INFO - GECKO(2212) | JavaScript error: http://mochi.test:8888/tests/dom/media/mediasource/test/mediasource.js, line 123: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
[task 2019-12-22T01:34:59.691Z] 01:34:59 INFO - TEST-OK | dom/media/mediasource/test/test_AudioChange_mp4.html | took 213ms
[task 2019-12-22T01:34:59.692Z] 01:34:59 ERROR - /tests/dom/media/mediasource/test/test_AudioChange_mp4.html logged result after SimpleTest.finish(): fetchWithXHR load uri='aac51-48000-128000-2.m4s' status=200
[task 2019-12-22T01:34:59.692Z] 01:34:59 ERROR - /tests/dom/media/mediasource/test/test_AudioChange_mp4.html logged result after SimpleTest.finish(): failed with error InvalidStateError

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

We should add some logs in GetCubebContextUnlocked to see why cubeb context is not initialized.

Component: Audio/Video: Playback → Audio/Video: cubeb

Recent stuff appears to all be aarch64, which is probably the same root cause as bug 1578674 (i.e. hardware/driver/config issue).

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.