Closed bglgwyng closed 8 months ago
Same crash with vision camera v2 + reanimated v3.
Vision camera 2.15 + reanimated v2 works okay.
I got the same issue when using the vision camera v2 + reanimated v3. The reason I can't use vision camera v3 is that it support Android from 26 and above, which is only covert 93.7%
I love the vision camera v3 a lot but can't use it at the moment. If anyone know how to make the vision camera v2 work with reanimated v3, please let me know. Many thanks!
The latest version of vision camera v2 can work with reanimated v3: https://github.com/mrousavy/react-native-vision-camera/pull/1759
But takePhoto
+ frame processor seems to cause a crash.
Hello guys, I am able to build the camera v2 + reanimated v3. Below is the details of my package.json
"react": "18.2.0",
"react-native": "0.72.7",
"react-native-reanimated": "3.5.4",
"react-native-vision-camera": "2.16.5",
"vision-camera-code-scanner": "0.2.0"
Below is my script to build aab and apk:
"android-aab": "cd android && ./gradlew clean && rm -rf .gradle && ./gradlew bundleRelease && cd ../",
"android-apk": "cd android && ./gradlew clean && rm -rf .gradle && ./gradlew assembleRelease && cd ../",
Hope these can help people who have the same issue as me
Hey does this still crash? I made some changes here and there. Also error reporting should be better now.
Maybe I just fixed this in https://github.com/mrousavy/react-native-vision-camera/pull/2408 - could you test and verify?
I verified this fix worked.
What's happening?
Calling
camera.takePhoto
after switching the device causes crashes when the frame processor is performing reads on the buffer. This behavior was noticed within my application, which involves performing ML tasks on frames. If you run the null frame processor which does nothing within it,camera.takePhoto
works well. Also, running the example frame processor plugin doesn't cause crashes.takePhoto
Reproduceable Code
Relevant log output
Camera Device
Device
Galaxy S21
VisionCamera Version
3.6.4
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information