Memory leak from blank sketch

I have a memory leak problem on a sketch running on a rPi, which will eventually make it crash since the program is running 24/7. Managed to recreate it on my Mac (MacBook Air M1, 2020 Monterey 12.3.1). Processing ver 4.0b8
Found out it happens even with the empty sketch below:

void setup(){
  size(100,100);
}

void draw(){
  background(0);  
}


Running this, will cause Memory usage to slowly rise, at least 100Mb per hour.
If I reduce frameRate, the memory leaks slower, so it seems to have something to do with the draw() call.

1 Like

Hi @ottestad.
Interesting find. If you haven’t already please submit this issue on the GitHub page, Issues · processing/processing4 · GitHub.
It will get the proper attention there. Make sure to include how you are testing the memory leak so it can be better evaluated.
Memory leaks in Java in my experience are rare, so there may be something else going on. Thanks for the issue.

1 Like

Just following up on this… see Apple Silicon memory leak? · Issue #663 · processing/processing4 · GitHub

1 Like