arrow-down arrow at-sign bug check checkbox-checked checkbox-unchecked svg-checkmark chevron-right chevrons-right circle-down circle-left circle-right circle-up cloud2 svg-cross2 download download external-link filter github hash home leaf leaf left link-2 log-in log-out mail menu message-square minus plus radio-checked radio-checked2 radio-unchecked search settings spinner8 target twitter up upload-2 user users warning x zap
  • Home
  • Report a bug
  • Contribute
  • All issues
  • Login

URL: https://surma.dev/lab/pid-controller/lab

Browser / Version: Firefox 127.0
Operating System: macOS 14.5
Tested Another Browser: Yes Chrome

Problem type: Something else
Description: RAM usage increases alarmingly quickly
Steps to Reproduce:
I opened the URL and started playing with the PID controller simulator. After about 10 minutes, an OS pop-up told me that all the system RAM had been used up.

Monitoring the RAM usage while the page is running, it seems to be going by about 160 MB/s on my machine. The source code is here:
https://github.com/surma/surma.dev/tree/master/static/lab/pid-controller
It runs createImageBitmap() on the bottom canvas every frame. With an 800x600px canvas updated at 120fps, that works out to about 170MB/s. Coincidence? I think not! I suspect it's something to do with the garbage collector not getting a chance to run, since pausing execution brings the RAM use back down.

The issue doesn't happen in Chrome or Safari.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

Please login to edit issues.

View issue on Github

Shortcut: Press l on your keyboard to open the label editor. Shortcut: Press g on your keyboard to be taken to the GitHub view of this page.
Closed: Moved
#138335

surma.dev - RAM usage increases alarmingly quickly

Opened: 2024-06-20
Reporter: tpoomlmly
Comments: 1
  • Home
  • List of issues
  • About
  • Contribute
  • Contact
  • Privacy Policy
  • Terms of Service
  • Code of Conduct