-
Notifications
You must be signed in to change notification settings - Fork 877
Open
Labels
bugSomething isn't workingSomething isn't workingfollow-up scheduledFollow-up scheduledFollow-up scheduledpdf viewerPDF viewer componentPDF viewer component
Description
Bug description
When opening certain PDF files using the SfPdfViewer widget from the syncfusion_flutter_pdfviewer package, the app suddenly hangs or becomes unresponsive. This issue occurs on both iOS and Android platforms.
Notably, there are no logs or stack traces printed in the console — the app simply freezes without any feedback. The issue seems to occur during or shortly after rendering begins, potentially in the build or parsing phase.
Steps to reproduce
Load this file via network, memory, or file: crashing2.pdf
Code sample
Code sample
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.pink,
),
body: SfPdfViewer.network(
'https://github.com/user-attachments/files/21480491/crashing2.pdf',
),
);
Screenshots or Video
Stack Traces
Stack Traces
No logs shown
On which target platforms have you observed this bug?
Android, iOS
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale en-PH) [887ms]
• Flutter version 3.32.0 on channel stable at /Users/dev9/fvm/versions/3.32.0
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (2 months ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [5.5s]
• Android SDK at /Users/dev9/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) [2.6s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [13ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2) [12ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.102.2) [10ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.114.0
[✓] Connected device (2 available) [7.8s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 138.0.7204.169
[✓] Network resources [3.5s]
• All expected network resources are available.
• No issues found!
Notes:
- The issue only occurs with PDFs that contain form fields.
- Wrapping the viewer in
try-catch
or usingonDocumentLoadFailed
does not catch the error. - The same PDF may work when viewed in other PDF readers.
Thank you for your support!
Please let me know if I can provide any additional information or sample files to help investigate this issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfollow-up scheduledFollow-up scheduledFollow-up scheduledpdf viewerPDF viewer componentPDF viewer component