Skip to content
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

🐛 Android Compile Error: Unresolved reference: jsCallInvokerHolder #3044

Closed
3 of 5 tasks
coder-xiaomo opened this issue Jul 3, 2024 · 3 comments
Closed
3 of 5 tasks
Labels
🐛 bug Something isn't working

Comments

@coder-xiaomo
Copy link

What's happening?

When build with react native 0.75.0-rc.3, the following error has occurred:

e: file:///home/runner/work/xxxxx/xxxxx/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt:33:56 Unresolved reference: jsCallInvokerHolder

It works fine with react native 0.74.3, but when i try to upgrade to react native 0.75.0-rc.3, this problem occurred.

my environment:
"react": "19.0.0-rc-fb9a90fa48-20240614",
"react-native": "0.75.0-rc.3",
"react-native-vision-camera": "4.4.0",

Reproduceable Code

this is a complie problem, just yarn add react-native-vision-camera 4.4.0 with react-native 0.75.0-rc.3, the problem will occurred

Relevant log output

> Task :jcore-react-native:extractProguardFiles
e: file:///home/runner/work/xxxxx/xxxxx/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt:33:56 Unresolved reference: jsCallInvokerHolder

> Task :react-native-vision-camera:compileReleaseKotlin FAILED

Camera Device

this is a complie problem, so there is nothing i can input...

Device

Android

VisionCamera Version

4.4.0

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@coder-xiaomo coder-xiaomo added the 🐛 bug Something isn't working label Jul 3, 2024
Copy link

Guten Tag, Hans here.

Note

New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time.
To support @mrousavy, please consider 💖 sponsoring him on GitHub 💖.
Sponsored issues will be prioritized.

@coder-xiaomo
Copy link
Author

Where the error was reported:

node_modules\react-native-vision-camera\android\src\main\java\com\mrousavy\camera\frameprocessors\VisionCameraProxy.kt:33:56

  init {
    //                                                👇👇 this is where the error is reported
    val jsCallInvokerHolder = context.catalystInstance.jsCallInvokerHolder as CallInvokerHolderImpl
    val jsRuntimeHolder =
      context.javaScriptContextHolder?.get() ?: throw Error("JSI Runtime is null! VisionCamera does not yet support bridgeless mode..")
    mScheduler = VisionCameraScheduler()
    mContext = WeakReference(context)
    mHybridData = initHybrid(jsRuntimeHolder, jsCallInvokerHolder, mScheduler)
  }

image

@mrousavy
Copy link
Owner

mrousavy commented Jul 3, 2024

See #2614 - VisionCamera does not fully support the new architecture yet due to a lot of different reasons (mainly it's heavy use of JSI in the Frame Processor runtime).

Closing this issue as #2614 will be used for tracking this.

@mrousavy mrousavy closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants