Open corentincouq opened 7 months ago
I have the problem, it does not seems to crash but the phone is heating and the app is not responding. It seems to be reproducible when I uninstall/reinstall the app and try to take a photo.
Some someone pls post an error pls? Breakpoint on uncaught exceptions in xcode
Hi @robingenz and @carlpoole
my ionic 6 and capacitor 4 app crash when take picture from camera(iOS and Android). It happend only sometime like after 10 click photo app will crash, not all the time. Is it possible to fix that if we upgrade to Capacitor 5 version?
Bug Report
Plugin(s)
"@capacitor/camera": "5.0.7"
Capacitor Version
Platform(s)
iOS 17 Android 13 And probably other versions
Current Behavior
When I use the
getPhoto()
function, my application crashes randomly.The crash occurs randomly on the same photo, whether in the gallery or with the camera.
This causes the application to crash or nothing works any more, as if we were in an infinite loop.
It is impossible to catch an error or stop the process without killing the application.
Expected Behavior
I'd like to be able to retrieve the response from
getPhoto()
or at least prevent the process from crashing, making my application unusable.Code Reproduction
I have two functions used in this process :
If I try to modify the code to catch an error like this :
my application will always crash without being able to catch an error or stop the process
Other Technical Details
"@ionic/vue": "^6.7.5"
"vue": "3.3.8"
We also use Sentry for capacitor, which is also unable to catch any errors.
"@sentry/capacitor": "0.14.0"
Additional Context
This bug is completely random and seems to come from the native code launched by
getPhoto()
on the most recent phones. We do not generate the error on the iOS simulator.