AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

内存占用过多

Open jinyu0 opened this issue 5 years ago • 1 comments

Describe the bug 更新新版本后/使用紧急委托刷钻石模式,在长时间运行下内存占用会变多,但是并不影响程序的运行

在使用Ctrl R刷新之后,内存占用会显著下降

Screenshots 刷新前: image 刷新后: image

Log Post the entire log snippet that caused you to receive the error

jinyu0 avatar Oct 31 '21 10:10 jinyu0

复现步骤

  1. 将刷新任务队列的刷新间隔从 10 秒修改至 0.01 秒。 https://github.com/LmeSzinc/AzurLaneAutoScript/blob/a60f523e9ef5221b3802bddeaaa69ca917ca114c/gui.py#L415
  2. 重启 Alas,切换至总览页.
  3. 将 Alas 最小化或收起至托盘,内存占用以 10-20 MB/s 的速度增加。
  4. 重新切换至前台后,内存占用恢复正常。

其他尝试

  1. 使用 gui.py 启动后端并使用 Chrome 浏览器访问,将 Chrome 最小化后同样复现。
  2. 死循环打印 log,内存占用波动但总体不增加。

LmeSzinc avatar Nov 05 '21 14:11 LmeSzinc