-
Notifications
You must be signed in to change notification settings - Fork 54
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
Segfault when using greetd + Sway #149
Comments
Which version if xdpw is this? |
Looks like the first time it connects to Wayland successfully but output manager protocol versions aren't available.
All subsequent launches fail to connect to wayland. Could you also share your relevant greetd configs? Specifically what compositor you have it launching and its configs? I'm guessing you are using greetd with cage? |
No, I'm using And this is how I launch the "real" Sway session from greetd: |
Can you post the contents of any files in |
There's only this file:
I'm including In case I didn't mention it before, both Sway sessions work just fine, it's just that greetd takes around 30 seconds to start due to xdpw crashing. |
I was hoping this wasn't there. My guess was that xdpw couldn't connect to wayland because it couldn't see the
Yep, makes sense. Does xdpw crash in your full sway instance as well? |
How are you getting a debug log from xdpw inside the sway session that gtkgreet lives in, btw? I don't see any provision for that in your config. Edit: nevermind, journalctl. |
Try this for me and let me know what happens... https://gitlab.com/itaranto/dotfiles/-/blob/master/sys/etc/greetd/config.toml#L5 Just as a test, change that line to:
I think your logs might indicate an issue with your full sway session and not your greetd session, but I could be wildly off base. If I'm right, you have two problems, both easily solved. |
Nope, it works fine. I can do video-conferencing in Sway without any issue.
Yes, journalctl. I created a replacement systemd file under |
It didn't work as it is because greetd complained about So, what I did was to create a script #!/bin/sh
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
sway --config /etc/greetd/sway-config And to reference it in [terminal]
vt = 1
[default_session]
command = "greetd-sway"
user = "greeter" But xdpw kept crashing. |
Ugh, that shoots that theory. Any change in the logs? |
It's strange, xdpw is still crashing but now there's no logs. Another strange thing is that I found a crash for gtkgreet that I can reproduce 100% of the time. Every time I enter an incorrect password it segfaults, with a correct one it doesn't. I'll report that to |
If you build xdg-desktop-portal-wlr-git from AUR, it'll include debugging symbols and you can send us a backtrace if you're getting a segfault style crash in xdpw. |
I took a look at the code and it seems you are calling const char *home = getenv("HOME");
size_t size_fallback = 1 + strlen(home) + strlen("/.config"); The environment variable [I] ~ $ cat /etc/passwd|grep greeter
greeter:x:976:976:greetd greeter user:/:/bin/bash Now that I think of, isn't Let me know if you need anything else. |
OK, as an example, I checked the environment variables I used |
You nailed it! This is a regression. @columbarius, can we make these |
|
Looks like this got closed automatically by merging #151. |
That's strange, I'll probably do more research, for example
Yes, I just built |
I'm using
greetd
as login manager with the GTK greeter and Sway.This setup is more or less explained here and here.
After a specific upgrade, the greeter now takes a few seconds to start due to xdpw crashing and being restarted several times.
Here's the log with
-l DEBUG
: xdpw.logThis is what
coredumpctl info
says:The text was updated successfully, but these errors were encountered: