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
Swaylock crashes if you spam enter #10
Comments
Just tried the pam tally module with a time delay on failed logins, it crashes anyway |
Please provide a stack trace. You can do so by running |
The strange thing is only the window crashes but the terminal keeps going
|
Okay, it seems the stack trace you provided is for a Vala app. Are you sure swaylock crashes? You can also run |
You probably want |
Okay, I can reproduce. What happens is that PAM blocks, but sway still sends input events. If you send enough events, it fills the socket buffer and disconnects the client:
We should make sure to never block in swaylock. |
The fix is probably to authenticate with PAM in a child process, just like we do for non-PAM systems. |
I've "fixed" the problem by implementing a barebones input debouncing. |
It's still possible to trigger this issue, just need to type faster. ;)
Nope, it'll process all events in a non-blocking manner, so it'll fix completely this issue. |
Swaylock crashes if you spam enter really fast and gives you full access to the desktop.
lock command
Even if i use the
-e
option i'm able to crash it.The only unusual pam module that i use is pam_mount (but it has always worked fine)
System info and related logs following.
The text was updated successfully, but these errors were encountered: