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

Very bad memory leak in larger projects. #9585

Open
MeowieGamer opened this issue Apr 17, 2024 · 0 comments
Open

Very bad memory leak in larger projects. #9585

MeowieGamer opened this issue Apr 17, 2024 · 0 comments

Comments

@MeowieGamer
Copy link

MeowieGamer commented Apr 17, 2024

Expected Behavior

The project (in my case, Meowzie's Adventure 3) should run under 4gb of ram without any issue, as the game files itself do not exceed 400mb.

Actual Behavior

The game uses an infinite amount of memory over a period of time. It gradually increases the longer you leave the game running. This applies to any large scratch project, and this issue is not new.

Steps to Reproduce

Load up any large scratch project, usually one that's complex, has a large amount of sprites, and those sprites changing costumes frequently. (Doesn't have to be all the sprites, just a few of them can trigger this issue.) It's also more easy to occur when there's lots of code in every sprite.

From there, leave the project running for about 10 minutes, and you will see your memory usage spike.

System Details

If the problem occurs in the browser, please provide operating system and browser e.g. Mac OS 10.11.6 Safari 10.0
This will occur on any browser, on any operating system, but for my case, I have

Arch Linux, Linux Kernel 6.8.5-arch1-1, Firefox 124.0.2 or Chromium 124.0.6367.60

I was using the turbowarp editor, but I can confirm this issue happens on vanilla scratch as well.
Screenshots
The first screenshot is after 5 minutes of running the project
The second screenshot is after 10 minutes of running the project.
Screenshot_20240417_175248
Screenshot_20240417_180047

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