Closed
Bug 1128332
Opened 10 years ago
Closed 10 years ago
mediasource-duration.html test doesn't fire loadeddata
Categories
(Core :: Audio/Video, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: jya, Assigned: jya)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
19.04 KB,
application/zip
|
Details | |
2.17 KB,
patch
|
jya
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
5.00 KB,
patch
|
jya
:
review+
|
Details | Diff | Splinter Review |
1.07 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
3.66 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
This started after upgrading to m-c last Friday (last version where everything worked was 29b05d283b00) using patch queue from 1125776
loadeddata event is never fired in the webref test mediasource-duration.html 'Test abort in the middle of an initialization segment.' causing it to timeout.
This only seems to appear on Windows 8 and 7 on try.
Assignee | ||
Comment 1•10 years ago
|
||
same issue with mediasource-append-buffer.html
which does the same thing as mediasource-duration.html: waiting for loaded data after adding the same segments as above.
I had it happening once on Windows XP (over 20+ runs)
Assignee | ||
Comment 2•10 years ago
|
||
Interestingly, I now get it consistently for mediasource-append-buffer.html Test abort in the middle of an initialization segment.
and it succeeds on mediasource-duration.html on W7..
Updated•10 years ago
|
Priority: -- → P2
Assignee | ||
Comment 3•10 years ago
|
||
Test to reproduce the problem.
The what's happening is that we have a partial mediasegment (complete moof but partial mdat).
MDSM calls RequestAudioData with mLastAudioTime=0 ; this fails as no audio data is available yet.
MediaSourceReader::OnAudioNotDecoded is called back with END_OF_STREAM.
mLastAudioTime is then adjusted to the end of the current stream to see if another one is available and that we could switch to.
And the audio mediapromise is rejected with WAITING_FOR_DATA
The 3rd appendBuffer does add the audio, however is audio add is between 0 and 0.5s.
As mLastAudioData was adjusted to be 0.53s we will never get audio data.
So loadeddata is never fired, and the test timeout.
This is a racey behaviour as if appendData happened to run before RequestAudioData is called, the test will succeed.
Assignee | ||
Comment 4•10 years ago
|
||
Transferring from bug 1141785
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8577994 [details] [diff] [review]
Part1. Add useful informations to logging
carrying r+ by :mattwoodrow
Attachment #8577994 -
Flags: review+
Assignee | ||
Comment 6•10 years ago
|
||
Transferring from bug 1141785
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8577995 [details] [diff] [review]
Part2. Don't consider decoding error as fatal
Carrying r+ from :mattwoodrow
Attachment #8577995 -
Flags: review+
Assignee | ||
Comment 8•10 years ago
|
||
Retry from last failing position.
Attachment #8578012 -
Flags: review?(matt.woodrow)
Assignee | ||
Comment 9•10 years ago
|
||
update webref accordingly
Attachment #8578013 -
Flags: review?(karlt)
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8578012 [details] [diff] [review]
Part3. Re-attempt to decode from last failed position
This causes failure of test_WaitingOnMissingData_mp4.html
I don't think we actually fail as such, but we don't pass the test on where playback stall.
Attachment #8578012 -
Attachment is obsolete: true
Attachment #8578012 -
Flags: review?(matt.woodrow)
Assignee | ||
Comment 11•10 years ago
|
||
Only use previous location if we were well within the current buffered range
Attachment #8578375 -
Flags: review?(matt.woodrow)
Updated•10 years ago
|
Attachment #8578013 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 12•10 years ago
|
||
Test still occasionally timing out, will open a new bug 1143999 as the cause for this one was identified
Updated•10 years ago
|
Attachment #8578375 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 13•10 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/7c5aba53c37c
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/782ccaeb2516
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/75e796723b11
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/053badf57403
Comment 14•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7c5aba53c37c
https://hg.mozilla.org/mozilla-central/rev/782ccaeb2516
https://hg.mozilla.org/mozilla-central/rev/75e796723b11
https://hg.mozilla.org/mozilla-central/rev/053badf57403
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Assignee | ||
Comment 15•10 years ago
|
||
Comment on attachment 8577994 [details] [diff] [review]
Part1. Add useful informations to logging
Approval request for all patches.
Approval Request Comment
[Feature/regressing bug #]:1128332
[User impact if declined]:Less spec compliant. webref test failing
[Describe test coverage new/current, TreeHerder]:in m-c for over a week.
[Risks and why]: Low, it prevents a race condition that would cause intermittent failure
[String/UUID change made/needed]: None
Attachment #8577994 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(jyavenard)
Updated•10 years ago
|
status-firefox38:
--- → affected
Updated•10 years ago
|
Attachment #8577994 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 16•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/804fbc039725
https://hg.mozilla.org/releases/mozilla-aurora/rev/a3ddca520a58
https://hg.mozilla.org/releases/mozilla-aurora/rev/030201a8f8ed
https://hg.mozilla.org/releases/mozilla-aurora/rev/8333cdfb08e8
Flags: in-testsuite+
Assignee | ||
Comment 17•10 years ago
|
||
I had W3 failure on my aurora try run, that's why I didn't push it. Obviously missing a dependency :(
Flags: needinfo?(jyavenard)
You need to log in
before you can comment on or make changes to this bug.
Description
•