question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on Android 10

See original GitHub issue

My clients who are using android 10, are facing the following issue:

java.lang.IllegalArgumentException: 
  at On.onWrite (PG:27)
  at android.print.PdfConverter$1.onPageFinished (PdfConverter.java:71)
  at e6.b (PG:2)
  at on.handleMessage (PG:63)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:7770)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1047)

After seeing this trace, the first thing came to my mind that maybe the user did not allow storage permission. I double checked with them and found out that the storage permission was enabled. However, when the app is trying to generate PDF, it crashes.

Any ideas? Thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
zsy6504commented, Aug 12, 2020

After searching through github repo fork network graph, I found this fork works fine: https://github.com/jdaoliveira/react-native-html-to-pdf For anybody who’s suffering the android 10 upgrade, you can uninstall version 0.8.0 and try npm install https://github.com/jdaoliveira/react-native-html-to-pdf.git

3reactions
ghostcommented, Apr 18, 2020

i changed sdk to sdk 29, and added this line: PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE); to index.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my apps keep crashing on Android, How to fix it
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
Read more >
How To Fix Note10 Phone Crashing After Android 10 Update
Check for poor signal issue · Fix Phone crashing on Android 10 by rebooting the device · Troubleshoot the Phone app · Check...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
How to stop apps from crashing. Hanging or crashing apps is one of the most annoying Android phone problems. Here are ten different...
Read more >
How To FIX Apps Crashing On Android! (2022) - YouTube
How To FIX Apps Crashing On Android ! (2022). 4K views 6 months ago ... Samsung Galaxy S10 In 2021: https://www.youtube.com/watch?v=mrB8H.
Read more >
Application crashes on Android 10? - Stack Overflow
But suddenly within the past two weeks, users have reported application crashing while using it. All the crashes are for Android 10 users....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found