question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome does not render PDF - Bad end offset

See original GitHub issue

http://www.boarddocs.com/ny/pobcsd/Board.nsf/files/ADDNFU5FC4AB/$file/Smart Schools Investment Plan PresentationSeptember 7 2016 v3.pdf

Configuration:

  • Chrome 53.0.2785.101
  • Windows 10 x64
  • PDF.js 1.5.294

The above PDF opens properly in Firefox 48.0.2 on the same computer, decently fast. However, when loading it in the Chrome extension, the loading bar on top fills and a blank screen is shown (see screenshot). Console shows the following:

pdf.worker.js:2311 Error: Bad end offset: 3465432
pdf.worker.js:2312     at error (chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/content/build/pdf.worker.js:2312:17)
    at assert (chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/content/build/pdf.worker.js:2327:5)
    at Object.ChunkedStream_onReceiveData [as onReceiveData] (chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/content/build/pdf.worker.js:6069:7)
    at Object.ChunkedStreamManager_onReceiveData [as onReceiveData] (chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/content/build/pdf.worker.js:6478:21)
    at Object.<anonymous> (chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/content/build/pdf.worker.js:6331:14)

2016-09-08_15-22-02

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
szheng95commented, Aug 4, 2017

@ksn135 There is a “Disable range requests” option - try toggling it.

0reactions
Snuffleupaguscommented, Jun 24, 2018

This looks like a duplicate of issue #9544, which according to https://github.com/mozilla/pdf.js/issues/9544#issuecomment-374176371 was a (now fixed) upstream bug in Google Chrome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't render on Chrome properly - WordPress.org
Hello, It's working on Firefox, Edug well but doesn't load on Chrome. ... Uncaught (in promise) Error: Bad end offset: 9656855 ... at...
Read more >
pdf.js: PDF renders incorrectly after Chrome update
I am using pdf.js in my web application and it works fine until I updated chrome to Version 30.0.1599.69 m this morning. The...
Read more >
Is it possible to partial rendering of pdf file? - Technical Support
Hi , can i do partial rendering of pdf file. ... I'm seeing a slew of “Bad end offset” messages and what appear...
Read more >
Solving Pdf Preview Nightmare - simbathesailor.DEV
Just open the pdf in the new tab and the browser will take care of it to preview correctly. Problem: It's not always...
Read more >
Chrome PDF Viewer Not Working? Here's How to Fix It
While turning off hardware acceleration fixes the rendering problems, it might slow down performance when viewing web content. It's a good idea ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found