Closed jamesbayy closed 5 months ago
Hello @jamesbayy Did you find what was causing this error and how to fix it ? I have the same issue
Hello @jamesbayy Did you find what was causing this error and how to fix it ? I have the same issue
haven't found a solution yet
hmm, maybe related: https://stackoverflow.com/a/16543157/5281431
Just to provide more insights on those logs:
18:38:35.691 RecordingSession I Starting RecordingSession..
18:38:35.731 MediaRecorder I start
18:38:35.731 HwDeviceMangerFactory I Create actual factory for mdm part.
18:38:35.732 TransactionSponsor I init device policy service.
18:38:35.740 HwMediaRecorderImpl I HwMediaRecorderImpl
18:38:35.740 HwMediaRecorderImpl I sendStateChangedIntent, state=3
18:38:35.742 CameraSession I Updating Video Outputs...
18:38:35.742 VideoPipeline I Removing FrameProcessor Output...
18:38:35.742 VideoPipeline I Setting 3072 x 3072 RecordingSession Output...
18:38:35.775 VideoPipeline I Rendering to RecordingSession..
18:38:35.775 OpenGLRenderer I Creating Window Surface...
18:38:35.805 VideoPipeline I Rendering to RecordingSession..
18:38:35.845 VideoPipeline I Rendering to RecordingSession..
18:38:35.855 RecordingSession E MediaRecorder Error: 268435556 (-1007)
18:38:35.855 RecordingSession I Stopping RecordingSession..
18:38:35.855 MediaRecorder I stop
18:38:35.876 MediaRecorder E stop failed: -1007
18:38:35.877 AndroidRuntime D Shutting down VM
18:38:35.881 AndroidRuntime E FATAL EXCEPTION: main
You start the reocrding, then immediately we get this error in the logs:
18:38:35.855 RecordingSession E MediaRecorder Error: 268435556 (-1007)
And it fails. The stop failed
error is a bit misleading, the actual error is the one above.
@mrousavy I have the same issue. When i hit the startRecording function my app suddenly crashes. I have check and this issue came on android 11. When i use android 13 it works fine.
Is there any solution that i can run this package on android 10,11,12,13 and 14.
Hey! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 💪🚀 Can you test that and see if that fixes the issue for you? 😅
yarn add react-native-vision-camera@beta
You might need to increase the compileSdk
to the newest Android SDK (34) if you are behind.
If latest V4 fixes this bug, please consider 💖 sponsoring me on GitHub 💖 so I can keep maintaining this library, fixing bugs and building new features! :)
Hi any update on this I am facing this issue with version 3.9.1 and even 4.3.1, also it happens frequently on any device. compileSDK 34 react-native 0.71.14
What's happening?
When starting recording, App Clash on the Huawei device。But it runs normally on other Android devices
Reproduceable Code
Relevant log output
Camera Device
Device
HUAWEI nova 9
VisionCamera Version
3.8.2
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information