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

Allow skipping of errors when parsing broken/unsupported ColorSpaces (issue 6707, issue 11287) #11296

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Oct 31, 2019

This will allow us to attempt to recover as much as possible of a page, rather than immediately failing, when a broken/unsupported ColorSpace is encountered. This patch thus extends the framework added in PRs such as e.g. #8240 and #8922, to also cover parsing of ColorSpaces.

Fixes #6707
Fixes #11287

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 18.55 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 26.55 mins

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

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

@Snuffleupagus Snuffleupagus marked this pull request as ready for review October 31, 2019 15:34
colorSpace = await this.parseColorSpace({
cs: group.get('CS'),
resources,
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is essentially a better, and more general, version of PR 11047; as suggested in #11047 (comment)

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 18.61 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 26.56 mins

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

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

…(issue 6707, issue 11287)

This will allow us to attempt to recover as much as possible of a page, rather than immediately failing, when a broken/unsupported ColorSpace is encountered. This patch thus extends the framework added in PRs such as e.g. 8240 and 8922, to also cover parsing of ColorSpaces.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 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/bb43b9ae271a0c9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 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/a12bceb15d8c3d3/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

From: Bot.io (Linux m4)


Success

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

Total script time: 18.61 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

From: Bot.io (Windows)


Failed

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

Total script time: 26.62 mins

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

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

@timvandermeij timvandermeij merged commit bbd2386 into mozilla:master Nov 1, 2019
@timvandermeij
Copy link
Contributor

This seems like a good approach; thanks!

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

From: Bot.io (Windows)


Received

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

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

@timvandermeij timvandermeij removed the core label Nov 1, 2019
@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

From: Bot.io (Linux m4)


Success

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

Total script time: 16.87 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 1, 2019

From: Bot.io (Windows)


Success

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

Total script time: 23.89 mins

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

@Snuffleupagus Snuffleupagus deleted the parseColorSpace-stopAtErrors branch November 2, 2019 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First and Third Page Blank - Foxit Loads PDF Properly Blank page and transparency not rendered
3 participants