-
Notifications
You must be signed in to change notification settings - Fork 441
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
Plugin error should be catchable #14
Comments
I have an idea what could be the problem. The plugin is not yet able to simultaneously process a large number of pages. As a workaround, you can use: https://pub.dev/packages/synchronized |
@SergeShkurko Do you have an example how to use synchronized to prevent this issue? |
solved the problem by placing a one second splash screen on a stack widget |
@RenanDelfanti you cant try use native_pdf_renderer 1.7.0 |
@SergeShkurko I have same error.
|
My pubspec:
|
native_pdf_view: ^2.2.0
native_pdf_renderer: ^1.8.1 |
Package name
A name of package whom this bug concerns. Ex.
native_pdf_renderer
Describe the bug
On error in the package the entire app crashes and closes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Throw a catchable exception
Screenshots
N/A
Smartphone (please complete the following information):
Additional context
Below 3 items that worked OK before the next one caused the error.
D/PDF_RENDER( 3424): OpenFileDocument. File: /data/user/0/za.co.mydomain.myapp/app_flutter/Cache/d503a6e1-4be2-4f33-9504-eb4072c26afb.pdf
D/PDF_RENDER( 3424): OpenFileDocument. File: /data/user/0/za.co.mydomain.myapp/app_flutter/Cache/36d1d5da-2086-4d29-a283-4dbb1615bcbd.pdf
D/PDF_RENDER( 3424): OpenFileDocument. File: /data/user/0/za.co.mydomain.myapp/app_flutter/Cache/b6371a15-b068-497c-a410-98cf9ad9a321.pdf
E/AndroidRuntime( 3424): FATAL EXCEPTION: Thread-7
E/AndroidRuntime( 3424): Process: za.co.mydomain.myapp, PID: 3424
E/AndroidRuntime( 3424): io.scer.pdf.renderer.resources.RepositoryItemNotFoundException: 7c4172e9-dcb7-44b7-99f5-0e5f32822ff7
E/AndroidRuntime( 3424): at io.scer.pdf.renderer.resources.Repository.get(Repository.kt:12)
E/AndroidRuntime( 3424): at io.scer.pdf.renderer.NativePDFRendererPlugin$openPageHandler$1.run(NativePDFRendererPlugin.kt:129)
E/AndroidRuntime( 3424): at java.lang.Thread.run(Thread.java:764)
I/Process ( 3424): Sending signal. PID: 3424 SIG: 9
The text was updated successfully, but these errors were encountered: