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

Error on PDFDocumentLoadingTask.destroy: Cannot read property 'objs' of undefined #6577

Closed
Kureev opened this issue Oct 29, 2015 · 8 comments

Comments

@Kureev
Copy link

Kureev commented Oct 29, 2015

image
Version 1.2.38
Occurs when I try to cancel existing transfer.

Seems messageHandler keeps receiving 'obj' messages even after destroy(). But pageCache object has been flushed already, so line 2915 if (pageProxy.objs.hasData(id)) { throws an error above.

cc @yurydelendik

@yurydelendik
Copy link
Contributor

@Kureev can you provide a test case?

@yurydelendik
Copy link
Contributor

Also see if #6571 fixes the issue

@Kureev
Copy link
Author

Kureev commented Oct 29, 2015

@yurydelendik I'm using it for a single document, so seems #6571 can't help me with it. What kind of a test case do you want?

@yurydelendik
Copy link
Contributor

What kind of a test case do you want?

A test case that demonstrate the issue. You already have a code, so it will save the project contributors time to narrow down the issue.

@Kureev
Copy link
Author

Kureev commented Oct 29, 2015

@yurydelendik Unfortunately, I don't have a permission to share this code with anybody, but I'll try to compose a sandbox to demonstrate it

@Kureev
Copy link
Author

Kureev commented Oct 29, 2015

@yurydelendik
Copy link
Contributor

Okay, it looks like the similar issue as in #6560, but at different timing. Used PDF document is also matters. (You can reproduce with high rate if you will add pdf.destroy(); just after the render method call).

@Kureev
Copy link
Author

Kureev commented Oct 29, 2015

This works ❤️ !

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

2 participants