Closed saransathish closed 2 months ago
Guten Tag, Hans here! 🍻 Thanks for providing ze detailed information, but I see a few issues with your report. While you’ve shared some logs, it would help to include specific runtime logs from adb logcat
so mrousavy can better understand what’s happening when ze app crashes. If you need assistance on how to gather those logs, just let me know! Also, make sure ze code you’re using matches the example usage in ze documentation. In ze meantime, if you find ze project helpful, consider supporting it by sponsoring mrousavy!
Note: If you think I made a mistake, please ping
@mrousavy
to take a look.
Same issue:
Error message:
Your app just crashed. See the error below.
com.facebook.jni.CppException: Regular javascript function 'rethrowErrorOnJS' cannot be shared. Try decorating the function with the 'worklet' keyword to allow the javascript function to be used as a worklet.
Updating react-native-worklets-core
to 1.3.3 fixes the problem for me.
You probably don't have "processNestedWorklets" enabled in the reanimated babel plugin. You can also try to use it without reanimaed and only use worklets core.
Updating
react-native-worklets-core
to 1.3.3 fixes the problem for me.
you saved me! had the exact error. thank you :)
What's happening?
`import React from 'react'; import { View } from 'react-native'; import { Camera, useCameraFormat, useFrameProcessor } from 'react-native-vision-camera';
interface FrameProcessingProps { device: any; model: any; }
const frameProcessor = useFrameProcessor((frame) => { 'worklet' console.log(
Frame: ${frame.width}x${frame.height} (${frame.pixelFormat})
) }, [])return ( <View style={{ flex: 1 }}> <Camera style={{ flex: 1 }} device={device} isActive={true} frameProcessor={frameProcessor} /> ); };
export default FrameProcessing; ` In the above i uses the frameprocessor for some ml task but it wont work then i just used the simple console statement it also close the apps automatically pls any one help me to solve this issue.
Reproduceable Code
Relevant log output
Camera Device
Device
vivo t2 pro - android 14
VisionCamera Version
4.5.2
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information