-
Notifications
You must be signed in to change notification settings - Fork 846
[syncfusion_flutter_pdfviewer] OOM issue when reading a large PDF file on Android #2339
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
Comments
Hi, If the above solution does not work on your end, could you please share the PDF file in which the issue occurs, as this problem appears to be specific to the document? This will help us identify the root cause and provide you with a prompt solution. If you feel that the documents cannot be shared publicly, you may create a ticket in our support portal to share the requested files securely. |
Thanks for your answer, i will try to start with the |
My app is released, will wait one more week to see some user activity and check if it's working 👍 |
Unfortunately @Deepak1799 the
Which seems weird because when i look at the data of my Crashlytics dashboard it seems the user has a lot of RAM available : ![]() Also unfortunately, i can't share the PDF file since it's medical and secure data that i also have no access to... |
Hi @Tom3652, We have confirmed that the out-of-memory issue occurs when loading PDF documents with large page dimensions on the Android platform. is a defect in our product and logged a bug report for the same. The fix for this issue will be included in the upcoming weekly release scheduled for May 27, 2025. Please use the feedback link to track the status of the bug: (Android) Out of memory exception on loading large documents in Flutter | Feedback Portal Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.” |
Hi @immankumarsync thank you very much for the detailed answer and confirmation, happy to hear that and thanks again for your work ! 🚀 |
Bug description
I am receiving some OOM issues from my released app on Android only (this happens much less than before with the latest release) when people are loading large PDFs (80MB+).
The app is crashing because of OOM, while i was hoping for a preloading of 1 page before / after, but not the whole document when a pdf is read.
Steps to reproduce
Try to read a very large PDF (80MB+ is crashing in my app because my app already uses 200MB more or less so the threshold is lowered than in an example app).
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Android
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: