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.

Share functionality crashes application

See original GitHub issue

Hi,

While trying to use share functionality it asks to save the image first, After successfully saved the image trying to use share functionality it crashes the application with following error stacktrace.

E/AndroidRuntime: FATAL EXCEPTION: main
   Process: com.burhanrashid52.photoediting, PID: 22960
   java.lang.IllegalArgumentException: Failed to find configured root that contains /external/images/media/317089
       at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744)
       at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:418)
       at com.burhanrashid52.photoediting.EditImageActivity.buildFileProviderUri(EditImageActivity.java:367)
       at com.burhanrashid52.photoediting.EditImageActivity.shareImage(EditImageActivity.java:361)
       at com.burhanrashid52.photoediting.EditImageActivity.onClick(EditImageActivity.java:335)
       at android.view.View.performClick(View.java:6323)
       at android.view.View$PerformClick.run(View.java:25122)
       at android.os.Handler.handleCallback(Handler.java:869)
       at android.os.Handler.dispatchMessage(Handler.java:101)
       at android.os.Looper.loop(Looper.java:206)
       at android.app.ActivityThread.main(ActivityThread.java:6784)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:852)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tanoDxyzcommented, Apr 14, 2021

Although it does not seems to be photoeditor’s issue but i will do PR in a day or two.

1reaction
burhanrashid52commented, Apr 2, 2021

@tanoDxyz Can you help on this? This might happened due to the #326 changes

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone freezes when hit share button - Apple Community
When I hit share button on any app (photo, document,notes) app freezes and doesn't work further. I can close app forcefully but that...
Read more >
Reduce share extension crashes from your app with this one ...
Reduce share extension crashes from your app with this one weird trick! My app Close-up lets people capture daily selfies and create time ......
Read more >
Share button crashes Android (all apps) - OnePlus Community
Any time I use the share function in any app, it crashes with the following message: "Unfortunately, Android system has stopped."
Read more >
android studio - App crashes when it tries to show sharing dialog
I'm trying to implement a sharing function into my app, but it crashes every time it tries to bring up the sharing dialog....
Read more >
[Social Sharing] Share crashes on android - OutSystems
Android app crashes when trying to share with the following error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or...
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