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

Ensure that PDFDocument.checkFirstPage waits for cleanup to complete (PR 10392 follow-up) #11390

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Given how this method is currently used there shouldn't be any fonts loaded at the point in time where it's called, but it does seem like a bad idea to assume that that's always going to be the case. Since PDFDocument.checkFirstPage is already asynchronous, it's easy enough to simply await Catalog.cleanup here.

(The patch also makes a tiny simplification in a loop in Catalog.cleanup.)

…e (PR 10392 follow-up)

Given how this method is currently used there shouldn't be any fonts loaded at the point in time where it's called, but it does seem like a bad idea to assume that that's always going to be the case. Since `PDFDocument.checkFirstPage` is already asynchronous, it's easy enough to simply await `Catalog.cleanup` here.

(The patch also makes a tiny simplification in a loop in `Catalog.cleanup`.)
@pdfjsbot
Copy link

pdfjsbot commented Dec 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/11301af79d25234/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 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/b2cd81f067c123f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2019

From: Bot.io (Linux m4)


Failed

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

Total script time: 18.80 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/11301af79d25234/output.txt

Total script time: 26.73 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Dec 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/424fe0081e9052e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 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/f3fb32bedfac84f/output.txt

@Snuffleupagus Snuffleupagus force-pushed the checkFirstPage-await-cleanup branch from 96ea33d to a02122e Compare December 7, 2019 12:22
@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2019

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/424fe0081e9052e/output.txt

Total script time: 18.82 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2019

From: Bot.io (Windows)


Failed

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

Total script time: 26.36 mins

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

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

@timvandermeij timvandermeij merged commit 07212bf into mozilla:master Dec 8, 2019
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the checkFirstPage-await-cleanup branch December 10, 2019 11:17
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