React Native Vision Camera Crash Fix
Budget: ₹600 – ₹1,500 INR
I'm encountering an issue with my React Native app using the Vision Camera.
every thing is smooth on debug mode
but when i build release apk
i crashesh when camera open
maxImages (6) has already been acquired,
what should i do
also i am attaching some code
const frameProcessor = useFrameProcessor(
(frame) => {
'worklet'
try {
runAsync(frame, () => {
'worklet'
if (!isRecording) {
const faces = detectFaces(frame)
handleDetectedFaces(faces)
}
})
} catch (error) {
Toast.show({
type: 'error',
text1: (error as Error).message,
visibilityTime: 3000,
autoHide: true,
})
}
},
[handleDetectedFaces]
)
my aim is to
Open camera for 5 minutes on screen entry.
Detect faces continuously.
On face detection, start a 5-second video recording.
Save recorded video to internal storage within app so i do not have to ask storage permisiion.
Continue face detection and video recording cycle until 5 minutes elapse.
All the functionality is working on debug mode
but on release apk app crashes and i got log
maxImages (6) has already been acquired,
its just take few hour work if you have good knowledge
every thing is smooth on debug mode
but when i build release apk
i crashesh when camera open
maxImages (6) has already been acquired,
what should i do
also i am attaching some code
const frameProcessor = useFrameProcessor(
(frame) => {
'worklet'
try {
runAsync(frame, () => {
'worklet'
if (!isRecording) {
const faces = detectFaces(frame)
handleDetectedFaces(faces)
}
})
} catch (error) {
Toast.show({
type: 'error',
text1: (error as Error).message,
visibilityTime: 3000,
autoHide: true,
})
}
},
[handleDetectedFaces]
)
my aim is to
Open camera for 5 minutes on screen entry.
Detect faces continuously.
On face detection, start a 5-second video recording.
Save recorded video to internal storage within app so i do not have to ask storage permisiion.
Continue face detection and video recording cycle until 5 minutes elapse.
All the functionality is working on debug mode
but on release apk app crashes and i got log
maxImages (6) has already been acquired,
its just take few hour work if you have good knowledge