YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

IDE leaking memory on macOS when left open #1951

Open gm-bug-reporter[bot] opened 1 year ago

gm-bug-reporter[bot] commented 1 year ago

Description

The IDE on macOS has a bad memory leak. When left open overnight I return to the IDE consuming 8GB of RAM. My project usually uses about 2GB of RAM to run when freshly opened.

The solution to this problem is simple, close the IDE before locking the screen, but this shouldn't be necessary. Ideally the IDE (like every other application on my Mac) should be able to handle running for weeks without issue.

Steps To Reproduce

Open a fairly large project on macOS. Open various resources as you would typically.

Leave IDE open, go to Apple menu -> Lock Screen and leave machine in this state overnight. IDE will gradually bloat in memory usage.

IDE runs sluggish in this state and never cleans up after itself. Memory usage grows indefinitely.

No room editor, no sequence editor. No sprite editor windows. No audio assets open. Only code editor windows and 1 Workspace with a few objects/sprite assets open. Apple Silicon M1 Max MacBook Pro.

f03fba7b-5917-4745-929c-09fc0ea98316

jack27121 commented 1 year ago

same on windows. This was me just idling in the editor, without the game even running. I was away for an hour Taskmgr_AJ1WfjfXdS

shamusl commented 10 months ago

To confirm: this issue is still present in 2023.11. Bad memory leak and massive slowdown over time, even when machine resources are not stressed (90% CPU idle, 40GB of RAM free)

digwallace commented 8 months ago

Confirming this also isn't just a MacOS leak, I'm on Windows 10, and IDE v2023.11.11.129 and since one of the later updates last year I've had slow performance and stuttering over time consistently. It generally only takes a few hours, but is guaranteed after 8 hours or more of simply being open.

Major annoyance as it happens consistently every day multiple times.

mrvictordiaz commented 4 months ago

Happens to me too on Sonoma 14.3

It got so bad that it reaches 80GB of usage, just from GameMaker alone. This can cost pretty penny due to the SSD swap. Just from a few hours of usage.

We're on Macbook Pro 14 M3 Pro, 18GB RAM, 512GB SSD

Hopefully this can get fixed asap.