Skip to content

[bug]: WebUI client-side (JS) does not garbage collect memory until user refreshes the page #6677

Closed
@infinity0

Description

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

Linux

GPU vendor

AMD (ROCm)

GPU model

No response

GPU VRAM

No response

Version number

v4.2.6post1 + PR #6539

Browser

Firefox 128.0+linuxmint1+virginia

Python dependencies

Using Python 3.12 as per PR #6539 since Python 3.11 has been dropped from Debian Testing.

What happened

  1. Run InvokeAI on some server machine and make the WebUI port open to another client machine. All subsequent steps are done on the client machine, it has nothing to do with the server.
  2. On the client machine, open a system monitor to check your RAM. Note the starting RAM usage.
  3. Go to the InvokeAI Use the Unified Canvas on a large image
  4. Keep outpainting and doing bigger edits
  5. Watch your RAM go up. Wait a few minutes. Watch your RAM not go back down.
  6. Refresh the InvokeAI page. Watch your RAM go back down.
  7. Optionally, skip step 6 and watch your browser use more and more RAM until your OS starts swapping and it becomes unresponsive.

What you expected to happen

I should not have to manually refresh the page every few minutes to avoid the InvokeAI web UI hanging my computer.

How to reproduce the problem

See steps above.

Additional context

No response

Discord username

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions