pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
468 stars 83 forks source link

cosmic-comp process fails, but only when the session is started through lightdm #707

Open Priw8 opened 1 month ago

Priw8 commented 1 month ago

I'll begin by saying that I wasn't sure whether this issue should be opened in cosmic-comp or cosmic-session, but that's because I don't actually know what's at fault here.

Anyhow, I am facing a rather bizarre issue where starting the Cosmic DE from a lightdm greeter results in a black screen, but running start-cosmic from the terminal manually works perfectly fine. I've investigated the issue a bit, and it appears that cosmic-comp fails when it is launched by cosmic-session (see logs below - got them from journalctl --user /usr/bin/cosmic-session):

Aug 09 19:04:20 archlinux cosmic-session[1547]: Starting cosmic-session
Aug 09 19:04:20 archlinux cosmic-session[1547]: starting process ' COSMIC_SESSION_SOCK=12 cosmic-comp '
Aug 09 19:04:20 archlinux cosmic-session[1547]: process ' COSMIC_SESSION_SOCK=12 cosmic-comp ' failed with code 1
Aug 09 19:04:20 archlinux cosmic-session[1547]: cosmic-comp exited with error code 1
Aug 09 19:04:20 archlinux cosmic-session[1547]: draining stdin receiver before restarting process
Aug 09 19:04:20 archlinux cosmic-session[1547]: sleeping for 8ms before restarting process cosmic-comp (restart 0)
Aug 09 19:04:20 archlinux cosmic-session[1547]: restarted process ' COSMIC_SESSION_SOCK=12 cosmic-comp ', now at 1 restarts
Aug 09 19:04:20 archlinux cosmic-session[1547]: process 'ProcessKey(1v1)' cancelled

Unfortunately, journalctl --user /usr/bin/cosmic-comp does not contain any useful information as far as I can tell (it only complains about failing to read some config values, but the same messages also appear when it starts correctly). It also has no mention of actually exiting, so I'm guessing that whatever error message it produces gets consumed by the cosmic-session process. Some additional notes:

Any hints on how to debug this issue would be appreciated, since I have no idea what lightdm does differently that makes the session fail to start. Again, manually running start-cosmic from the terminal works, which is why I find this really confusing. Thank you in advance!

foggerty commented 2 weeks ago

I'm getting the exact same message when trying to use cosmic-session, although I am getting the error message on-screen.

If I try launching via lightdm I just get a black screen.

Launching with start-cosmic works fine (other than the no icons showing, but that's another issue!).

Also on Arch/64, although I installed via the cosmic group.