processing / processing/processing4
Heap allocation growth
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在运行 Monterey 的 Apple Silicon 上复现报告中的 Processing 4.1.2 sketch,并监控应用程序的内存随时间的变化。由于 issue 没有指出源文件或测试,请先跟踪 idle draw loop 和分配行为,然后再确定原因。当最小 sketch 在空闲时不再显示无法解释的内存增长,并且有 regression test 或可复现的验证时,即可视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100