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

Prevent browser exceptions from incorrectly triggering the assert in PDFPageProxy._abortOperatorList (PR 11069 follow-up) #11308

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

For certain canvas-related errors (and probably others), the browser rendering exceptions may be propagated "as-is" to the PDF.js code. In this case, the exceptions are of the somewhat cryptic NS_ERROR_FAILURE type.
Unfortunately these aren't actual Errors, which thus ends up unintentionally triggering the assert in PDFPageProxy._abortOperatorList; sorry about that!

To reproduce this problem, open https://github.com/mozilla/pdf.js/files/703007/PeakLoadGrowth_Redacted.xlsx.pdf#page=2 (from issue 7952) and zoom in a couple of times until rendering breaks and the fallback bar is displayed in Firefox.

…n `PDFPageProxy._abortOperatorList` (PR 11069 follow-up)

For certain canvas-related errors (and probably others), the browser rendering exceptions may be propagated "as-is" to the PDF.js code. In this case, the exceptions are of the somewhat cryptic `NS_ERROR_FAILURE` type.
Unfortunately these aren't actual `Error`s, which thus ends up unintentionally triggering the `assert` in `PDFPageProxy._abortOperatorList`; sorry about that!
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Nov 7, 2019

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/8e64586e27a91a8/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 7, 2019

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/4a192e64687fecc/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 7, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/8e64586e27a91a8/output.txt

Total script time: 18.70 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 7, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/4a192e64687fecc/output.txt

Total script time: 26.77 mins

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

@timvandermeij timvandermeij merged commit 668650d into mozilla:master Nov 7, 2019
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the abortOperatorList-assert branch November 8, 2019 09:19
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.

3 participants