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

Improve the handling of errors, in PartialEvaluator.loadFont, occuring in PartialEvaluator.preEvaluateFont (issue 12823) #12824

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Currently any errors thrown in preEvaluateFont, which is a synchronous method, will not be handled at all in the loadFont method and we were thus failing to return an ErrorFont-instance as intended here.

Also, add an explicit check in PartialEvaluator.preEvaluateFont to ensure that Type0-fonts always have a valid dictionary.

Fixes #12823

…ing in `PartialEvaluator.preEvaluateFont` (issue 12823)

Currently any errors thrown in `preEvaluateFont`, which is a *synchronous* method, will not be handled at all in the `loadFont` method and we were thus failing to return an `ErrorFont`-instance as intended here.

Also, add an *explicit* check in `PartialEvaluator.preEvaluateFont` to ensure that Type0-fonts always have a *valid* dictionary.
@Snuffleupagus Snuffleupagus force-pushed the preEvaluateFont-errors branch from 6c0e421 to 78c32c2 Compare January 7, 2021 10:38
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/e778f5e11d15691/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

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/9387a6c9268fcf3/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/9387a6c9268fcf3/output.txt

Total script time: 26.00 mins

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

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

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

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Linux m4)


Success

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

Total script time: 4.06 mins

Published

@timvandermeij timvandermeij merged commit 048081f into mozilla:master Jan 7, 2021
@timvandermeij
Copy link
Contributor

Nice; thanks!

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/0c53071d372fa35/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/0c53071d372fa35/output.txt

Total script time: 24.43 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the preEvaluateFont-errors branch January 7, 2021 22:41
@brendandahl
Copy link
Contributor

/botio-windows makeref

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Windows)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://3.101.106.178:8877/26f04cafbbdf93c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/26f04cafbbdf93c/output.txt

Total script time: 0.29 mins

@Snuffleupagus Snuffleupagus restored the preEvaluateFont-errors branch January 8, 2021 07:45
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows makeref

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/26893c228ff0cd9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/26893c228ff0cd9/output.txt

Total script time: 25.86 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the preEvaluateFont-errors branch January 8, 2021 08:15
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.

Some text disappeared in this PDF.
4 participants