MensaApp
MensaApp copied to clipboard
App closes when trying to take an in-app picture
Describe the bug If you try to take a picture of a meal in the app with the camera icon, the app instantly closes.
To Reproduce Steps to reproduce the behavior:
- Go to any meal.
- Click on the "Add picture" icon
- Click on the "Camera" icon
- The app instantly closes
Expected behavior Instead of the app closing itself, it should be possible to take a picture of the meal and if suitable upload it directly afterwards.
Smartphone:
- Device: Samsung Galaxy S20 5G
- OS: Android 13, One UI 5.1
- App-Version: 1.2.1
@AlexKutschera ... 😅
For me the app also crashes, but it does not when I debug using android studio connected to my device. The google play console reports the following crashes:
io.flutter.plugins.imagepicker.ImagePickerDelegate$2.resolveFileProviderUriForFile
Exception java.lang.IncompatibleClassChangeError:
at androidx.core.content.FileProvider.parsePathStrategy (FileProvider.java:47)
at androidx.core.content.FileProvider.getPathStrategy (FileProvider.java:1)
at androidx.core.content.FileProvider.getUriForFile (FileProvider.java:4)
at io.flutter.plugins.imagepicker.ImagePickerDelegate$2.resolveFileProviderUriForFile (ImagePickerDelegate.java:4)
at io.flutter.plugins.imagepicker.ImagePickerDelegate.launchTakeImageWithCameraIntent (ImagePickerDelegate.java:90)
at io.flutter.plugins.imagepicker.ImagePickerDelegate.takeImageWithCamera (ImagePickerDelegate.java:615)
at io.flutter.plugins.imagepicker.ImagePickerPlugin.pickImages (ImagePickerPlugin.java:615)
at io.flutter.plugins.imagepicker.Messages$ImagePickerApi.lambda$setUp$0 (Messages.java:615)
at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage (BasicMessageChannel.java:24)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:136)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java:136)
at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.flush (DartMessenger.java:1)
at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.lambda$dispatch$0 (DartMessenger.java:16)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
at java.lang.Thread.run (Thread.java:1012)