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

Exceptions when load a document while loading document #6523

Closed
xlc opened this issue Oct 13, 2015 · 1 comment
Closed

Exceptions when load a document while loading document #6523

xlc opened this issue Oct 13, 2015 · 1 comment

Comments

@xlc
Copy link
Contributor

xlc commented Oct 13, 2015

Using demo viewer with Chrome v46

While loading a PDF from internet or a huge pdf from local file, while the file is loading, open another document sometimes will cause some exceptions. I have throttled the network so the file is not loading too fast.

I think the solution is to teardown the worker properly before loading a new document.

Uncaught (in promise) TypeError: Cannot read property 'pdfPage' of undefined
(…)(anonymous function) @ viewer.js:4894
Promise.resolve (async)messageHandlerComObjOnMessage @ pdf.js:1494
2015-10-13 13:05:43.304 viewer.html:1 Uncaught (in promise) TypeError: Cannot read property 'pdfPage' of undefined
(…)(anonymous function) @ viewer.js:4894
Promise.resolve (async)messageHandlerComObjOnMessage @ pdf.js:1494
Uncaught TypeError: Cannot read property '_renderPageChunk' of undefined
transportRender @ pdf.js:2718
messageHandlerComObjOnMessage @ pdf.js:1522
2015-10-13 13:06:57.811 pdf.js:2718 Uncaught TypeError: Cannot read property '_renderPageChunk' of undefined
transportRender @ pdf.js:2718
messageHandlerComObjOnMessage @ pdf.js:1522
@Snuffleupagus
Copy link
Collaborator

Closing as duplicate of issue #3485.

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

No branches or pull requests

2 participants