-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🐛 Frame Processors - "runAsync" doesn't work in RN 0.76 #3317
Comments
Guten Tag, Hans here! 🍻 Thanks for your detailed report. It looks like you're experiencing an issue with Feel free to update the issue with your findings from the example app, and we'll take it from there. Also, if you find this project helpful, consider supporting it by sponsoring mrousavy!
|
Hi @mrousavy, if you have time to take a look, that would be awesome. |
@nuagoz have you fixed this issue? can you tell how? |
Same as #3255 |
@ronickg Did this work for you? I've read through many issues on this and the (somewhat) related repos (resize and reanimated plugins). I'm still getting this error with 0.76.7. |
I did get it to work with "react-native": "0.76.6", haven't tried 0.76.7, but think it should still work |
Maybe this helps:
bable.config.js
|
@ronickg Doh! I t looks like I had a bug in my simplified test code. Hasty copy/paste and tired eyes from looking at this all day. Thanks, that's useful to confirm, that's almost exactly my setup. My app is now crashing out when it tries to run the async method (inner), rather than complaining, but that's progress! :) |
@FieldMarshallVague Thats great to hear. I also tried using async but just had more issues as well. So i just opted to using runAtTargetFps() for the time being. |
@ronickg thx bro, it solved the issue for me. |
What's happening?
Hey, I just noticed that the function runAsync of Frame Processors doesn't work if the dependencies are updated to version 0.76 of React Native.
If I follow the example in the documentation, the part with the log
console.log("I'm running synchronously at 60 FPS!")
displays correctly and works, but the part inside runAsync doesn't work and throws an error.Error: Regular javascript function '' cannot be shared. Try decorating the function with the 'worklet' keyword to allow the javascript function to be used as a worklet., js engine: VisionCamera
I can't reproduce the error in the example app because it's not using version 0.76 of React Native
"react-native-vision-camera": "4.6.3"
"react-native-worklets-core": "1.5.0"
Reproduceable Code
Relevant log output
Camera Device
Device
Pixel 6 Pro API 33 (Android 13.0)
VisionCamera Version
4.6.3
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
The text was updated successfully, but these errors were encountered: