Closed
Bug 1241405
Opened 10 years ago
Closed 10 years ago
WARNING: Can't add a range if the end is older that the start.: file dom/html/TimeRanges.cpp, line 87
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla46
| Tracking | Status | |
|---|---|---|
| firefox46 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
Details
Attachments
(2 files)
Got the warnings in running test_TimeRanges_warning.html.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jwwang
| Assignee | ||
Comment 1•10 years ago
|
||
call flow:
1. mCurrentPlayRangeStart is assigned to currentTime() (which is 5 in the test case) in HTMLMediaElement::SeekCompleted().
2. assign a new URI to the media element.
3. call play() on the media element.
4. we have mCurrentPlayRangeStart==5 and now==0 in HTMLMediaElement::Played()
5. we hit the warning when calling |ranges->Add(mCurrentPlayRangeStart, now)|.
fix:
reset mCurrentPlayRangeStart to -1.0 when loading a new URI.
| Assignee | ||
Comment 2•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/31909/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/31909/
Attachment #8710900 -
Flags: review?(jyavenard)
Comment 3•10 years ago
|
||
Comment on attachment 8710900 [details]
MozReview Request: Bug 1241405 - reset mCurrentPlayRangeStart in AbortExistingLoads(). r=jya.
https://reviewboard.mozilla.org/r/31909/#review28637
FWIW, I used to see exactly that error message in the MDSM. Following the change from TimeRanges to TimeIntervals (which has a strong assert should end < start) I added this change https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaDecoderStateMachine.cpp#1887 in the MDSM
Not sure if that's related.
but there, often Duration().ToMicroseconds() was < endOfDecodedData causing to assert
Attachment #8710900 -
Flags: review?(jyavenard) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Thanks for the review. I can't find which revision has the assertion.
Comment 5•10 years ago
|
||
(In reply to JW Wang [:jwwang] from comment #4)
> Thanks for the review. I can't find which revision has the assertion.
the assertion is in the TimeIntervals constructor
https://dxr.mozilla.org/mozilla-central/source/dom/media/Intervals.h#56
change occurred there:
https://hg.mozilla.org/mozilla-central/diff/24a7f0fda98b/dom/media/MediaDecoderStateMachine.cpp#l1.86
Comment 7•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•