Crash in Impactor 2.6.1
还没有人认领这个 Issue。
评估
调研方向
The blocking calls are in package.rs at the AddTweak, AddBundle, SetCustomIcon and SetCustomEntitlements handlers (around lines 156, 171, 198 and 218), each calling rfd::FileDialog pick_files() inside Iced's update(). subscriptions.rs:461 already uses rfd::AsyncFileDialog with .await and shows the pattern to follow. Done means those four handlers no longer block, and picking a file while dragging onto the window does not crash on macOS.
由索引模型根据 Issue 内容生成。
描述
Content
Found a crash in Impactor 2.6.1 (macOS 15.7.7, arm64)
repro: click Add Tweak → while the file picker is open, drag a file onto it → abort
it's the blocking rfd. package.rs calls rfd::FileDialog::new()...pick_files()
straight inside Iced's update(), 4 spots:
156 AddTweak
171 AddBundle
198 SetCustomIcon
218 SetCustomEntitlements
that blocks the event loop inside -[NSSavePanel runModal]. AppKit spins a nested
runloop for the modal, a drag comes in via NSCoreDragTrackingProc and dispatches
back into the app while update() is still on the stack → re-entry → panic → abort.
crash log matches frame for frame:
39 -[NSSavePanel runModal]
21 NSCoreDragTrackingProc
19 -[NSRunLoop runMode:beforeDate:]
15 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK
2 abort
fix is already in the repo — subscriptions.rs:461 uses rfd::AsyncFileDialog with
.await. those 4 just need Task::perform instead of blocking + Task::none().
side note, probably same root cause: the Tweaks section has no drop target, only
- Add Tweak. if drops worked there nobody'd be dragging onto a modal picker.
- 主要语言
- Rust
- 星标
- 3.4k
- 派生
- 224
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
claration/impactor 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 72/100
-
bug
难度 4/5 3-5 天 新手友好度 50/100
-
bug
难度 4/5 3-5 天 新手友好度 42/100
-
bug
难度 3/5 半天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
查看 claration/impactor 的全部 Issue
相似的 Issue
-
claim
难度 2/5 1-3 小时 新手友好度 88/100
Nixitov/Riptide-Native#946 ·
维护者通常 1 天内回复
-
area: ai-assistants documentation help wanted
难度 2/5 1-3 小时 新手友好度 78/100
BetaBots-LLC/latticegate#17 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
storytold/craft-libs#5594 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
LingyunStudio/RustMusic#16 ·