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

Ignore the rest of the image when encountering an EOI (End of Image) marker while parsing Scan data (issue 9679) #9730

Merged
merged 2 commits into from
May 31, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 16, 2018

When submitting the "separate image-decoders" PR, I happened to glance briefly at other open JPEG issues and noticed that issue #9679 looked really simple, so...

One caveat here is that I've not run any tests locally, so I suppose that this could fail spectacularly :-)

Edit: The Windows failures looks intermittent (the forms tests), or unrelated to the built-in JPEG decoder. The Linux "failures" are only in text tests, and should thus be unrelated as well; they look like the old "Firefox was updated on the bots, and makeref is thus needed".

@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/fd381b5a76a73cb/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/54d9236ed1a4a92/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/54d9236ed1a4a92/output.txt

Total script time: 4.69 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 18.98 mins

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

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

@timvandermeij
Copy link
Contributor

timvandermeij commented May 16, 2018

It looks like Webpack is requiring more and more memory lately, and I think this is also what I saw when I tried to upgrade PDF.js to Webpack 4, which worked fine on my machine but not on the bots. There are options to increase allowed memory usage (refer to https://stackoverflow.com/questions/26094420/fatal-error-call-and-retry-last-allocation-failed-process-out-of-memory), but instead of doing that I'd rather find the cause of the excessive memory usage. Indeed it doesn't seem related to this patch at all.

@Snuffleupagus
Copy link
Collaborator Author

[...] but instead of doing that I'd rather find the cause of the excessive memory usage. Indeed it doesn't seem related to this patch at all.

Since finding/fixing the Webpack issues might take some time/effort, could we simply land this patch as-is given that the Linux bot ran successfully (since its failures are unrelated to image decoding)?

@timvandermeij
Copy link
Contributor

I think that would be OK, but I'm worried that making the reference images may break in the same way. Once I'll have time to review it, I think we can just try and figure out what to do next if that doesn't work.

@timvandermeij
Copy link
Contributor

/botio-windows test

@timvandermeij
Copy link
Contributor

@yurydelendik @brendandahl It looks like the Windows bot is down. Could you restart it?

@brendandahl
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/7908b12c01d7fb7/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/7908b12c01d7fb7/output.txt

Total script time: 4.88 mins

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

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

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows test

@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/3e32b56588dfeca/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/3e32b56588dfeca/output.txt

Total script time: 4.91 mins

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

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

@Snuffleupagus
Copy link
Collaborator Author

Slightly off-topic, but given that the Windows bot always seem to fail with FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory this probably explains why neither gh-pages nor pdfjs-dist has been updated for a month now.
I'm assuming that's already tracked elsewhere, even though quick searching didn't find anything.

@timvandermeij
Copy link
Contributor

timvandermeij commented May 20, 2018

Yes, I think the failures here, the gh-pages not being updated and Webpack 4 not working all share the same cause. It looks like Webpack requires too much memory on the bots. I'll see if I can find a way to reduce Webpack's memory usage, since I read a few articles that state that the default settings are perhaps a bit too simplistic and may need tweaking.

@Snuffleupagus Snuffleupagus force-pushed the jpeg-EOI-decodeScan branch from 8342078 to 1f52a6e Compare May 29, 2018 05:55
@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/bd33c7562c4fefb/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/bd33c7562c4fefb/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/bd33c7562c4fefb/reftest-analyzer.html#web=eq.log

@Snuffleupagus Snuffleupagus force-pushed the jpeg-EOI-decodeScan branch from 2443787 to 83ff7d9 Compare May 30, 2018 22:50
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@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/76a023a7b0d3126/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/1737e9e70b27ada/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/76a023a7b0d3126/output.txt

Total script time: 18.84 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/1737e9e70b27ada/output.txt

Total script time: 24.94 mins

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

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/93746358ab2b7a4/output.txt

Total script time: 4.14 mins

Published

@timvandermeij
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/23d545d98d5a7aa/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/842d0d6e921d563/output.txt

Total script time: 17.55 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/23d545d98d5a7aa/output.txt

Total script time: 22.72 mins

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

@timvandermeij timvandermeij merged commit e39541a into mozilla:master May 31, 2018
@timvandermeij
Copy link
Contributor

Thank you for fixing this (and for the triage of other issues)! Good to have the bots working again too.

@Snuffleupagus Snuffleupagus deleted the jpeg-EOI-decodeScan branch June 1, 2018 06:12
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Ignore the rest of the image when encountering an EOI (End of Image) marker while parsing Scan data (issue 9679)
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.

4 participants