Without a display the client panics (exit 101) instead of exiting with status 1 #98

Open
opened 2026-11-11 13:55:33 +00:00 by charles · 0 comments
Owner

Seen on 23c10ceec5 (task/26-acceptance base: foundation + task/23 + task/25), Linux.

Steps: run the client where no compositor is reachable, for example env -u DISPLAY -u WAYLAND_DISPLAY target/debug/fluxer --devserver (or with WAYLAND_DISPLAY naming a socket that does not exist).

Expected (apps/fluxer/README.md: "It needs a display: without one fluxer_ui::run fails and the process exits with status 1"): an error line and exit status 1.

Actual: iced_winit panics while creating the event loop, so fluxer_ui::run never returns an error:

ERROR fluxer::logging: panic: Create event loop: Os(OsError { ... error: WaylandError(Connection(NoCompositor)) })
thread 'main' panicked at .../iced_winit-0.14.1/src/lib.rs:81:10

Exit status 101, a panic-<timestamp>.txt is written to the log directory, and the runtime is not shut down in order (the gateway session is not closed cleanly). Either probe for a display before calling iced or catch the unwind around fluxer_ui::run; and correct the README.

Seen on 23c10ceec5787bd08f11ff47b635b49fa269e473 (task/26-acceptance base: foundation + task/23 + task/25), Linux. Steps: run the client where no compositor is reachable, for example `env -u DISPLAY -u WAYLAND_DISPLAY target/debug/fluxer --devserver` (or with `WAYLAND_DISPLAY` naming a socket that does not exist). Expected (apps/fluxer/README.md: "It needs a display: without one `fluxer_ui::run` fails and the process exits with status 1"): an error line and exit status 1. Actual: `iced_winit` panics while creating the event loop, so `fluxer_ui::run` never returns an error: ``` ERROR fluxer::logging: panic: Create event loop: Os(OsError { ... error: WaylandError(Connection(NoCompositor)) }) thread 'main' panicked at .../iced_winit-0.14.1/src/lib.rs:81:10 ``` Exit status 101, a `panic-<timestamp>.txt` is written to the log directory, and the runtime is not shut down in order (the gateway session is not closed cleanly). Either probe for a display before calling `iced` or catch the unwind around `fluxer_ui::run`; and correct the README.
charles added this to the Foundation milestone 2026-11-11 13:55:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#98
No description provided.