-
Notifications
You must be signed in to change notification settings - Fork 899
Open
Labels
pdf viewerPDF viewer componentPDF viewer componentwaiting for customer responseCannot make further progress until the customer responds.Cannot make further progress until the customer responds.
Description
Bug description
When using the library on an iPad and attempting to load a large PDF file (300 MB), the application crashes or freezes completely.
The difference in behavior is related to the use of .file or .memory.
In both cases, the problem is related to the fact that the 300 MBs are instantly added to the heap stack, causing the application to run out of memory.
I also tried to stream the content of the file to the viewer but it failed miserably 😢
Steps to reproduce
Use .file or .memory named constructor to create a PdfViewer and load a large file (300MB)
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?
iOS, Android
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.8, on macOS 15.4.1 24E263 darwin-arm64, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.103.2)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!Metadata
Metadata
Assignees
Labels
pdf viewerPDF viewer componentPDF viewer componentwaiting for customer responseCannot make further progress until the customer responds.Cannot make further progress until the customer responds.