Chrome does not render PDF - Bad end offset
See original GitHub issueConfiguration:
- 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)
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ksn135 There is a “Disable range requests” option - try toggling it.
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.