Device's camera app crashes on taking photo for doodle

in utopian-io •  6 years ago  (edited)

Project Information

Expected behaviour

The app is supposed to not affect the function of other apps.

Actual behaviour

But the app crashes the device's camera app on trying to capture a photo for doodle.

How to reproduce

  1. Install the app and launch it.
  2. Click on camera icon from top bar of the app and click a photo.
    The camera app of the device crashes.
  • App version: 3.2.0
  • Device: Samsung Galaxy Tab 3
  • Operating system: Android 4.4.2
    (Ps: The camera app doesn't carsh on Android 6.0.1 while taking photo for doodle but crashes in kitkat os.)

Recording of the bug

Proof of Work Done

https://github.com/neupanedipen

Issue on github

https://github.com/sfllhkhan95/paint/issues/9

logcat
Process: com.sec.android.app.camera, PID: 29042
java.lang.SecurityException: Permission Denial: opening provider sfllhkhan95.doodle.projects.utils.GenericFileProvider from ProcessRecord{4255cfb8 29042:com.sec.android.app.camera/u0a121} (pid=29042, uid=10121) that is not exported from uid 10150
    at android.os.Parcel.readException(Parcel.java:1472)
    at android.os.Parcel.readException(Parcel.java:1426)
    at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3290)
    at android.app.ActivityThread.acquireProvider(ActivityThread.java:4845)
    at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2708)
    at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1430)
    at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:909)
    at android.content.ContentResolver.openOutputStream(ContentResolver.java:672)
    at android.content.ContentResolver.openOutputStream(ContentResolver.java:648)
    at com.sec.android.app.camera.Camera$LastContentUriCallback.onCompleted(Camera.java:5982)
    at com.sec.android.app.camera.Camera.onLaunchGallery(Camera.java:5873)
    at com.sec.android.app.camera.Camera.onImageStoringCompleted(Camera.java:5226)
    at com.sec.android.app.camera.CameraEngine.imageStoringCompleted(CameraEngine.java:2337)
    at com.sec.android.app.camera.CeStateInitialized.handleMessage(CeStateInitialized.java:47)
    at com.sec.android.app.camera.CameraEngine$StateMessageHandler.handleMessage(CameraEngine.java:252)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5598)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method) ```
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Excellent post!

Hello @neupanedipen,thank you for your contribution through the Utopian,Bug Reports for bugs on Android apps should be tested on Android 6.0 and above, and include the logcat reports in the post. You can learn more about how to generate logcat here.

Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord
utopian-moderator

@sinem006 I have also updated the logcat. Please have a look at it again. It may be of some value to project.

You just received a Tier 0 upvote! Looking for bigger rewards? Click here and learn how to get them or visit us on Discord
If you would like to opt out of receiving comments reply with STOP

Thank you for your bug report. I am the developer of this application. This is helpful. I have upvoted your post.