Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sway kills all workspaces when outputs are reconnected / reconfigured #6640

Closed
luispabon opened this issue Oct 27, 2021 · 5 comments
Closed
Labels
bug Not working as intended

Comments

@luispabon
Copy link

luispabon commented Oct 27, 2021

Please fill out the following:

~ sway --version
sway version 1.6-aaf68cf4 (Oct 27 2021, branch 'master')

Session: start sway, do some stuff, go idle, swayidle kicks in and starts swaylock, then it eventually turns off the displays. Weirdness happens upon re-activating those displays. Swaylock is killed as well so I go straight into sway bypassing it.

I'll try to reproduce with the default config

  • Stack Trace:
    Sway does not crash to greeter or tty

  • Description:
    My setup is a laptop with a 4k display, scale 2, and 2 further displays (scale 1 each) via a thunderbolt dock.

Since I upgraded to Ubuntu 21.10, sway keeps seemingly killing all workspaces and the apps inside, including Waybar, on situations where displays were re-connected. For instance, after resuming from sleep, I'll be greeted by sway with all apps killed (eg I can only see the background image, all apps I had open aren't running. I can start new apps from sway though). Even swaylock dies, leaving the laptop unlocked.

Sometimes this also happens when displays are eventually turned off via swayidle due to inactivity.

Sometimes this happens when re-configuring my outputs. For instance, after resuming from sleep kanshi will die every now and then leaving my displays on but with the wrong layout, and when I restart kanshi manually, the issue will present itself as well.

I have reverted back to the version of sway and wlroots I had prior to upgrading to Ubuntu 21.10 and the issue seemingly still happens. The debug log above is from that session.

@luispabon luispabon added the bug Not working as intended label Oct 27, 2021
@rpigott
Copy link
Member

rpigott commented Oct 28, 2021

Sounds like a protocol error. Could you possibly grab a WAYLAND_DEBUG=1 log of some client that gets killed in this fashion? Something like swaymsg -- exec 'WAYLAND_DEBUG=1 myclient 2> myclient.log'

@luispabon
Copy link
Author

luispabon commented Nov 12, 2021

I haven't been able to reproduce this error since I built sway and wlroots with ASAN for a different issue. I won't pretend I know what that is. My current session is 4 days old and I've truncated 4GB worth of app log files as per request above. I'm not giving up.

@WhyNotHugo
Copy link
Contributor

Possibly #6629? I had this issue a few times and that PR fixed it for me.

Can you try reproducing with and without it?

@luispabon
Copy link
Author

Thank you @WhyNotHugo

The version I'm at indeed has 38020d1 (I'm on fc25e49).

I'll revert back to the commit just before and see if the issue comes back.

@luispabon
Copy link
Author

Well, I haven't been able to reproduce the issue anymore, before or after 38020d1.

I'm inclined to think the issue was elsewhere in the system and some update got rid of it.

Closing this. Thank you all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants