client-toolkit icon indicating copy to clipboard operation
client-toolkit copied to clipboard

panicked when one of the monitors disconnected

Open alembiq opened this issue 1 year ago • 4 comments

I can see the same panic smithay-client-toolkit/src/output.rs:425 with [wpaperd](https://github.com/danyspin97/wpaperd/issues/79) and wezterm when turning of one of the displays under wayland/hyprland

I honestly have on idea if this library is responsible, but when I see the same errors on two apps I assume so.

alembiq avatar Sep 10 '24 09:09 alembiq

https://github.com/Smithay/client-toolkit/blob/37c55f4369012825a01ed2217ddd1852f39e542e/src/output.rs#L425 This line doesn't panic, so more details, like the version of smithay-client-toolkit used in wpaperd and wezterm are probably needed.

wash2 avatar Sep 10 '24 14:09 wash2

wpaperd is using 0.18.1
wezterm is using 0.19.1

alembiq avatar Sep 16 '24 08:09 alembiq

Updating to 0.19.2 should resolve the issue. It removes the panic when an event is received for a dead output.

wash2 avatar Sep 16 '24 14:09 wash2

thanks for the info

alembiq avatar Sep 17 '24 09:09 alembiq