Skip to content
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

crash app #16

Closed
AnhTu6610 opened this issue Nov 26, 2019 · 7 comments
Closed

crash app #16

AnhTu6610 opened this issue Nov 26, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@AnhTu6610
Copy link

E/AndroidRuntime(22186): FATAL EXCEPTION: Thread-123
E/AndroidRuntime(22186): Process: com.abcd.bookse, PID: 22186
E/AndroidRuntime(22186): java.lang.IllegalStateException: Current page not closed
E/AndroidRuntime(22186): at android.graphics.pdf.PdfRenderer.throwIfPageOpened(PdfRenderer.java:273)
E/AndroidRuntime(22186): at android.graphics.pdf.PdfRenderer.openPage(PdfRenderer.java:226)
E/AndroidRuntime(22186): at io.scer.pdf.renderer.document.Document.openPage(Document.kt:30)
E/AndroidRuntime(22186): at io.scer.pdf.renderer.NativePDFRendererPlugin$openPageHandler$1.run(NativePDFRendererPlugin.kt:129)
E/AndroidRuntime(22186): at java.lang.Thread.run(Thread.java:764)
E/AndroidRuntime(22186): FATAL EXCEPTION: Thread-125
E/AndroidRuntime(22186): Process: com.anhtudev.bookse, PID: 22186
E/AndroidRuntime(22186): java.lang.IllegalStateException: Current page not closed
E/AndroidRuntime(22186): at android.graphics.pdf.PdfRenderer.throwIfPageOpened(PdfRenderer.java:273)
E/AndroidRuntime(22186): at android.graphics.pdf.PdfRenderer.openPage(PdfRenderer.java:226)
E/AndroidRuntime(22186): at io.scer.pdf.renderer.document.Document.openPage(Document.kt:30)
E/AndroidRuntime(22186): at io.scer.pdf.renderer.NativePDFRendererPlugin$openPageHandler$1.run(NativePDFRendererPlugin.kt:129)
E/AndroidRuntime(22186): at java.lang.Thread.run(Thread.java:764)
I/Process (22186): Sending signal. PID: 22186 SIG: 9
Lost connection to device.

@AnhTu6610 AnhTu6610 added the bug Something isn't working label Nov 26, 2019
@SergeShkurko
Copy link
Member

@AnhTu6610 can you attach the code that caused the error?

@SergeShkurko
Copy link
Member

@AnhTu6610 any news?

@deepss1
Copy link

deepss1 commented Dec 19, 2019

Facing the same issue in Android (yet to check in iOS)

Scenario explanation :

App closes on trying to open the PDF.
I have two functionality in the app which uses this plugin.

  1. View PDF
  2. Share a PDF page as image.

2nd works just fine. But when trying to view PDF it force closes the app.

@SergeShkurko
Copy link
Member

Do you close the page before opening a new one?

@SergeShkurko
Copy link
Member

try it: #29 (comment)

@SergeShkurko
Copy link
Member

@AnhTu6610 , @deepss1

native_pdf_view: ^2.2.0
native_pdf_renderer: ^1.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants