player.configure({textDisplayFactory:...}) crashes in player.unload() with a release build #1187
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
What is the correct way for using the textDisplayFactory field in the player's configure structure?
We're using a custom TTML text renderer/displayer. Displaying subtitles works fine.
After switching from the
shaka-player.compiled.debug.js
toshaka-player.compiled.js
we notice a crash in the players'unload()
. This does not happen with the debug build.Have you read the FAQ and checked for duplicate issues:
Yes
What version of Shaka Player are you using:
master branch
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:
My own based on the shaka tutorial "Basic Usage"
If custom app, can you reproduce the issue using our demo app:
No but there's sample code attached to reproduce:
Just dump the 2 attached files in the
$ROOT/demo
directory./build/all.py
, starthttp-server -c-1 --cors="*" -p12345
from the rootNow load
fm_demo.html
with ChromeWhat browser and OS are you using:
Chrome (also seeing this on the chromecast)
What are the manifest and license server URIs:
(you can send the URIs to shaka-player-issues@google.com instead, but please use GitHub and the template for the rest)
What did you do?
Using the shaka-player.compiled.js
player.configure({
textDisplayFactory: function() {
return new Displayer();
}
});
setTimeout(function() {
console.log('### UNLOADING');
player.unload(); // crash happens here (or in the
.catch()
)}, 8000);
What did you expect to happen?
Graceful unloading without leaving the player in an inconsistant state.
What actually happened?
Seeing this crash in the chrome's developer console, leaving the player in an inconsistant state
The text was updated successfully, but these errors were encountered: