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

Uncaught TypeError: Cannot read property 'detectMultipleBufferedRanges' of null #156

Closed
sanbornhilland opened this issue Aug 12, 2015 · 0 comments
Assignees
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@sanbornhilland
Copy link
Contributor

If you unload the player on a Network Failure error, and wait a few minutes you'll get the error: Uncaught TypeError: Cannot read property 'detectMultipleBufferedRanges' of null

To recreate this in the sample app, call app.player_.unload() in app.onPlayerError_. Then, start playback and kill your network. You'll get a Network Error and the player will unload. After several seconds you'll get the TypeError because the onUpdate_() method will fire and try to read this.sbm.detectMultipleBufferedRanges but this.sbm is null. Presumably the updatetimer should get cancelled when unload() is called. CancelUpdateTimer_ does get called on unload() but then right after it setUpdateTimer_() gets called which kicks off another onUpdate_().

So far this doesn't seem to cause any major problems because when you reach this point you have to load new content to play again anyway so I don't think this is really critical, it's just not pretty to have this error showing up.

@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Aug 12, 2015
@joeyparrish joeyparrish added this to the v1.5.0 milestone Aug 12, 2015
@joeyparrish joeyparrish self-assigned this Aug 12, 2015
joeyparrish added a commit that referenced this issue Aug 18, 2015
Closes #156

Change-Id: I1d50bbc5d3b00c0d472182435760616e8f1d37fa
@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

4 participants