[Bug]: Desktop app becomes extremely slow (suspected memory leak) after repeated Excel edits + browser screenshots across concurrent sessions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- macos, python
调研方向
The payload names the bundled xlsx skill's scripts/recalc.py, scripts/office/unpack.py and pack.py, plus the screenshot-to-workbook embedding path, but no heap profile or failing test. Start by reproducing the loop of about ten edit and screenshot rounds in one session and capturing a heap snapshot to see what is retained. Done means the retention point is identified and a fix or follow-up issue is filed.
由索引模型根据 Issue 内容生成。
描述
Product or interface
Desktop app
Version
Desktop app 3.1.6 (build 3.1.6.195)
Platform
macOS
OS version and architecture
macOS 27.0.1, arm64 (Apple Silicon)
Issue area
Agent stuck / slow / repeated loop
Desktop log upload ID (optional)
Not available at the time of filing. Happy to upload a diagnostic bundle / logs if you tell me which ones you need.
Steps to reproduce
- Open the Desktop app and run two sessions in parallel, both working on spreadsheet files at the same time.
- In each session, repeat the following loop roughly 10 times:
- Send a normal instruction that triggers a search (web search / fetch).
- Ask the agent to fill data into an
.xlsxworkbook (Excel edit). - Take a browser screenshot and paste / embed the image into the same workbook.
- Send another instruction, then go back to step 1.
- Tools involved in the loop:
- Excel editing: the bundled
xlsxskill (pandas + openpyxl, plusscripts/recalc.pyandscripts/office/unpack.py/pack.pyfor the workbook ZIP package). - Browser screenshot, including embedding the screenshot image into the workbook.
- ZIP pack / unpack of the workbook package.
- Excel editing: the bundled
Expected and actual behavior
Expected: memory usage per session stays roughly flat over repeated iterations, and each round of the loop completes at a consistent speed.
Actual: after roughly 10 rounds in each session, the whole app becomes extremely slow. Every action (sending a command, running a tool call, editing the workbook) is visibly delayed, and the slowdown does not recover on its own. It feels like a memory leak, but I have not yet captured a heap profile, so I cannot confirm where the retention happens.
Observations so far:
- The degradation is cumulative and roughly proportional to the number of edit + screenshot rounds, not to the size of the workbook or the number of rows written.
- It affects both concurrent sessions at the same time, which makes it look app-wide / process-wide rather than limited to one session.
- No error, crash, or warning is surfaced. The app just gets slower, with no obvious signal about which tool call is responsible.
- Starting fresh sessions (or restarting the app) restores normal speed, which suggests something is retained for the lifetime of the running process / session.
Redacted error summary
No error output. This is a performance / suspected-leak report, so there is no stack trace to share. I can capture a heap snapshot or the diagnostic bundle if that is the right next step — please let me know which artifact you need.
Suspected areas (guesses, not confirmed)
I may be wrong about the component, so please treat this section as hypotheses:
- Excel path — the bundled
xlsxskill. Each edit spawns Python (pandas/openpyxl),scripts/recalc.pylaunches headless LibreOffice (soffice), and the pack/unpack step extracts the workbook package to a temp directory. Possible causes: lingeringsofficechild processes or LibreOffice profile state accumulating across recalcs, extracted temp directories / cached workbook copies never being cleaned up, or the workbook package being held in memory by the runtime. - Screenshot path — screenshots are returned as base64 image payloads inside tool results and are additionally embedded into the workbook as PNGs. Possible causes: screenshot payloads retained in the conversation / tool-result history of each session, or the asset / session-asset store accumulating every screenshot and embedded image without eviction.
- Combination — with two sessions running the same loop concurrently, whichever of the above retains data is multiplied by two.
What would help to triage
- Which diagnostic artifact you want from the Desktop app (Settings → General → Upload logs, or a heap snapshot) and where it should be sent.
- Whether the Desktop app exposes a memory-usage counter, or an action to clear session data / cached assets, that I should try between iterations to confirm the retention point.
- Whether repeated LibreOffice recalculation (
soffice) inside one long-running session is expected to stay cheap, or whether it is known to accumulate.
Before submitting
- I have searched existing issues.
- I have included my version and removed sensitive information.
- 主要语言
- TypeScript
- 星标
- 2.1k
- 派生
- 271
- 平均合并
- 12 小时 15 分钟
- 30 天内合并 PR
- 41
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/minimax-code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
MiniMax-AI/minimax-code#507 ·
维护者通常 1 天内回复
-
bug needs-triage tui
难度 2/5 1-3 小时 新手友好度 72/100
MiniMax-AI/minimax-code#481 · 1 条评论 ·
维护者通常 1 天内回复
-
bug cli documentation needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
MiniMax-AI/minimax-code#299 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 78/100
MiniMax-AI/minimax-code#555 ·
维护者通常 1 天内回复
-
desktop
难度 5/5 一周以上 新手友好度 25/100
MiniMax-AI/minimax-code#554 ·
维护者通常 1 天内回复
查看 MiniMax-AI/minimax-code 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:web p3
难度 2/5 1-3 小时 新手友好度 72/100
Lets-Parley/Parley#912 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
wealthfolio/wealthfolio#2376 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
be-BOP-io-SA/be-BOP#2817 ·
维护者通常 5 天内回复
-
documentation good first issue
难度 1/5 1-3 小时 新手友好度 84/100
sno-ai/sno-station#149 · 1 条评论 ·
维护者通常 1 天内回复