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 when selecting camera #336

Open
Semedaki opened this issue Nov 2, 2023 · 5 comments
Open

Crash when selecting camera #336

Semedaki opened this issue Nov 2, 2023 · 5 comments

Comments

@Semedaki
Copy link

Semedaki commented Nov 2, 2023

Hello,
I have this problem, happening only in OnePlus8Pro devices, with android 11. The version of ImagePicker I use is 2.1.
When the user selects the camera option, the following crash happens:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.project.name/com.github.dhaval2404.imagepicker.ImagePickerActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/IMG_20231101_041618651.jpg
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3433)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3607)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:423)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

@arvindkkore
Copy link

I have the same issue

@lolucosmin
Copy link

Same issue here:
Unable to start activity ComponentInfo{appyness.mhsc/com.github.dhaval2404.imagepicker.ImagePickerActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/IMG_20240116_083529892.jpg

@mushtaq99
Copy link

same issue

@ZoobiApps
Copy link

ZoobiApps commented Mar 26, 2024

same issue came in my OnePlus8Pro device android 11.

@thanhnhan111093
Copy link

same issue, firebase report on device OnePlus8Pro
Caused by java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/IMG_20241118_193906787.jpg
at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:867)
at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:467)
at com.github.dhaval2404.imagepicker.util.IntentUtils.getCameraIntent(IntentUtils.kt:79)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.startCameraIntent(CameraProvider.kt:126)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.checkPermission(CameraProvider.kt:107)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.startIntent(CameraProvider.kt:96)
at com.github.dhaval2404.imagepicker.ImagePickerActivity.loadBundle(ImagePickerActivity.kt:82)
at com.github.dhaval2404.imagepicker.ImagePickerActivity.onCreate(ImagePickerActivity.kt:44)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1548)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3406)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3607)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:423)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants