-
-
Notifications
You must be signed in to change notification settings - Fork 406
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 issue in IOS when open large PDF file #516
Comments
Fixed in |
i am still having the same problem in IOS even after upgrading library, can any one help please |
@gamalshaaban1986 Have you also done this? https://github.com/VadimDez/ng2-pdf-viewer/blob/master/CHANGELOG.md#breaking-change |
yes , unfortunately the same problem, i think memory is not freed . the scenario i am facing is when trying to open files consequently, it works fine with the first one , then crashes on the next .is there any way to force freeing resources allocated in memory? |
@gamalshaaban1986 before I'll dig into this problem you can try to hide and then show the component - this hack might help for now... |
Actually i didn't get understand what do you mean, my html for your reference <pdf-viewer [src]="pdfSrc" style="display: block;" [zoom]="pdfZoom" [rotation]="rotation" |
did you mean adding *ngIf="isShown"? |
Could you try the latest version |
Thank VadimDez, |
I got the same issue, do we have any temporary solution? |
@htruong24 You could try to do what it says here and make the pdf container scrollable, so that it doesn't render all the pages. |
I have the same issue. I am using Ionic 5 and the latest version of ng2-pdf-viewer. I made the pdf container scrollable. |
Hi We have the same problem using version 7.0.1 and viewing a file of less then 1MB. Just one second before white page we can trace this log:
Any help? Thanks |
Bug Report or Feature Request (mark with an
x
)Hi There,
I am trying to open large PDF in my ionic 3 angular 5 project its working fine in browser but in IOS when i try to open large PDF (more than 100 MB) it gets open but after few seconds screen gets white and app gets refresh.
I found below log just before screen gets white.
also i googled this error and found that this can be happen when app try to occupy much memory.
Is there any way to open large file without memory leak ?
Thanks in advance!
The text was updated successfully, but these errors were encountered: