Error: Worker was destroyed
See original GitHub issueGetting this error when I go to another component and come back to the component that includes the pdf. It works fine on first visit to the component.
Error: Worker was destroyed at _fetchDocument (eval at <anonymous> (app.js:6530), <anonymous>:2541:27) at eval (eval at <anonymous> (app.js:6530), <anonymous>:2527:12) at <anonymous>
I tried to reproduce it with this jsfiddle, but couldn’t get the same error…
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Error Loading PDF Files in React-PDF `Worker was destroyed`
I am trying to create a custom PDF viewer with react-pdf v6.2.0 to load in PDFs that I get from an API that...
Read more >Explosion that destroyed apartment building caused by worker ...
The worker went to the unit below that apartment and cut what he believed to be a drain waste pipe to remove the...
Read more >JSDoc: Source: api.js
* Abort all network requests and destroy the worker. * @returns {Promise<void>} A promise that is resolved when destruction is; * completed.
Read more >PDF.js Destroy Worker Example
PDF.js Destroy Worker Example. GitHub Repo. Create Worker Render PDF Destroy Worker.
Read more >JSDoc: Source: display/api.js - Index of
disableCreateObjectURL,; verbosity: PDFJS.verbosity; }).then(function (workerId) {; if (worker.destroyed) {; throw new Error('Worker was destroyed');; } ...
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 Free
Top 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
@ChenMachluf thanks for your fix ! Since several people are waiting for this fix, I commit your 2nd proposition while https://github.com/mozilla/pdf.js/pull/8738 is pending.
That little fix solve the problem for me. https://github.com/mozilla/pdf.js/issues/8738 hope it will merge soon
If it not accepted there we can change this to the end of “loadDocument” in pdf.vue