Closed
Bug 1238347
Opened 9 years ago
Closed 9 years ago
test_BufferingWait_mp4.html timed out due to a bug in MDSM prerolling
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla46
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
cpearce
:
review+
Sylvestre
:
approval-mozilla-aurora+
ritu
:
approval-mozilla-beta-
|
Details |
Another prerolling bug in MDSM which results in test_BufferingWait_mp4.html timeout.
This can be easily reproduced on windows by changing the return value of AudioPrerollUsecs() (https://hg.mozilla.org/try/rev/0134e7d3c5cb).
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9578fb270b34
Assignee | ||
Comment 1•9 years ago
|
||
The cause of test_BufferingWait_mp4.html timeout is as follows:
1. MDSM goes to buffering mode since it plays to the end of bipbop2. (https://hg.mozilla.org/mozilla-central/file/c33f30666b37dbceffb9fbe5089a668db8893a85/dom/media/mediasource/test/test_BufferingWait_mp4.html#l40)
2. Since we change the amount of audio to preroll to 1s and bipbop3 is less than 1s, MDSM receives OnNotDecoded again for audio with aReason==WAITING_FOR_DATA.
3. MDSM switch from BUFFERING to DECODING after decoding some video frames from bipbop3.
4. In StartDecoding() we have
mIsAudioPrerolling = !DonePrerollingAudio();
which will be true since we have less than 1s in the audio queue.
5. MDSM will never start playback for mIsAudioPrerolling is true.
Assignee | ||
Comment 2•9 years ago
|
||
6. Since playback is not started, MDSM will never advance playback position to 2.36843 or greater and causes timeout.
https://hg.mozilla.org/mozilla-central/file/c33f30666b37dbceffb9fbe5089a668db8893a85/dom/media/mediasource/test/test_BufferingWait_mp4.html#l53
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/30253/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/30253/
Attachment #8706166 -
Flags: review?(cpearce)
Updated•9 years ago
|
Attachment #8706166 -
Flags: review?(cpearce) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8706166 [details]
MozReview Request: Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce.
https://reviewboard.mozilla.org/r/30253/#review27067
Good catch.
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
status-firefox43:
--- → ?
status-firefox44:
--- → ?
status-firefox45:
--- → ?
status-firefox46:
--- → affected
Assignee | ||
Comment 6•9 years ago
|
||
Thanks!
Comment 8•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Comment 9•9 years ago
|
||
JW: is your preroll fix something we should uplift to Aurora 45? Can this problem affect real world content?
Flags: needinfo?(jwwang)
Assignee | ||
Comment 10•9 years ago
|
||
Yes, the chance is very low in the real world though. I will uplift prerolling bugs to aurora and beta since the fixes are simple and at low risk.
Flags: needinfo?(jwwang)
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8706166 [details]
MozReview Request: Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce.
Approval Request Comment
[Feature/regressing bug #]:none
[User impact if declined]:MSE playback might get stuck in buffering forever
[Describe test coverage new/current, TreeHerder]:tested on TreeHerder
[Risks and why]: low since the change is simple
[String/UUID change made/needed]:none
Note: this bug might be landed after bug 1238343.
Attachment #8706166 -
Flags: approval-mozilla-beta?
Attachment #8706166 -
Flags: approval-mozilla-aurora?
Comment on attachment 8706166 [details]
MozReview Request: Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce.
While this may be fixing a valid issue, I have not heard of many reports on Fx43 where playback gets stuck. This fix has had no time to stabilize on Nightly, Aurora and therefore risky to take in Beta44. Sorry!
Attachment #8706166 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
Comment 13•9 years ago
|
||
Comment on attachment 8706166 [details]
MozReview Request: Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce.
But still time to take it in 45.
Attachment #8706166 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•9 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•