google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.76k stars 5.18k forks source link

Aborted MediaPipe Task during initialization on Chrome - Windows 10 - VMWare Workstation #4855

Open delta42 opened 1 year ago

delta42 commented 1 year ago

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

No

OS Platform and Distribution

Windows 10 VM

Mobile device if the issue happens on mobile device

No response

Browser and version if the issue happens on browser

Google Chrome Version 117.0.5938.150

Programming Language and version

JavaScript

MediaPipe version

0.10.3

Bazel version

No response

Solution

FaceLandmarker

Android Studio, NDK, SDK versions (if issue is related to building in Android environment)

No response

Xcode & Tulsi version (if issue is related to building for iOS)

No response

Describe the actual behavior

The codepen sample "CodePen Home MediaPipe Face Landmarker Task for web" fails to initialize the MediaPipe Task.

Describe the expected behaviour

Successful initialization

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

To reproduce:

Run Windows 10 on VMWare, run Chrome, and go to https://codepen.io/mediapipe-preview/pen/OJBVQJm.

Click ENABLE WEBCAM and no witness that face landmarking does not occur. Check the console and see:

gl_texture_buffer.cc:205 Check failed: prod_token    vision_wasm_internal.js:9
Aborted()                                            vision_wasm_internal.js:9

Other info / Complete Logs

No response

kuaashish commented 1 year ago

@delta42,

It appears there may be an issue with the VM Camera as the virtual machine is unable to detect it. Could you kindly confirm whether you have added the camera to the virtual machine using the following path: "Virtual Machine ==> Settings ==> Add Device ==> Camera"?

If not, we recommend adding the camera and testing it. For guidance on adding a camera to a virtual machine, please refer to the instructions available here. Thank you.

delta42 commented 1 year ago

Actually, I failed to state that on the exact same VM, this works fine on Edge, it's just Chrome and Firefox that gives this odd error (which I also find a bit odd, since one would usually suspect Chrome and Edge to behave similarly, and Firefox to maybe do something else).

I have been using MediaPipe for several months now and have never seen a "Check failed: prod_token" error at initialization.

kuaashish commented 1 year ago

@delta42,

Can you confirm that you have followed the recommendation in the previous comment and added the camera to your virtual machine?

delta42 commented 1 year ago

Hi kuaashish, thanks for your response.

This happens on VMWare Workstation Pro 15. I use this method to connect the webcam: https://stackoverflow.com/a/65260188

The webcam is connected to the VM because the MediaPipe sample works perfectly with the webcam when the Edge browser is being used.