-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long playback stall after failed to get next segment reference #3082
Comments
I believe this was fixed in v3.0.7. Can you please try that release? |
Tried v3.0.7 and latest master branch (v3.1.0-pre), long playback stall is still reproducible. |
Hi, recently we encountered this issue in two scenario:
gap_jump_controller detected the gap and performed a jump:
Unfortunately, 21509.937263 was in gap position for audio segment reference
No segment reference found and |
Closing due to inactivity. If this is still an issue for you or if you have further questions, you can ask us to reopen or have the bot reopen it by including |
I believe that we've run into this issue as well. We're able to reproduce it by jumping a small gap when close to live, or by swaping bitrates while playing the stream live, simularly as described in #3082 (comment) Can this issue be reopened? @TheModMaker Edit: This seems to only happen in a live stream and being close to the the live edge. The closer you are to the live edge, the easier it is to reproduce |
Hi, we tried v3.0.10 before and as @Ljugoboss pointed out, it is still not fixed, can this be reopened? |
I haven't been able to reproduce, but having |
Closing as a duplicate of #3393, which has the same problem and is easier to reproduce. |
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.0.6
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
master
?Yes
Are you using the demo app or your own custom app?
Demo app
If custom app, can you reproduce the issue using our demo app?
N/A
What browser and OS are you using?
Chrome 87.0.4280.88, Windows 10
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
N/A
What are the manifest and license server URIs?
N/A
What did you do?
Start playback
What did you expect to happen?
Playback smoothly
What actually happened?
Sometimes when streaming_engine failed to get next segment reference, streaming_engine would fail to advance to next segment forever unless there was an interruption (eg. bitrate change)
The following is the log when this issue happed:
The error is located at
getSegmentReferenceNeeded_
ofstreaming_engine
When
mediaState.lastSegmentReference
exists andmediaState.segmentIterator
is null, a new segmentIterator will be created bysegmentIndex.getIteratorForTime
:https://github.com/google/shaka-player/blob/master/lib/media/streaming_engine.js#L1100
In
getIteratorForTime
ofsegment_index
, no index could be found unfortunatelyA new
SegmentIterator
is created with index = -1After that, the query of next segment iterator (https://github.com/google/shaka-player/blob/master/lib/media/streaming_engine.js#L1101)
makes
currentPosition_
ofSegmentIterator
increment from -1 to 0 (https://github.com/google/shaka-player/blob/master/lib/media/segment_index.js#L517)A null segment reference is returned from
mediaState.segmentIterator.next().value
and a warning is fired:https://github.com/google/shaka-player/blob/master/lib/media/streaming_engine.js#L1103
In the next update,
getSegmentReferenceNeeded_
is called againThis time
mediaState.segmentIterator
is no longer null andmediaState.segmentIterator.current()
is returned. (which is null)getSegmentReferenceNeeded_
will then always return null segment reference, unlessmediaState.segmentIterator
is set to null andsegmentIndex.getIteratorForTime
is called againTo workaround, we have inserted
mediaState.segmentIterator = null
after line:https://github.com/google/shaka-player/blob/master/lib/media/streaming_engine.js#L1103
https://github.com/google/shaka-player/blob/master/lib/media/streaming_engine.js#L1135
but not sure if it is the proper fix
The text was updated successfully, but these errors were encountered: