You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, maybe someone experienced this issue before or has a hint.
I'm not sure if its a bug.
So i'm trying to use this pdf library in combination with @tanstack/vue-virtual to virtualize the pages.
Which works fine so long until it doesn't and I get this error without
When I load the PDF, the PDFDocumentLoadingTask promise resolves but the pdf isn't rendered.
It only happens on some PDFs and i cant pinpoint the difference between these pdf's.
The error that occurs when scrolling and new VuePDF instances are loaded.
@tato30_vue-pdf.js?v=8f8ba6dc:12182 Uncaught TypeError: Cannot read properties of null (reading 'sendWithPromise')
at WorkerTransport.getPage (@tato30_vue-pdf.js?v=8f8ba6dc:12182:41)
at PDFDocumentProxy.getPage (@tato30_vue-pdf.js?v=8f8ba6dc:10978:28)
at S (@tato30_vue-pdf.js?v=8f8ba6dc:20165:50)
at Proxy.z (@tato30_vue-pdf.js?v=8f8ba6dc:20208:7)
at reload (FileViewerNew.vue:90:34)
at later (FileViewerNew.vue:103:34)
Does @tanstack/vue-virtual use v-if to hide the component? Since 1.11.1 setting v-if to false will unmount the component and destroy the worker with it, that is probably the issue here. I will rollback this patch in the next version but if it is possible use v-show instead of v-if
Hello everyone, maybe someone experienced this issue before or has a hint.
I'm not sure if its a bug.
So i'm trying to use this pdf library in combination with @tanstack/vue-virtual to virtualize the pages.
Which works fine so long until it doesn't and I get this error without
When I load the PDF, the PDFDocumentLoadingTask promise resolves but the pdf isn't rendered.
It only happens on some PDFs and i cant pinpoint the difference between these pdf's.
The error that's on the initial load:
The error that occurs when scrolling and new VuePDF instances are loaded.
in this code:
Where the this.messageHandler is null for some reason.
So it seems that the setupMessageHandler wasn't called, or the worker crashed or i don't know.
If someone could give me some hints how to debug, this would be awesome.
The text was updated successfully, but these errors were encountered: