-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Taking a photo throws [session/recoverable-error]: An unknown error occurred while creating the Camera Session, but the Camera can recover from it
#2885
Comments
I am also facing this issue with XIaoMi MIX 2S(Android 10) with props video=true, with video=false it`s ok |
[session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it
[session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it
[session/recoverable-error]: An unknown error occurred while creating the Camera Session, but the Camera can recover from it
Try to set |
Hey - just created a PR to temporarily fix this - can you test if that works for you? #2897 馃檹 |
Ok I'm gonna try, just a second |
Works for me! "react-native": "0.73.6", const myCameraScreen()=>{
// ... more code
const devices = useCameraDevices();
const device = devices.find(dvc => dvc.position === 'front');
const format = useCameraFormat(device, [{ photoResolution: 'max' }]);
//... more code
return(
<Camera
ref={cameraRef}
onInitialized={() => console.log('Camera is ready!')}
device={device}
isActive={true}
photoQualityBalance="quality"
style={styles.camera}
photo
/>
)
} |
What's happening?
Hi guys, I'm having some problems to take pictures using react-native-vision-camera, the video works just fine, but when I try to take some picture, i just give an error "Camera.onError(session/recoverable-error): An unknown error occurred while creating the Camera Session, but the Camera can recover from it.", I do not know why, I tried to add the property onInitialized, to just let the camera take photo when it is ready, but then it never send the asnwer, I'm trying to findo the solution for days, that is my code:
Reproduceable Code
Relevant log output
Camera Device
Device
Pixel 6
VisionCamera Version
4.0.3
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information
The text was updated successfully, but these errors were encountered: