Crash in Impactor 2.6.1
まだ誰も着手していません。
評価
調査の方向性
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分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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] Unable to openオープンbug
難易度 3/5 半日 初心者へのやさしさ 35/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 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 ·