swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.57k stars 1.11k forks source link

sway crashing during sleep #6487

Open mefromthepast opened 3 years ago

mefromthepast commented 3 years ago

Sometimes, after reopening the closed lid of my laptop, instead of a lock screen (swaylock), I am returned to the TTY and see the following message, typically multiple times:

00:00:00.000 [common/ipc-client.c:67] Unable to connect to /run/user/1000/sway-ipc.1000.1489.sock

It may be preceded by the following messages, although I'm not sure that those errors are always the same and at least the first will most likely be related to other applications.

The X11 connection broke (error 1). Did the X11 server die?
Error: Wayland connection experienced a fatal error: -1
Error: Temperature adjustment failed.

I'm using s2idle instead of deep sleep and feel that this may be related.

emersion commented 3 years ago

Please provide a stack trace. You can do so by compiling from source, reproducing the crash and then running coredumpctl gdb and then bt full.

Here are some instructions to compile from source: https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject