-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Implements onerror for JpegStreams #4969
Conversation
@@ -1562,5 +1562,9 @@ function loadJpegStream(id, imageUrl, objs) { | |||
img.onload = (function loadJpegStream_onloadClosure() { | |||
objs.resolve(id, img); | |||
}); | |||
img.onerror = (function loadJpegStream_onerrorClosure() { | |||
objs.resolve(id, null); | |||
error('Image dependency not ready'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it a warning and change the text to something like 'Error during JPEG image loading'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. This makes the console messages much nicer.
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/7133ca171ee0e71/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/e1d8942c5c999e7/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/e1d8942c5c999e7/output.txt Total script time: 21.36 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/7133ca171ee0e71/output.txt Total script time: 23.74 mins
|
Thanks |
Implements onerror for JpegStreams
Partly addresses #2812. It resolves the infinite loop and renders everything but the images.
Thanks to @yurydelendik for helping with debugging this!