You are not logged in.

#1 2023-12-23 16:57:12

jamesp5
Member
Registered: 2023-12-23
Posts: 10

[SOLVED] Logging into sway/i3 logs me back out unless new user created

On my laptop I have an issue loading sway and i3wm. When I log in via SDDM, sway immediately logs out and sends me back to log in again. Same issue with i3.

I tried erasing my configs and using the defaults and they still didn't work. I tried creating a new user account and they did work. Problem is, something on my user account must be causing the problem.

Here is my paste of `sway -d`:
https://0x0.st/Hgt0.txt

In another log, I got these errors on the tty:
```
00:00:00.062 [ERROR] [wlr] [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager
00:00:00.088 [ERROR] [wlr] [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
2023-12-22 19:17:36 - [swaybg-1.2.0/main.c:582] wl_display_roundtrip failed
```

I also tried launching i3 via startx. This is my .xinitrc:
https://0x0.st/-eNp.sh

This is what shows up in the tty when I try to launch it:
https://0x0.st/Hgvu.txt

And this is my Xorg log:
https://0x0.st/HgvS.txt

I created a fresh user without sudo permissions, and I was able to log into sway and i3 on that from SDDM, just not my main account. Can anybody please figure out what's wrong with my user?

Last edited by jamesp5 (2023-12-24 15:57:41)

Offline

#2 2023-12-23 20:24:14

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Are there any "foreign" files in $HOME?

find ~ ! -user "$USER"

EDIT: double-quote the variable!

Last edited by Head_on_a_Stick (2023-12-23 20:24:54)


Jin, Jîyan, Azadî

Offline

#3 2023-12-23 20:54:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Head_on_a_Stick wrote:

EDIT: double-quote the variable!

Nah.  Anyone who puts spaces in a *nix username gets what they deserve.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-12-23 23:53:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Also

printenv

might be interesting and you could try to just "exec xterm" in your xinitrc and , assuming that works, try to start i3 from there (you might get a hint at the problem)

"A POSIX violation" - there're btw. more restrinctions to valid user names than that, https://systemd.io/USER_NAMES/

Online

#5 2023-12-24 13:22:36

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:

Also

printenv

might be interesting and you could try to just "exec xterm" in your xinitrc and , assuming that works, try to start i3 from there (you might get a hint at the problem)

I've printed out my printenv:
https://paste.rs/3JZdO

Where should I add

exec xterm

to the xinitrc to start i3?

Last edited by jamesp5 (2023-12-24 13:27:33)

Offline

#6 2023-12-24 13:24:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

At the end of the file instead of "exec i3" and you can run printenv either in that xterm or in the linux console before running "startx"

Online

#7 2023-12-24 13:34:23

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:

At the end of the file instead of "exec i3" and you can run printenv either in that xterm or in the linux console before running "startx"

So I tried replacing "exec i3" with "exec xterm" and I still didn't get anywhere.

I did paste my printenv from the tty: (Sorry, I edited my previous post just before I saw yours)
https://0x0.st/HgI2.txt

Offline

#8 2023-12-24 13:36:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Did you search for foreign owned files/directories?
Edit: the environment is from TTY3, is SDDM still running on TTY1?

Last edited by seth (2023-12-24 13:37:21)

Online

#9 2023-12-24 13:42:52

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:

Did you search for foreign owned files/directories?
Edit: the environment is from TTY3, is SDDM still running on TTY1?

I think SDDM was running on TTY2 (due to the fact that TTY1 is blank for me). I tried using the command above (with and without quotes around $USER) to search for foreign-owned files and got nothing.

Offline

#10 2023-12-24 13:53:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Post your updated xinitrc - "type xterm" suggests that you do have xterm installed?

Online

#11 2023-12-24 14:11:25

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:

Post your updated xinitrc - "type xterm" suggests that you do have xterm installed?

It turns out I didn't have xterm installed. Terminal emulators just say that to get the right colors. So I installed xterm and tried opening it. It does open, but I can't even type in it or log out.

Here is my .xinitrc as of now:
https://0x0.st/HgIg.sh

Offline

#12 2023-12-24 14:21:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

It'll take focus when you move the pointer over it.

Online

#13 2023-12-24 14:49:37

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

So I was able to move my cursor over, and I was able to get a printenv from there. I tried running /bin/i3 and it went "Segmentation fault (core dumped)" just like sway would from a tty.

Here is my printenv from xterm:
https://0x0.st/HgIF.txt

Now what should I do?

Offline

#14 2023-12-24 14:50:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

https://wiki.archlinux.org/title/Core_d … _core_dump
Also https://wiki.archlinux.org/title/Debuginfod

And that's btw news:

just like sway would from a tty.

Last edited by seth (2023-12-24 14:51:20)

Online

#15 2023-12-24 15:10:51

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

So I was able to find the process IDs in coredumpctl for both i3 and sway (I launched that in another tty for this purpose) and I ran "coredumpctl info" on each of them.
This is i3: http://0x0.st/Hgl8.txt
And this is sway: http://0x0.st/HglK.txt

I should note that in coredumpctl, i3 was listed as "present" while sway was listed as "inaccessible", which probably means I need to use sudo if I want to get any debug logs.

seth wrote:

And that's btw news:

just like sway would from a tty.

So what does this mean? And why would they both work on the other fresh user account but not mine?

Offline

#16 2023-12-24 15:18:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

#1  0x00007fd46dc8b902 _IO_file_fopen (libc.so.6 + 0x83902)
#2  0x00007fd46dc7ffef n/a (libc.so.6 + 0x77fef)
#3  0x00007fd46e26f559 n/a (libxcb-cursor.so.0 + 0x2559)

It's your cursor theme.

So what does this mean?

That you didn't point out that sway was getting you a core dump.

Online

#17 2023-12-24 15:36:19

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:
#1  0x00007fd46dc8b902 _IO_file_fopen (libc.so.6 + 0x83902)
#2  0x00007fd46dc7ffef n/a (libc.so.6 + 0x77fef)
#3  0x00007fd46e26f559 n/a (libxcb-cursor.so.0 + 0x2559)

It's your cursor theme.

So it seems like my cursor theme must be responsible for the crashes. So how do I find out which it is and restore it?

Offline

#18 2023-12-24 15:38:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Online

#19 2023-12-24 15:47:33

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Okay, I just solved it! So it turns out that LXQt placed ".icons/default/index.theme" in my home directory, and that must've interfered with sway and i3. I removed it, and they now both work!

Here were the contents:

# Written by lxqt-config-appearance
[Icon Theme]
Name=Default
Comment=Default cursor theme
Inherits=default
Size=18

I moved .icons somewhere else, and I've been able to successfully load sway and i3. Thanks for your help. Now how do I mark this as solved?

Offline

#20 2023-12-24 15:48:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,317

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#21 2023-12-24 15:55:37

jamesp5
Member
Registered: 2023-12-23
Posts: 10

Re: [SOLVED] Logging into sway/i3 logs me back out unless new user created

seth wrote:

Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

I don't see where to edit the subject. Can you show me where it is, please?

EDIT: I realized I have to edit it on the first post. I ran out of characters so I had to shorten the subject. It is now marked as solved. Thanks!

Last edited by jamesp5 (2023-12-24 15:58:35)

Offline

Board footer

Powered by FluxBB