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.

[🐛] java.lang.RuntimeException com.imagepicker.ImagePickerModule.onActivityResult

See original GitHub issue

My app crashes while using this library in my android app. I am not able to find any solution regarding this crash. any solution?

java.lang.RuntimeException: 
  at android.app.ActivityThread.deliverResults (ActivityThread.java:4662)
  at android.app.ActivityThread.handleSendResult (ActivityThread.java:4704)
  at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:49)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:113)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:71)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2036)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:224)
  at android.app.ActivityThread.main (ActivityThread.java:7081)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:511)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:928)
Caused by: java.lang.RuntimeException: 
  at com.facebook.react.bridge.CallbackImpl.invoke (Unknown Source:23)
  at com.imagepicker.ImagePickerModule.onActivityResult (Unknown Source:35)
  at com.facebook.react.bridge.ReactContext.onActivityResult (Unknown Source:18)
  at com.facebook.react.ReactInstanceManager.onActivityResult (ReactInstanceManager.java:6)
  at com.facebook.react.ReactDelegate.onActivityResult (ReactDelegate.java:22)
  at com.facebook.react.ReactActivityDelegate.onActivityResult (ReactActivityDelegate.java:3)
  at com.facebook.react.ReactActivity.onActivityResult (ReactActivity.java:2)
  at android.app.Activity.dispatchActivityResult (Activity.java:7588)
  at android.app.ActivityThread.deliverResults (ActivityThread.java:4655)
  at android.app.ActivityThread.handleSendResult (ActivityThread.java:4704)
  at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:49)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:113)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:71)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2036)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:224)
  at android.app.ActivityThread.main (ActivityThread.java:7081)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:511)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:928)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
SerhiiRubelLightITcommented, Dec 8, 2021

Facing the same issue in production, but I can’t reproduce this crash on my testing android devices.

@shivam0831 do you have some special case when you have this error?

0reactions
shivam0831commented, Jun 14, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when picking image with expo-image-picker
I am using expo-image-picker to take a picture and send it to firebase. ... 3450 02-09 11:13:42.098 3450 3450 E AndroidRuntime: java.lang.
Read more >
Can local EAS builds be submitted to the app store? - #2 by lastof ...
I successfully ran an EAS build locally with the help of a community member. My goal was to see if a production only...
Read more >
attempt to invoke virtual method 'int android.graphics.bitmap ...
I'm getting this error when I launch the app in Google Map Activity ... onActivityResult(ImagePickerModule.java:388) at com.facebook.react.bridge.
Read more >
uu467 图片选择修改点- 狂奔的小狮子 - 博客园
ImagePickerModule package com.imagepicker; import android.app. ... import java.util.Collections; ... catch (RuntimeException exception) {.
Read more >
Android.graphics.bitmap.getwidth()' on a null object ... - f-static.net
java.lang.nullpointerexception:= attempt= to= invoke= virtual= method= 'int= ... getResizedImage(ImagePickerModule.java:504) at com.imagepicker.
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