-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
red screen of death after unlocking #7046
Comments
This happens when swaylock crashes. That log is incomplete and only contains ERROR messages. |
yeah it's my classic log.. I've enabled debug and will run in that mode for a while until it happens again |
that did not take long https://gist.github.com/primalmotion/94cd2492896568363ea7358c5bac6643/ |
Can you try to update sway+wlroots to latest commit? The end of the log says the unlock is successful, but is followed by a EBUSY:
|
Sure let me upgrade. I'll report if it happens again |
ok after multiple fights with other issues, I was able to test latest master. The issue still happens |
experiencing this as well, reliably reproducible by locking the screen, hoping to another tty, killing swaylock, and coming back to Sway's tty. |
Yeah I noticed this way to reproduce too. I found out because swaylock was not responding. switch to another tty, and killed it. red screen. From what I understand, the red screen is basically here to prevent unlocking the laptop even if the swaylock process dies. So it seems the actual problem is not the red screen, but the fact that swaylock crashes one way or another without "releasing" the session lock |
I haven't seen this issue in a while now (seems it's been 2 weeks) |
obviously I had to write a comment just before it actually happened again. |
It also happens to me from times to times after suspending, usually putting it back to sleep and waking it up fixes it. |
interesting. I'll give it a try next time. I noticed that this seems to happen when I wake up my system, when it has an attached external monitor, and enter my password + enter while that monitor is still waking up. |
Please obtain a stack trace for swaylock. |
I have this screen of death when system is under high load, one display is off and one display is on. However I'm not able to reproduce it withing some reasonable period of time. Running weeks with debug looks seems not to be good idea.. |
I can reproduce this each time my laptop comes out of sleep and I have my external monitors connected. Both of the monitors will just have a red screen and I have to switch to a tty and do a Today I also got it on my laptop without any external monitors. Swayidle triggered swaylock, I saw the lockscreen for a second and then it turned to the red screen on my laptop screen. But this doesn't seem to be reproducible easily. Here is a stack trace https://gist.github.com/ljupchokotev/22cf9ef0163d7d865aa1f7c1c734cb5f. |
same problem here. I have a yubikey and do some udev rules to automaticly lock the screen https://kliu.io/post/yubico-magic-unlock/ |
After yesterday updates of my Archlinux my swaylock go to red screens too...
I'm using this command: btw I'm using this version: https://github.com/jirutka/swaylock-effects |
This comment was marked as duplicate.
This comment was marked as duplicate.
Same issue as @scippio -- just reporting here. Downgrading |
with the latest Version you can send a USR1 Signal to the process to stop it. So yubikey unlock works now with some modifications (pkill -USR1 swayidle) |
Agree with OP. Same error on my side, even firefox crashes on external monitor with scaling different than 1.0. |
I can replicate this exact issue on the current master (2c0f68b) consistently under high load. I tried logging version 1.8 with Sorry for the kinda vague report, I don't have much time to test, so I'll have to rollback to 1.7 for now I guess. Edit: Can confirm that rollbacking to 1.7 fixed the issue. I must also note that 1.8 broke alpha too in the lockscreen, while 1.7 works with transparent lockscreens without any trouble. |
I ran into the same issue after a system upgrade on gentoo. Rolling |
The problem seems to be with swaylock-effects and swaylock-fancy only. |
I've had this issue with swaylock only (I don't have any effects or fancy module installed). |
@prometheanfire according to my previous testing, I can agree. Even vanilla swaylock presents this issue. |
Updating to swaylock 1.7.2 fixed the issue. |
Are you sure about that? I had a red screen yesterday and according to my package manager I installed 1.7.2 on 29 January. Edit: For the full context, I have a systemd user service that runs:
I have a Kanshi profile for my external monitor which runs (when plugged in):
|
I still have the issue here with sway 1.8 and swaylock 1.6.11 when I wake my laptop from hibernation. I have no idea about the cause, but I have found a workaround to recover the session. Open another TTY and run
Now go back to the red screen sway which is now locked. Unlock it with your password, and your session is recovered! |
For some bizarre reason I didn't read this, sorry. Yeah, I'm pretty sure. I've been using the latest swaylock for a month without any issue. @blastrock have you tried to update your version of swaylock? |
I didn't notice I didn't have the latest version! I forgot that I switched to swaylock-effects and it looks like that one is abandoned. Anyway, I've been using the latest version of swaylock for the past week or so and I didn't have this bug anymore. A bit sad to lose the nice features of swaylock-effects, but at least my issue is fixed, thanks! |
@blastrock i'm not sure which version of And i'm not sure either it will solved the red screen of death or not but is solve one of the issue i facing |
I don't use archlinux but I can't find any r416 version on AUR. The swaylock-effects-git package (r402) just seems to be based of https://github.com/jirutka/swaylock-effects whose latest version is 1.6.11, and I had the red screen with that version. I can't find that r416. |
@blastrock as you can see from the pic below, the aur at arch linux is r402, but once you re-install it, you will get r416 just try to re-install it again |
And i can start swaylock without getting RSOD any more Below is the youtube that i can trigger the swaylock without RSOD |
The commit hash seems to be same as the one I was using: jirutka/swaylock-effects@a7691b8, and I had RSODs with that :( |
Hi there, in case there are other people like me using swaylock-effects, I have made my own fork. The only thing I did on it is merge the upstream swaylock: https://github.com/blastrock/swaylock-effects-second . I didn't get the red screen of death in the last week so it might be fixed. EDIT: nevermind, got it again... In any case, it looks like this bug is unrelated to sway, so this issue can be closed I guess...? |
@blastrock yeah, IIRC all reported cases where caused by incompatible/old swaylock versions. |
Using Debian trixie/testing, this happens on my setup when killing swaylock, start a wayvnc session, and trying to connect to it with a vnc client over a ssh session. swayidle = 1.8.0-1 |
So there seems to be multiple unrelated issues mixed up here:
|
I can find r420 version on AUR. The swaylock-effects-git package (r420) works for me and I don't have the red screen with this version any more. |
This didn't quite seem to work for me, however, I might aswell share what I ran across. In my case, I was running under Hyprland and the environment variable appears to be called I found this out by finding a process that started under the compositor. And reading it's environment variables under That seemed to work towards running the application, but the application would just error out, saying the screen was already locked In my case, |
Exactly the same thing I run almost all the time into. But suspending is handled by swayidle for me, but I believe it amounts to running the same command |
for me, this issue happens if oomkiller kills things, swaylock in particular |
After i commented till today, i will never getting RSOD any more no matter manually trigger by keyboard or let the timer set accordingly or even Try follow my comment and do exactly, see will it happen again. Hope you all no more RSOD on year 2024. |
related: swaywm/swaylock#282 |
Not sure everybody noticed but there has been a couple releases of swaylock-effects since last time: https://github.com/jirutka/swaylock-effects/tags . I upgraded a couple weeks ago and didn't get a RSOD yet, might be fixed. |
@blastrock 1.7.0.0 of swaylock-effects seems still affected. |
A small weird hack. It's quirky but seems to work for me.
Make sure the lock command is inside |
Please fill out the following:
Sway Version:
sway version 1.8-dev-251a648e (Jun 1 2022, branch 'master')
Debug Log:
https://gist.github.com/primalmotion/c4d39ea0879cb7559dafc12fa0f58718
Description:
Randomly (but pretty often) when I wake the machine up, I can enter my password from swaylock to unlock the screen, then all monitors are red (literaly completely red) and sway, while still running, does not respond to anything. I must switch to another tty, login, kill sway and restart it. This started to happen a few weeks ago
The text was updated successfully, but these errors were encountered: