Crash in Impactor 2.6.1

Abierto
#243 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
macos, rust
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
3.4k
Forks
224
Merge medio
34 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de claration/impactor

Todos los issues de claration/impactor

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.