Crash in Impactor 2.6.1

Ouverte
#243 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
62/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Calme
Stack technique
macos, rust
Domaine
desktop

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

help wanted
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.
Langage dominant
Rust
Étoiles
3.4k
Forks
224
Merge moyen
34 min
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de claration/impactor

Toutes les issues de claration/impactor

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.