-
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
RunTime exception on destroyed player #1423
Comments
It's hard to say what the exact problem is without being able to see your custom app. One possibility is that... I do notice that, in your repro steps, you say that you called:
Is that the exact code? Could you try something like:
or, if you don't want to use ES6 syntax:
|
Although they are both async methods, unload() followed by destroy() without waiting should not cause errors. I'm putting this back in queue to be reproduced by this week's bug cop. |
I tried to reproduce the issue with network throttling, but could not see the exception. |
Problem is partly in our implementation when we setting player to null immediately after destroy(). var player; shaka.js:284 Uncaught (in promise) TypeError: Cannot read property 'onError' of null |
This was fixed as part of #1323, but that wasn't added to a v2.3.x release. I've pulled the relevant parts of that commit into a cherry-pick onto the v2.3.x branch and it will appear in the v2.3.8 release. This has already been fixed on |
Have you read the FAQ and checked for duplicate open issues?: yes
What version of Shaka Player are you using?: 2.3.7
Can you reproduce the issue with our latest release version?: yes
Can you reproduce the issue with the latest code from
master
?: yesAre you using the demo app or your own custom app?: custom
If custom app, can you reproduce the issue using our demo app?: no
What browser and OS are you using?: Chrome Version 66.0.3359.117 (Official Build) (64-bit)
What are the manifest and license server URIs?:
(NOTE: you can send the URIs to [email protected] instead, but please use GitHub and the template for the rest)
(NOTE: a copy of the manifest text or an attached manifest will not be enough to reproduce your issue, and we will ask you to send a URI instead)
What did you do?
step to reproduce:
shaka.Player.unload();
shaka.Player.destroy();
What did you expect to happen?
ignore error events when player is destroyed
What actually happened?
RunTime exception TypeError: Cannot read property 'onError' of null;
streaming_engine.js (line 2200):
shaka.media.StreamingEngine.prototype.handleStreamingError_ = function(error) {
this.playerInterface_.onError(error);
where playerInterface_ is null;
this.config_.failureCallback(error);
where config_ is null
}
The text was updated successfully, but these errors were encountered: