react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 react-native-vision-camera Crash on MI and Realme Phone

Open msen04377 opened this issue 2 years ago • 3 comments

What were you trying to do?

                  <>
                    <Camera
                      ref={camera}
                      device={device}
                      style={StyleSheet.absoluteFill}
                      isActive={true}
                      video={true}
                      audio={true} />
                  </>

Reproduceable Code

<>
                        <Camera
                          ref={camera}
                          device={device}
                          style={StyleSheet.absoluteFill}
                          isActive={true}
                          video={true}
                          audio={true} />
                      </>

if i am doing isActive = true then it is crashed when i am recording the video in MI and REALME phone althought other phone like samsung , oppo it is working fine.

What happened instead?

No error getting , even i am applying adb logcat but no any i am getting

Relevant log output

No response

Device

RMX3085 Realme 8

VisionCamera Version

2.14.1

Additional information

msen04377 avatar Sep 17 '22 11:09 msen04377

Facing same issue any solution?

hasnainbaloch avatar Sep 17 '22 13:09 hasnainbaloch

java.lang.IllegalStateException: Surface was requested when the Recorder had encountered error androidx.camera.video.internal.ResourceCreationException: androidx.camera.video.internal.encoder.InvalidConfigException . . .

hasnainbaloch avatar Sep 17 '22 18:09 hasnainbaloch

Camera was working fine before the new Android update and this package is still working fine in IOS

hasnainbaloch avatar Sep 17 '22 18:09 hasnainbaloch

Camera was working fine before the new Android update and this package is still working fine in IOS

Mind to elaborate what "new Android update" are we talking about here? Update from Android 11 to 12 or just some random OTA patch issued by phone manufacturers?

zzz08900 avatar Oct 01 '22 19:10 zzz08900

Possible duplicate of #907 (solution inside)

xeroxoid avatar Jan 24 '23 11:01 xeroxoid

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.

mrousavy avatar Sep 30 '23 09:09 mrousavy