Error closing session DOMException: The session is not callable #664
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Reproduced using v2.0.3.
I have not tried reproducing with v2.0.4.
This is reproducible consistently in our app but I have not yet been able to reproduce this in the Shaka sample app.
OSX 10.12, Chrome 55.0.2883.95
This appears to happen when rapidly loading Widevine protected content.
What appears to be happening is that we can get the player into a state where the
unloadPromise
inshaka.Player.prototype.load
never resolves and therefore theload
process never gets initiated.I've traced this back to the
drmEngine
not shutting down properly. Occasionally for some reasonactiveSession.session.close()
gets rejected with the error: "Error closing session DOMException: The session is not callable". When this happens,activeSession.session.closed
never resolves and the whole unload chain just hangs.I made the following change:
This seems to solve the issue but it's unclear to me why. I can see that
p
!==activeSession.session.closed
but I'm not yet familiar with thisactiveSession.session.closed
promise or what it is so I'm not sure if it is appropriate to returnp
or not.I'll try to come up with reliable reproduction steps for the sample app but so far I have not been able to. Something about the specific timing of the
shaka.load()
calls in our app seems to be hitting a sweet spot.The text was updated successfully, but these errors were encountered: