processing / processing/processing4
Heap allocation growth
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
Description
Created by: sj-unit72
Description
A simple Processing 4 app seems to add between roughly .5MB to 1MB of memory usage every 5 seconds.
Expected Behavior
If the app isn't doing anything, it shouldn't be adding memory, right?
Current Behavior
Adding .5mb to 1mb of memory usage every 5 seconds. In the time searching for similar issues and typing this message, the app went from 150MB to 295MB
Steps to Reproduce
Create a new app, draw 2 squares, and run it. Now check memory usage of the app.
App used:
void settings(){
size(1920,1080);
}
void draw(){
//Fill background
fill(0);
noStroke();
rect(0,0,1920,540);
//Key background
fill(128);
noStroke();
rect(0,540,1920,540);
}
Your Environment
- Processing version: Processing 4.1.2 for Apple Silicon
- Operating System and OS version: Monterey 12.6.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Processing 4.1.2 sketch on Apple Silicon with Monterey and monitor the application's memory over time. Since the issue names no source file or test, trace the idle draw loop and allocation behavior before identifying the cause. Done means the minimal sketch no longer shows unexplained memory growth while idle, with a regression test or reproducible verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100