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

When I call the close method, the browser process freezes #5718

Open
ChinDer opened this issue Nov 6, 2024 · 3 comments
Open

When I call the close method, the browser process freezes #5718

ChinDer opened this issue Nov 6, 2024 · 3 comments
Assignees
Labels
platform:javascript MediaPipe Javascript issues stat:awaiting response Waiting for user response task:hand landmarker Issues related to hand landmarker: Identify and track hands and fingers type:bug Bug in the Source Code of MediaPipe Solution

Comments

@ChinDer
Copy link

ChinDer commented Nov 6, 2024

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

None

OS Platform and Distribution

web

Mobile device if the issue happens on mobile device

No response

Browser and version if the issue happens on browser

No response

Programming Language and version

0.10.0

MediaPipe version

No response

Bazel version

No response

Solution

handLandmarker

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 browser process freezes

Describe the expected behaviour

can close

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

in your example


const createHandLandmarker = async () => {
  const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/wasm"
  );
  handLandmarker = await HandLandmarker.createFromOptions(vision, {
    baseOptions: {
      modelAssetPath: `https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task`,
      delegate: "GPU"
    },
    runningMode: runningMode,
    numHands: 2
  });

  window.Test = handLandmarker
  demosSection.classList.remove("invisible");
};


setTimeout(() => {handLandmarker.close()}, 100000)

Other info / Complete Logs

the browser process freezes
@ChinDer ChinDer added the type:bug Bug in the Source Code of MediaPipe Solution label Nov 6, 2024
@ChinDer
Copy link
Author

ChinDer commented Nov 7, 2024

i create a demo https://codepen.io/Chander-chen/pen/eYqPRGa
image

@ChinDer
Copy link
Author

ChinDer commented Nov 7, 2024

image

@kuaashish kuaashish assigned kuaashish and unassigned ayushgdev Nov 7, 2024
@kuaashish kuaashish added platform:javascript MediaPipe Javascript issues task:hand landmarker Issues related to hand landmarker: Identify and track hands and fingers labels Nov 7, 2024
@kuaashish
Copy link
Collaborator

Hi @ChinDer,

It appears you are using an older version, 0.10.0. Could you try the latest version 0.10.18 and let us know if the issue persists? Also, please let us know which browser you are using.

Thank you!!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Nov 7, 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 stat:awaiting response Waiting for user response task:hand landmarker Issues related to hand landmarker: Identify and track hands and fingers type:bug Bug in the Source Code of MediaPipe Solution
Projects
None yet
Development

No branches or pull requests

3 participants