ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

Closing Large Files - Transport destroyed

Open og77036 opened this issue 2 years ago • 2 comments

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ x ] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

Hi,

I tried to search for this issue before submitting but couldn't find an answer on how to resolve. I found issue when opening a large file (~200 pages) and closing it is throwing "pdf_viewer.js:9203 Unable to get page 'n' to initialize viewer Error: Transport destroyed". This is because it is closing before all pages are rendered. We would like to be able to close a file without having to wait for all to finish rendering. I tried calling the destroy() on the PDFDocumentProxy and cleanup() and also tried setting it to null but none are working.

og77036 avatar Apr 29 '22 20:04 og77036

I have the same issue. It doesn't go through (error) or any other event!

The exception/error appears for every page in the file that didn't get to render Stack: image

The error will appear if the view is closed/destroyed while the page is rendering (the loader is still visible, but half the page is rendered only)

Et3rnal avatar May 31 '22 04:05 Et3rnal

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 18:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '22 16:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 26 '22 05:12 stale[bot]

Same here, while changing src during rendering

edoardopieropan avatar May 18 '23 13:05 edoardopieropan