sway: sway will sometimes crash when continuously reloading
-
Sway Version:
sway version 1.5-5c67d997 (Aug 1 2020, branch 'master')
-
Debug Log:
-
I can’t get a debug log of the crash, and the debug logs I have are 100+MB due to the nature of how I reproduce this bug. One line in particular that is spammed millions of times is:
_XSERVTransSocketUNIXAccept: accept() failed
_XSERVTransSocketUNIXAccept: accept() failed
_XSERVTransSocketUNIXAccept: accept() failed
_XSERVTransSocketUNIXAccept: accept() failed
_XSERVTransSocketUNIXAccept: accept() failed
_XSERVTransSocketUNIXAccept: accept() failed
- Configuration File:
include /etc/sway/config
bindsym $mod+m exec kitty
-
Stack Trace:
-
Description:
- Start sway
- open a terminal and run
while true; do swaymsg reload; sleep 0.01; done - Wait until either sway crashes or kitty closes in error due to a broken wayland connection
I understand that what I’m doing isn’t really practical or advisable, but nevertheless sway should not be crashing here. Maybe the programs that close are doing the right thing here, but I don’t think sway is. I am trying to help reproduce an amdgpu bug that someone else can get by reloading sway a lot. He either gets a crash in sway or a hard lockup of his system which requires him to reboot. The common connection is reloading sway a lot. I devised this test to see if I could easily trigger either amdgpu crashing or sway crashing.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 4
- Comments: 22 (6 by maintainers)
I am also experiencing crashes, also with the error message noted in the title:
I’m still having these issues/freezes/crashes. I’m running my laptop with an external display (displayport) connected with usb-c.
My crashes usually happen when my external display goes to sleep. Something bad happens and either Sway locks up or crashes and throws me back to tty. When sway locks up I can see swayidle on my internal display and sometimes actually see the windows on my external display (with swaylock running). Haven’t found a solution yet other than hard reboot.
I’ve noticed that if I never let my displays go to sleep (using idle_inhibitor) in Waybar this don’t seems to happen other than when I sometimes resume from suspend.
Running Firefox and/or Thunderbird in Wayland native mode makes it much much worse.
I’m replacing my laptop in a couple of weeks with one running AMD. It’ll be interesting to see if these issues persist with my setup or not.
I think I’m having the same issues described by @samuliy
Occasional complete crashes of Sway (started from tty), random crashes and sometimes freezes of Sway when reloading config. Crashes seems to happen once or twice per week at the moment. I’ve had similar issues since pre Sway 1.0. Coming and going.
When this happens my debug log is filled with
_XSERVTransSocketUNIXAccept: accept() failedmessages as well.Sometimes, not very often, Sway crashes when I toggle a scratchpad app as well. Xwayland app in this case.
I’m running a laptop with Intel GPU and I’m also using kitty.
I know this isn’t much help in tracking down the actual issues.