Skip to content
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

Gracefully handle annotation parsing errors in Page.getOperatorList (issue 11871) #11872

Merged
merged 1 commit into from
May 4, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

This should ensure that a page will always render successfully, even if there's errors during the Annotation fetching/parsing.
Additionally the OperatorList.addOpList method is also adjusted to ignore invalid data, to make it slightly more robust.

Fixes #11871

… (issue 11871)

This should ensure that a page will always render successfully, even if there's errors during the Annotation fetching/parsing.
Additionally the `OperatorList.addOpList` method is also adjusted to ignore invalid data, to make it slightly more robust.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/ebf160badd2d2df/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/f986c74a90f2e00/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/ebf160badd2d2df/output.txt

Total script time: 25.64 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/ebf160badd2d2df/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/f986c74a90f2e00/output.txt

Total script time: 27.54 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/f986c74a90f2e00/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/d5cd2efc3f8ba74/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 4, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/d5cd2efc3f8ba74/output.txt

Total script time: 3.29 mins

Published

@timvandermeij timvandermeij merged commit 491904d into mozilla:master May 4, 2020
@timvandermeij
Copy link
Contributor

Thanks!

@timvandermeij
Copy link
Contributor

timvandermeij commented May 4, 2020

I have not made reference images on purpose because of the broken fonts in Firefox Nightly. I considered changing Puppeteer to use another Firefox version, but I noticed that the problem in https://bugzilla.mozilla.org/show_bug.cgi?id=1607630 has been tracked down, so if a solution is merged in the coming days we'll get it automatically and we can makeref in another patch. If the upstream solution takes too long, we should be able to still switch (given that I did not try this before, I'd much rather have this fixed upstream instead, especially since we need to upgrade sooner or later anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only page one shown of two sided PDF
3 participants