Skip to content
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

resetAndIntializePlayback method not robust after a failed playback #1153

Closed
wilaw opened this issue Feb 9, 2016 · 4 comments
Closed

resetAndIntializePlayback method not robust after a failed playback #1153

wilaw opened this issue Feb 9, 2016 · 4 comments
Labels
Milestone

Comments

@wilaw
Copy link
Member

wilaw commented Feb 9, 2016

If an attempt is made to play a manifest which results in a media decode error, the subsequent call to resetAndIntializePlayback() on mediaplayer results in the callstack error described by the attached image.

screen shot 2016-02-09 at 8 39 59 am

@wilaw wilaw added the Bug label Feb 9, 2016
@dsparacio
Copy link
Contributor

@wilaw Do you have an MPD that exhibits this behavior?

@wilaw
Copy link
Member Author

wilaw commented Feb 9, 2016

http://212.99.93.126:8090/dash_irt/manifest.mpd but may not be up for long.

@dsparacio
Copy link
Contributor

thanks @wilaw i was able to reproduce. Non blocking issue just shows error in reset logic but you can still play a new source file with no issue. This should be addressed in 2.1.

@dsparacio dsparacio added this to the 2.1.0 milestone Feb 9, 2016
@davemevans
Copy link
Contributor

The problem occurs because streamcontroller resets itself in the case of decode error but not if everything went well. Calling streamcontroller.reset again obviously shouldnt cause an exception so we should put guards around this stuff, but I also wonder whether objects should only be reset by their owner in one place which would mean this problem wouldn't occur anyway.

This is very similar to #1130, where modules can be reset by code which does not own them and they are not robust to multiple reset calls.

dsparacio pushed a commit that referenced this issue Feb 17, 2016
…Objects

Fix #1153, #1130 - Guard against dereferencing null objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants