-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 libc++abi: terminating with uncaught exception of type facebook::jsi::JSError: Exception in HostFunction: Javascript worklet error #1307
Comments
Finally figured out the issue. I was using Vision Camera Plugin Builder CLI as suggested in the docs to build the custom frame processor which created the frame processor in the separate directory called This should not happen.
All thanks |
Hey! That's a bug in the CLI then, would be awesome if you could send a PR to them and fix that :) |
@QSuraj |
@QSuraj This is fixed with mateusz1913/vision-camera-plugin-builder#24 and available with vision-camera-plugin-builder v0.2.0 🚀 - if you want to check, make sure that npx didn't cache older version of CLI on your machine |
Receiving following crash when I run npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! <directory>/.npm/_logs/2022-10-28T03_11_05_574Z-debug.log
Install for [ 'vision-camera-plugin-builder@latest' ] failed with code 1 Here is log. 0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '<directory>/.nvm/versions/node/v14.17.5/bin/node',
1 verbose cli '<directory>/.nvm/versions/node/v14.17.5/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'vision-camera-plugin-builder@latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli '<directory>/.npm/_npx/73253',
1 verbose cli '--loglevel',
1 verbose cli 'error',
1 verbose cli '--json'
1 verbose cli ]
2 info using npm@5.1.0
3 info using node@v14.17.5
4 verbose npm-session e0aa96245e8dd287
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/vision-camera-plugin-builder 29ms (from cache)
8 silly pacote tag manifest for vision-camera-plugin-builder@latest fetched in 46ms
9 verbose stack TypeError: cb.apply is not a function
9 verbose stack at <directory>.nvm/versions/node/v14.17.5/lib/node_modules/npx/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
9 verbose stack at FSReqCallback.oncomplete (fs.js:193:5)
10 verbose cwd <path-to-project>
11 verbose Darwin 21.6.0
12 verbose argv "<directory>/.nvm/versions/node/v14.17.5/bin/node" "<directory>/.nvm/versions/node/v14.17.5/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js" "install" "vision-camera-plugin-builder@latest" "--global" "--prefix" "<directory>/.npm/_npx/73253" "--loglevel" "error" "--json"
13 verbose node v14.17.5
14 verbose npm v5.1.0
15 error cb.apply is not a function
16 verbose exit [ 1, true ] |
For me, it doesn't give any error but it didn't detect the QR code |
@mateusz1913 @QSuraj I have the same issue. I'm using:
Node version: |
My issue got fixed with this: #1308 |
So Xcode 13 is |
Yes, it does help with the build being successful but
|
reverted, the initial app crash avoided, but later the app caught an error when the camera calling the frame processor (with https://github.com/rodgomesc/vision-camera-code-scanner , @0.2.0):
note: camera still running but the error appears whenever it calls the frame processor |
Same issue |
Finally figured out the issue. After reverting back from #1308 we need to add
@mrousavy we need to make the above change for all the frame processors based on swift to work. |
I can confirm that this fixes the problem! |
This fix solves the crash during app launch, thanks! |
I hope this fix will soon be released :) |
same |
My app runs fine on simulator, RN 0.68.2 but crashes in react core pod RCTCxxBridge file - at _reactInstance.reset(new Instance); when I try running on device. iOS - 17, iphone 15, xcode 15 |
@vincicat |
when is this being released in the react-native-vision camera? this is not added to the 2.16.2 please add a commit with this patch. |
What were you trying to do?
Using custom frame processor.
Created this new issue since the old one was closed.
Package details -
Reproduceable Code
Ideally the frame processor should have started sending me an empty array to the
console.log
What happened instead?
The following error was thrown in Xcode console and the app crashed.
Relevant log output
Device
iPhone 14 ( iOS 16.1 )
VisionCamera Version
2.14.1
Additional information
The patch to fix Xcode 14 was already applied, this occurs even after adding that patch.
Reference to the patch - #1244 (comment)
The text was updated successfully, but these errors were encountered: