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

Memory Leak ? #5

Open
drbsoftware opened this issue Sep 16, 2013 · 2 comments
Open

Memory Leak ? #5

drbsoftware opened this issue Sep 16, 2013 · 2 comments

Comments

@drbsoftware
Copy link

drbsoftware commented Sep 16, 2013

When looking at successive uses of PDF Viewer in Chrome, it appears that the WorkerTransport destroy is never called when the viewer is destroyed.

This means that the pageCache and other storage remain in memory.

I don't know if this is properly a PDF Viewer problem or a PDFJS problem, but it means that Sencha apps making extensive use of PDF Viewer may run themselves out of memory.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@drbsoftware
Copy link
Author

I think PDF.js destroy needs something like:

        if (me.pdfDoc) {
            me.pdfDoc.destroy();
            delete me.pdfDoc;
        }

@SunboX
Copy link
Owner

SunboX commented Sep 17, 2013

yep, you are right. I will implement it.

Thanks for the hint! :)

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