[10.4.6] Extremely high application memory usage

I created this simple program that is supposed to test two different ways of reading color from a costume, but for some reason, whenever I run the program my firefox memory usage goes up very quickly (around 2gb/sec) from 800mb to around 31gb which is the limit that my computer can handle (this is a repeatable bug):

Below is a screenshot of this happening and all of the code for my project:

Can you share your project and give us a link to it please?

Could you please share your project?
just gonna say, there was absolutely no reason to flag this

cymplecy already said that.

Obsolete

The "forever" loop now makes a hundred iterations per second instead of 60 as old versions.

That's only a factor of ≈2. Is it really enough to explain this problem? How did the program work before?

Yes... this sequence works at <30FPS


Does "RGBA@mouse" counts as a screen update?


Not really... sprite has a Turtle costume but it still 100.000 iterations per second.

what? all i was saying is that cymplecy already said the same thing.

why does this keep getting flagged?

Okay, that, yes. I was just reacting to your "a hundred iterations per second instead of 60."

seriously, why don't you share your project?

Thanks, @dardoro, for the hint, as to what might be causing this. I'm a little bit puzzled by the architecture of this project, which is why I would love to examine it. But - alas! That seems to be asking too much.

Maybe a custom "animate" loop would help in cases where "forever" becomes too fast because it's not animating anything but still accessing sensors all the time...

Sorry about not posting the project link earlier, I don't always have time to check back on the forum which is why it took me a day, but here is the project:
https://snap.berkeley.edu/embed?projectname=map%20pathfinder%202&username=schoolcs002&showTitle=true&showAuthor=true&editButton=true&pauseButton=true

Project works fine for me in both Vivaldi and Firefox on Linux Mint

Tried with FireFox on Fedora, no problem. Are there anymore tabs open in your browser while working on the project?

There was just the snap project open, and when viewing the memory usage, it only went up when the project was running.

Edit:
I was able to recreate it with just the forum, and the project open, so it isn't some other tab.

I tryed it and on my ipad and it lags a lot but it doesn’t crash for me

Can recreate: my memory usage skyrockets when I use the project (not as much as OP, but still a LOT more memory than usual)
My memory usage fluctuates and sometimes starts maxing out until I move my mouse to a new position(?).

Browser and OS info


I use safari as my main website (and sometimes Opera Gx) because they are hard to crash and they are fast (depending on what type of computer you have in it and ram and cpu) just a suggestion if you want to switch not saying you do.

i prefer not to use my mac.

on every computer i've used, I would not say that.

if you throw enough ram at a browser, you can usually handle pretty big loads. i have 34 gigs of ram + swap and my browser has never crashed, just lagged slightly if something is taking up lots of ram. but it never crashes like OPs browser, it usually just crashes the tab, or worst case scenario, the OOM killer comes and kills firefox