-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Uncaught TypeError: Cannot read properties of undefined (reading 'ccall') #5804
Comments
Hi @kuaashish , Thank you! |
Hi @akau16, Based on our team's input, it seems, intentionally running two WASM modules and encountering issues as a result. We do not believe this is related to main code. Rather, it appears that the Module variable is being overwritten when MediaPipe loads. Here are two potential solutions: Make the WASM module modular: Use the flags -s MODULARIZE=1 and -s EXPORT_NAME='SomeUniqueName' to prevent conflicts between multiple WASM modules. Save the WASM to a separate variable: Instead of using the global Module variable (which can be overwritten), save the WASM to a different variable. For example, before running MediaPipe, they can load the WASM with const myWasm = Module; and then use myWasm throughout the rest of the code instead of Module. Thank you!! |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
I had a web Project that use Emscripten to build c++ Code and use "Module.ccall.." to call my c++ function, now I want to add MediaPipe's Gesture recognition to my Project using JavaScript, but I have to called "GestureRecognizer.createFromOptions.." 2~3 times, the process will go ahead is the first problem, and the second is after process can go ahead, but when I call "Module.ccall..", it will show message "Uncaught TypeError: Cannot read properties of undefined (reading 'ccall')", some one can help? Thanks!, the code is bellow:
import { FilesetResolver, GestureRecognizer } from "https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]";
async function startGestureDetection() {
The text was updated successfully, but these errors were encountered: