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
System freeze #3733
Comments
Can you upload debug logs? |
Weird. Debug log shows only
EDIT: Sorry for my stupidity, I was running sway with |
Did you add your user to the |
Yep, my user in the |
In sway 1.0-rc3, sway will abort and show that error before the display is even created so it shouldn't be freezing the system even when Can you try |
Running I have tried |
Did you try running with ConsoleKit and DBus ? |
Still hangs my system. |
Perhaps you should take a step back, remove suid, don't use sudo and start sway with EDIT: My bad, looks like you do need to suid if you don't have logind and I no longer see that there's a requirement for dbus, sorry it's been a while since I tried sway. Disregard. |
No problems. |
sway.log sway and wlroots freshly built from git. wayland-protocols-git from AUR. Attached is the result of launching sway with set up XDG_RUNTIME_DIR as per comment above I suspect the main culprit is the last line about an undefined symbol, which is also shown when sway is launched within X session. |
Update to latest wlroots, this was recently added and needs an up to date version. It is also advisable to remove already installed versions of wlroots (i.e. from repos or even the aur packages) and build it as subproject within sway. A stable sway experience on the |
Just did. Same result. Just in case, here are my steps:
|
Do you have an old version of |
In fact I did and entirely forgot about it. After removing community package I recompiled everything and it's working now. Thank you for your support and my apologies for misunderstanding. |
After further testing, |
Can you retrieve logs via SSH? |
Yes, I was able to retrieve logs via SSH, thanks for your help. |
Since the log looks truncated, I'm guessing Sway is crashing and the direct session is not cleaning up properly. Can you please send a full backtrace? Since you aren't using systemd, you'll have to enable core dumps, reproduce, and without rebooting (so probably via another SSH session) run To enable core dumps, you can try running |
Unless I am doing something wrong, I'll write down steps that I have completed.
And there is nothing under Can anyone reproduce to confirm that issue is either from my side or not? |
Can you have a look at |
Finally I've got something. |
It doesn't look like that dmesg snippet has anything to do with sway. Since it looks like I was wrong and sway is not crashing, the next step is to figure out where it is freezing. My guess is somewhere in (Almost all of the calls in spawn_swaybg are non-blocking, but I added the log lines anyway) |
I've got this while compiling sway:
|
Try building with |
Thanks. |
Well that confirms my suspicion of it blocking on the waitpid, but I also don't see how it's possible. The child process forks again and immediately exits. |
After testing it seems that commenting out Is behaviour of swaybg changed since |
Yes, we spawn swaybg differently now. See #3708. The new way is better and is the same way we have launched swaybar for a while. Just need to figure out the hiccup that is this issue. As you found, you can use sway without a background until this is resolved |
Can you please try #3807? |
Yep, this fixes the issue. Thanks! |
No problem, I needed my background too :) |
Have same issue. After starting sway my PC hangs, and only reboot helps. What I did:
Then logout and select sway session. When it's start I see i3bar with actual information and then PC hangs. i3-wm works fine. Unity on wayland/x works fine. I tried to take some logs with this
but --
Kernel: 5.3.0-24-generic |
@ddevault should I open new issue? Looks like my message was not seen for community. |
Yeah, you need to open a new issue. This issue is only related to musl-specific problem with swaybg. You're have |
While
sway-1.0-rc2
works perfectly,sway-1.0-rc3
freeze the entire system on sway launch. My system has no logind support, so after compiling sway I have suid the sway binary.Configuration
sway-1.0-rc3
wlroots (Feb 20 2019, branch 'mastrer')
Void GNU/Linux (Musl)
The text was updated successfully, but these errors were encountered: