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

Possible memory leak in BodyPix and WEBGL #1475

Open
fbarretto opened this issue Nov 26, 2023 · 0 comments
Open

Possible memory leak in BodyPix and WEBGL #1475

fbarretto opened this issue Nov 26, 2023 · 0 comments

Comments

@fbarretto
Copy link

fbarretto commented Nov 26, 2023

Dear ml5 community,

I'm submitting a new issue. Please see the details below.

β†’ Step 1: Describe the issue πŸ“

I've been using the bodypix model and realized that it seems to be a memory leak going. Running the bodypix webcam example with WEBGL render causes the Chrome (GPU) to continuously increase the memory usage until WEBGL loses context and crashes.

WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

Could you please point me out in the right direction on how to fix this?

β†’ Step 2: Screenshots or Relevant Documentation πŸ–Ό

I've tried to run the vanilla example (as is) and then updated ml5 and p5js versions to the latest, with same results.

Memory usage when idle:
Screenshot 2023-11-26 at 1 39 39 AM

Memory usage when starting the sketch (T0):
Screenshot 2023-11-26 at 1 39 50 AM

Memory usage after 60 seconds (T60):
Screenshot 2023-11-26 at 1 44 22 AM

Memory usage after 5 minutes (T300):
Screenshot 2023-11-26 at 1 54 16 AM

β†’ Step 3: Share an example of the issue πŸ¦„

Here's an example code of this issue.

β†’ Describe your setup πŸ¦„

  • Web browser & version: Chrome Version 119.0.6045.159 (Official Build) (arm64)
  • Operating System: MacOS Ventura 13.0.1 (22A400)
  • ml5 version you're using: Latest
  • P.S: Same behavior on Safari@MacOS and Chrome@Windows11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant