-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Handle errors gracefully, in PartialEvaluator.translateFont
, when fetching the font file (issue 9462)
#12962
Conversation
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/66b052e858a1df1/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/63f6756131ae0c4/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/63f6756131ae0c4/output.txt Total script time: 22.83 mins
Image differences available at: http://54.67.70.0:8877/63f6756131ae0c4/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/66b052e858a1df1/output.txt Total script time: 29.33 mins
Image differences available at: http://3.101.106.178:8877/66b052e858a1df1/reftest-analyzer.html#web=eq.log |
1b9e5b4
to
ada9330
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/5ad5604113911c2/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/fe88e6ef8377a7b/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/5ad5604113911c2/output.txt Total script time: 23.02 mins
Image differences available at: http://54.67.70.0:8877/5ad5604113911c2/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/fe88e6ef8377a7b/output.txt Total script time: 28.91 mins
Image differences available at: http://3.101.106.178:8877/fe88e6ef8377a7b/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/a654587edec1b22/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/f0c3babb2b0d616/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/f0c3babb2b0d616/output.txt Total script time: 4.56 mins
Image differences available at: http://54.67.70.0:8877/f0c3babb2b0d616/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/a654587edec1b22/output.txt Total script time: 5.74 mins
|
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/480c3f9a11e192d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/0ce7de403756f66/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/480c3f9a11e192d/output.txt Total script time: 4.52 mins
Image differences available at: http://54.67.70.0:8877/480c3f9a11e192d/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/0ce7de403756f66/output.txt Total script time: 5.80 mins
|
42dcc17
to
8095d0e
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/88d823143764dd5/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/3ba5fe37cd1f00c/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/88d823143764dd5/output.txt Total script time: 4.58 mins
Image differences available at: http://54.67.70.0:8877/88d823143764dd5/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/3ba5fe37cd1f00c/output.txt Total script time: 60.00 mins |
16e33f1
to
e6fe8a7
Compare
…etching the font file (issue 9462) The *third* page of the referenced PDF document currently fails to render completely, since one of its font files fail to load. Since that error isn't handled, a large part of the text is thus missing which looks quite bad. By "replacing" the font data with an *empty* stream, we'll thus be able to fallback to rendering the text with a standard font (instead of using `ErrorFont`). While there's obviously no guarantee that things will look perfect, actually rendering the text at all should be an improvement in general. Also, print a warning in `PartialEvaluator.loadFont` when the `PartialEvaluator.translateFont` method rejects, since that'd have helped debug/fix the issue faster.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/8931ec781ecdfcc/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/90852f4260fc51f/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/8931ec781ecdfcc/output.txt Total script time: 23.53 mins
Image differences available at: http://54.67.70.0:8877/8931ec781ecdfcc/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/90852f4260fc51f/output.txt Total script time: 29.06 mins
Image differences available at: http://3.101.106.178:8877/90852f4260fc51f/reftest-analyzer.html#web=eq.log |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/b48d1e31af08c4f/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/b48d1e31af08c4f/output.txt Total script time: 4.31 mins Published |
Thank you for fixing this! /botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 1 Live output at: http://3.101.106.178:8877/632afa94079dabf/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/4b9b8ba3e0abb5f/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/4b9b8ba3e0abb5f/output.txt Total script time: 21.26 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/632afa94079dabf/output.txt Total script time: 27.07 mins
|
The third page of the referenced PDF document currently fails to render completely, since one of its font files fail to load.
Since that error isn't handled, a large part of the text is thus missing which looks quite bad. By "replacing" the font data with an empty stream, we'll thus be able to fallback to rendering the text with a standard font (instead of using
ErrorFont
). While there's obviously no guarantee that things will look perfect, actually rendering the text at all should be an improvement in general.Also, print a warning in
PartialEvaluator.loadFont
when thePartialEvaluator.translateFont
method rejects, since that'd have helped debug/fix the issue faster.Fixes #9462