Open rodrigobertolotti opened 1 week ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider š sponsoring him on GitHub š. Sponsored issues will be prioritized.
So this is definitely a CameraX bug then. Can you report it in the CameraX issue tracker?
(thanks for the detailed testing & logs btw)
Did you post a CameraX issue? If yes, please link it here for visibility.
Hi, I was quite busy I'll try to do it today. I'll paste the link here as soon it's done. Thanks!
What's happening?
If i set my fps in the camera to fps={15} and tap to focus on certain android devices, i get a crash or error where the camera eventually recovers but it leads to a 3 o 4 seconds of UI freezed. If i remove the fps prop, the error does not happen.
Just to clarify, the current camera device indicates focusing is supported and although on my use case im setting fps to 15, i can reproduce it on the ShadowLens and on the example app for that same device.
This happens only on some Androd devices (Pixel 2 and Pixel 5), this does not happen on my iPhone 15 Pro or other android devices (Xiaomi 13c with Android 14 works fine for example).
This same crash happens on the ShadowLens app while recording and tapping to focus.
This is the error on the js side:
{ [session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it.] name: 'session/recoverable-error', _code: 'session/recoverable-error', _message: 'An unknown error occurred while creating the Camera Session, but the Camera can recover from it.', _cause: undefined }
Reproduceable Code
Relevant log output
Camera Device
Device
Google Pixel 2 Android 11
VisionCamera Version
4.1.0
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information