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

Safari failed to render PDF #6001

Closed
Saket-Ranjan opened this issue May 11, 2015 · 10 comments
Closed

Safari failed to render PDF #6001

Saket-Ranjan opened this issue May 11, 2015 · 10 comments

Comments

@Saket-Ranjan
Copy link

On safari (iPad IOS 8 / 8.2 / 8.3) PDF rendering stuck and spinner keep displaying.
I am using PDF.js: 1.0.1040.
Getting exception: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. (pdf.js:6056)

Note that when i change zoom option to 50% or less then its able to display the pdf but when i again increase the zoom value from 50% to more its start throwing the above exception and spinner keeps moving.

@timvandermeij
Copy link
Contributor

Possibly a duplicate of #5839, but we need the PDF file that you are working with for verification. Also, try using the latest version of PDF.js, i.e., at least 1.1.114.

@Saket-Ranjan
Copy link
Author

Yes, i did try with 1.1.114 version but same error.
Here the the sample pdf that will produce the error: http://pdf.site88.net/sample.pdf

Can we get some workaround until its get fixed in next pdfjs release ?

@Saket-Ranjan
Copy link
Author

Hi Guys, any update on this ? Its just stopping me to proceed further.
Any help will be highly appreciated.

@yurydelendik
Copy link
Contributor

Hi Guys, any update on this ? Its just stopping me to proceed further.
Any help will be highly appreciated.

Works fine on Safari 8.0.6 for Mac OSX. Could you also open issue with the vendor of iPad IOS 8?

@Saket-Ranjan
Copy link
Author

Yes i am facing this issue only on iPad with OS version 8.1/8.2/8.3.
On Mac OS its work. The interesting thing is its work when i change the zoom option to 50% or below.
Not sure what is happening when zoom goes above 50%

@adoming3
Copy link

adoming3 commented Dec 4, 2015

I can confirm this issue on Safari 9 OSX 10.11 on longer page PDF's. If I zoom in greater than 100% it will render the entire PDF correctly. Tested on v1.1.469 and v1.2.109.

InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable.
drawImagepdf.js:5071
CanvasGraphics_endGrouppdf.js:5071
CanvasGraphics_executeOperatorListpdf.js:4066
InternalRenderTask__nextpdf.js:3218
InternalRenderTask__next

@yurydelendik
Copy link
Contributor

@adoming3 can you also attach steps to reproduce?

@Snuffleupagus
Copy link
Collaborator

InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable.

There's a change that this particular error has been fixed by PR #6551 (comment), given the following:

I noticed that CachedCanvases are broken (global cache can be cleared in the middle of other page rendering) -- added local caches instead.

@Snuffleupagus
Copy link
Collaborator

Based on reading this issue, it seems to me that it should have been fixed by PR #6551.

@Saket-Ranjan, @adoming3 Is this still an issue, using the latest version of PDF.js?

@timvandermeij
Copy link
Contributor

Closing as resolved until further information as requested above is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants