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

Recently getting this error: Cannot read properties of undefined (reading 'getShaderInfoLog') #5777

Open
Denlar2 opened this issue Dec 13, 2024 · 2 comments
Assignees
Labels
platform:javascript MediaPipe Javascript issues task:pose landmarker Issues related to Pose Landmarker: Find people and body positions type:support General questions

Comments

@Denlar2
Copy link

Denlar2 commented Dec 13, 2024

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

Yes

OS Platform and Distribution

Chrome browser

MediaPipe Tasks SDK version

0.10.19

Task name (e.g. Image classification, Gesture recognition etc.)

Pose Detection

Programming Language and version (e.g. C++, Python, Java)

Javascript

Describe the actual behavior

The model cant load, and sends and error message "Recently getting this error: Cannot read properties of undefined (reading 'getShaderInfoLog')"

Describe the expected behaviour

The model should be able to load and the posedetection would detect.

Standalone code/steps you may have used to try to get what you need

let modelPath = 'https://storage.googleapis.com/mediapipe-models/pose_landmarker/pose_landmarker_full/float16/1/pose_landmarker_full.task' const vision = await FilesetResolver.forVisionTasks( "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm" ); this.poseLandmarker = await PoseLandmarker.createFromOptions(vision, { baseOptions: { modelAssetPath: modelPath, delegate: "GPU", }, runningMode: "VIDEO", numPoses: 1, minPoseDetectionConfidence: 0.5, minPosePresenceConfidence: 0.5, minTrackingConfidence: 0.5, smooth_landmarks: true, });

Other info / Complete Logs

The issue did not occur a week ago and still does not seem to affect all devices. However, many devices are now experiencing this problem. The application is using the webframework.

Here is the console info:

message: "Cannot read properties of undefined (reading 'getShaderInfoLog')",
"TypeError: Cannot read properties of undefined (reading 'getShaderInfoLog')" _glGetShaderInfoLog (https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.js:10:146810)
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.wasm:wasm-function[3581]:0x1c49af
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.wasm:wasm-function[1211]:0x776a3
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.wasm:wasm-function[240]:0xd430
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.wasm:wasm-function[232]:0xcbe9\
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.wasm:wasm-function[14607]:0x77507f\
https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.js:10:187054\n' + Object.stringToNewUTF8 (https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm/vision_wasm_internal.js:10:147536)' 
https://play.edufit.dk/main.685fbc5940ad1c6c429d.bundle.js:2:1481457)
sc.attachProtoVectorListener 

Hope somebody is able to help.
@kuaashish kuaashish added platform:javascript MediaPipe Javascript issues task:pose landmarker Issues related to Pose Landmarker: Find people and body positions type:support General questions labels Dec 16, 2024
@kuaashish
Copy link
Collaborator

Hi @Denlar2,

Thank you for raising this issue. To assist you further, could you please provide the complete standalone code you are using, or direct us to the relevant documentation or code examples? Additionally, it would be helpful if you could share the operating system you are using. This will allow us to better understand the issue and, if necessary, reproduce it on our end.

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Dec 16, 2024
@Denlar2
Copy link
Author

Denlar2 commented Dec 16, 2024

Hi @kuaashish
Thanks for the fast response.

Here is the code i am using, there error happens, it is in the init of the pose model:

let modelPath = 'https://storage.googleapis.com/mediapipe-models/pose_landmarker/pose_landmarker_full/float16/latest/pose_landmarker_full.task'

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
this.poseLandmarker = await PoseLandmarker.createFromOptions(vision, {
    baseOptions: {
        modelAssetPath: modelPath,
        delegate: "GPU",
    },
    runningMode: "VIDEO",
    numPoses: 1,
    minPoseDetectionConfidence: 0.5,
    minPosePresenceConfidence: 0.5,
    minTrackingConfidence: 0.5,
    smooth_landmarks: true,


});

It is happening on many chromebooks, which is using the chromeOS?
Could it be an issue with a new update on the chromeOS?

Hope you will be able to help?

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:javascript MediaPipe Javascript issues task:pose landmarker Issues related to Pose Landmarker: Find people and body positions type:support General questions
Projects
None yet
Development

No branches or pull requests

2 participants