apps-android-commons: Crash when selecting camera
This happens 100% of the time when I select the camera in my real device (Samsung Galaxy S7, API 24). Not sure when this crash was introduced, as I haven’t tested the camera function for the past 3 months.
03-22 17:07:31.466: E/ACRA(740): ACRA caught a FileUriExposedException for fr.free.nrw.commons
03-22 17:07:31.466: E/ACRA(740): at fr.free.nrw.commons.contributions.ContributionController.startCameraCapture(ContributionController.java:60)
03-22 17:07:31.466: E/ACRA(740): at fr.free.nrw.commons.contributions.ContributionsListFragment.onOptionsItemSelected(ContributionsListFragment.java:133)
03-22 17:07:31.535: E/ACRA(740): fr.free.nrw.commons fatal error : file:///storage/emulated/0/Commons/images/1490166451455.jpg exposed beyond app through ClipData.Item.getUri()
03-22 17:07:31.535: E/ACRA(740): at fr.free.nrw.commons.contributions.ContributionController.startCameraCapture(ContributionController.java:60)
03-22 17:07:31.535: E/ACRA(740): at fr.free.nrw.commons.contributions.ContributionsListFragment.onOptionsItemSelected(ContributionsListFragment.java:133)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (13 by maintainers)
Can’t figure out a proper fix in a short period of time. Reverting the target SDK to 23 fixes the problem temporarily, so I am going to do that for the current release. Will leave this issue and https://github.com/misaochan/apps-android-commons/tree/fix-camera-crash open for future fix.