Skip to content
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

cosmic-session fails to launch and requires reboot #1338

Open
traklo opened this issue Dec 10, 2024 · 14 comments
Open

cosmic-session fails to launch and requires reboot #1338

traklo opened this issue Dec 10, 2024 · 14 comments

Comments

@traklo
Copy link

traklo commented Dec 10, 2024

After logging in as a user I do not get taken into DE but instead to a black screen with logs, featuring ERROR panic and a failure to start cosmic-session.

Full logs displayed:

INFO cosmic-session: Starting cosmic-session
INFO launch_pad: starting process ' COSMIC_SESSION_SOCK=12 cosmic-comp '
ERROR launch_pad: process ' COSMIC_SESSION_SOCK=12 cosmic-comp ' failed with code 1
ERROR cosmic_session::comp: cosmic-comp exited with error code 1
INFO launch_pad: draining stdin receiver before restarting process
INFO launch_pad: sleeping for 2ms before restarting process cosmic-comp (restart 0)
INFO launch_pad: restarted process ' COSMIC_SESSION_SOCK=12 cosmic-comp ', now at 1 restarts
INFO process 'ProcessKey(1)' cancelled
ERROR panic: thread 'main' panicked at 'failed to kill program: Custom { kind: InvalidInput, error: "invalid argument: can't kill an exited process: }':  /build/cosmic-session-0.1.0~1733496467~24.04~78316ba/vendor/launch-pad/src/lib.rs:399
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: __libc_start_main
23: <unknown>

I am on PopOS 24.04 - Alpha 4

PS. This does not happen every single time, about 50% of the time I am logging in to COSMIC after boot.

@ximian
Copy link

ximian commented Dec 10, 2024

The same thing happens to me and isn't happening every single time.

@Drakulix
Copy link
Member

Please post the output of journalctl --user _COMM=cosmic-comp after such a crash, once you are logged in again. This backtrace isn't complete and doesn't provide enough information to pin down the problem.

@Psyhackological
Copy link

I cannot get past through the login screen but I managed to gather what @Drakulix asked for
journal_user_cosmic_comp.log

@traklo
Copy link
Author

traklo commented Dec 10, 2024

Thank you, this doesn't look dissimilar from what I see

-- Boot --
failed to read local shortcuts config 'system_actions': NoConfigDirec>
Key-Binding 'Period' only matched case insensitive for "period"
Key-Binding 'Comma' only matched case insensitive for "comma"
Key-Binding 'Period' only matched case insensitive for "period"
Key-Binding 'Comma' only matched case insensitive for "comma"
tiling exceptions custom config error: GetKey("tiling_exception_custo>
Unable to become drm master, assuming unprivileged mode
Unable to become drm master, assuming unprivileged mode
Failed to destroy old mode property blob: No such file or directory (>
 ESCOD
Key-Binding 'Comma' only matched case insensitive for "comma"
Key-Binding 'Period' only matched case insensitive for "period"
Key-Binding 'Comma' only matched case insensitive for "comma"
tiling exceptions custom config error: GetKey("tiling_exception_custo>
Unable to become drm master, assuming unprivileged mode
Unable to become drm master, assuming unprivileged mode
Failed to restore previous state. Error: Permission denied (os error >
Failed to restore previous state. Error: Permission denied (os error >
Xwayland terminated: exit status: 1

@Psyhackological
Copy link

Any temporary fixes for now? Can I reset the config for workspaces or something?

ec 10 22:11:45 pop-os cosmic-comp[3547]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 10 22:11:45 pop-os cosmic-comp[3547]: tiling exceptions custom config error: GetKey("tiling_exception_custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Unable to become drm master, assuming unprivileged mode
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Unable to become drm master, assuming unprivileged mode
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 10 22:11:45 pop-os cosmic-comp[3547]: Xwayland terminated: exit status: 1
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Failed to read config 'workspaces'
Dec 10 21:12:55 pop-os cosmic-comp[5000]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 10 21:12:55 pop-os cosmic-comp[5000]: tiling exceptions custom config error: GetKey("tiling_exception_custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Unable to become drm master, assuming unprivileged mode
Dec 10 21:12:55 pop-os cosmic-comp[5000]: Unable to become drm master, assuming unprivileged mode
Dec 10 21:12:56 pop-os cosmic-comp[5000]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 10 21:12:56 pop-os cosmic-comp[5000]: Xwayland terminated: exit status: 1
Dec 10 21:12:56 pop-os cosmic-comp[5000]: Failed to restore previous state. Error: Permission denied (os error 13)

@Psyhackological
Copy link

Maybe related? pop-os/cosmic-session#92

@Psyhackological
Copy link

and this? pop-os/cosmic-session#43

@Psyhackological
Copy link

Nevermind, those are only warnings, the issue is in the:

Dec 12 00:13:23 pop-os cosmic-comp[30049]: Unable to become drm master, assuming unprivileged mode
Dec 12 00:13:23 pop-os cosmic-comp[30049]: Unable to become drm master, assuming unprivileged mode
Dec 12 00:13:24 pop-os cosmic-comp[30049]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 12 00:13:24 pop-os cosmic-comp[30049]: Failed to restore previous state. Error: Permission denied (os error 13)

On niri this is fine for some reason but I've seen issues with mpv.

@Psyhackological
Copy link

Psyhackological commented Dec 12, 2024

Does anybody know how to diagnose it further? There is something wrong with my user, for some reason creation of the new one resolves this issue when I'm trying to log in:

Dec 12 12:57:17 pop-os cosmic-comp[20298]: thread 'main' panicked at 'called Result::unwrap() on an Err value: PermissionDenied': src/main.rs:196
                                              0: <unknown>
                                              1: <unknown>
                                              2: <unknown>
                                              3: <unknown>
                                              4: <unknown>
                                              5: <unknown>
                                              6: <unknown>
                                              7: <unknown>
                                              8: <unknown>
                                              9: <unknown>
                                             10: <unknown>
                                             11: __libc_start_call_main
                                                        at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
                                             12: __libc_start_main_impl
                                                        at ./csu/../csu/libc-start.c:360:3
                                             13: <unknown>
ec 12 13:06:13 pop-os cosmic-comp[25931]: Unable to become drm master, assuming unprivileged mode
Dec 12 13:06:13 pop-os cosmic-comp[25931]: Unable to become drm master, assuming unprivileged mode
Dec 12 13:06:13 pop-os cosmic-comp[25931]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 12 13:06:13 pop-os cosmic-comp[25931]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 12 13:06:13 pop-os cosmic-comp[25931]: Xwayland terminated: exit status: 1

I found that:

  • Niri works on this user
  • Deletion of ~/.config/cosmic didn't resolve the issue
  • Even though I updated cosmic-comp once it was pushed it didn't resolve the issue
  • I've seen some Smithay errors like
2024-12-12T10:31:03.837016Z ERROR cosmic_comp::config: Failed to read config 'workspaces' err=NoConfigDirectory
2024-12-12T10:31:03.839604Z ERROR cosmic_settings_config::shortcuts: failed to read local shortcuts config 'system_actions': NoConfigDirectory
2024-12-12T10:31:03.839752Z  WARN cosmic_settings_config::shortcuts::sym: Key-Binding 'Period' only matched case insensitive for "period"
2024-12-12T10:31:03.839767Z  WARN cosmic_settings_config::shortcuts::sym: Key-Binding 'Comma' only matched case insensitive for "comma"
2024-12-12T10:31:03.839777Z  WARN cosmic_settings_config::shortcuts::sym: Key-Binding 'Period' only matched case insensitive for "period"
2024-12-12T10:31:03.839785Z  WARN cosmic_settings_config::shortcuts::sym: Key-Binding 'Comma' only matched case insensitive for "comma"
2024-12-12T10:31:03.840362Z ERROR cosmic_settings_config::window_rules: tiling exceptions custom config error: GetKey("tiling_exception_custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
2024-12-12T10:31:04.004998Z  WARN smithay::backend::drm::device::fd: Unable to become drm master, assuming unprivileged mode
2024-12-12T10:31:04.138734Z  WARN smithay::backend::drm::device::fd: Unable to become drm master, assuming unprivileged mode
2024-12-12T10:31:04.521831Z ERROR smithay::backend::drm::device::atomic: Failed to restore previous state. Error: Permission denied (os error 13)
2024-12-12T10:31:04.521940Z ERROR smithay::backend::drm::device::atomic: Failed to restore previous state. Error: Permission denied (os error 13)
2024-12-12T10:31:04.523220Z ERROR smithay::xwayland::xserver: Xwayland terminated: exit status: 1

@jurealeksic
Copy link

I'm having the same problem..

cosmic-comp

Dec 12 18:25:31 jure cosmic-comp[28848]: Failed to read config 'workspaces'
Dec 12 18:25:31 jure cosmic-comp[28848]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Dec 12 18:25:31 jure cosmic-comp[28848]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 12 18:25:31 jure cosmic-comp[28848]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 12 18:25:31 jure cosmic-comp[28848]: Key-Binding 'Period' only matched case insensitive for "period"
Dec 12 18:25:31 jure cosmic-comp[28848]: Key-Binding 'Comma' only matched case insensitive for "comma"
Dec 12 18:25:31 jure cosmic-comp[28848]: shortcuts custom config error: GetKey("custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Dec 12 18:25:31 jure cosmic-comp[28848]: tiling exceptions custom config error: GetKey("tiling_exception_custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Dec 12 18:25:32 jure cosmic-comp[28848]: Unable to become drm master, assuming unprivileged mode
Dec 12 18:25:32 jure cosmic-comp[28848]: ignoring requested context priority, EGL_IMG_context_priority not supported
Dec 12 18:25:32 jure cosmic-comp[28848]: Erroneous EGL call didn't set EGLError
Dec 12 18:25:32 jure cosmic-comp[28848]: ignoring requested context priority, EGL_IMG_context_priority not supported
Dec 12 18:25:32 jure cosmic-comp[28848]: ignoring requested context priority, EGL_IMG_context_priority not supported
Dec 12 18:25:32 jure cosmic-comp[28848]: ignoring requested context priority, EGL_IMG_context_priority not supported
Dec 12 18:25:32 jure cosmic-comp[28848]: failed to create signaled syncobj
Dec 12 18:25:32 jure cosmic-comp[28848]: Preferred format AB30 not available: NoSupportedPlaneFormat
Dec 12 18:25:32 jure cosmic-comp[28848]: Preferred format AR30 not available: NoSupportedPlaneFormat
Dec 12 18:25:32 jure cosmic-comp[28848]: Preferred format AB24 not available: NoSupportedPlaneFormat
Dec 12 18:25:32 jure cosmic-comp[28848]: Unable to become drm master, assuming unprivileged mode
Dec 12 18:25:32 jure cosmic-comp[28848]: Unable to clear state: DRM access error: Failed to commit on clear_state on device `Some("/dev/dri/card0")` (Invalid argument (os error 22))
Dec 12 18:25:32 jure cosmic-comp[28848]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 12 18:25:32 jure cosmic-comp[28848]: Failed to restore previous state. Error: Permission denied (os error 13)
Dec 12 18:25:32 jure cosmic-comp[28848]: Xwayland terminated: exit status: 1
lines 1313-1360/1360 (END)

Dec 12 18:25:31 jure cosmic-session[28835]: Starting cosmic-session
Dec 12 18:25:31 jure cosmic-session[28835]: starting process ' COSMIC_SESSION_SOCK=12 cosmic-comp '
Dec 12 18:25:32 jure cosmic-session[28835]: process ' COSMIC_SESSION_SOCK=12 cosmic-comp ' failed with code 1
Dec 12 18:25:32 jure cosmic-session[28835]: cosmic-comp exited with error code 1
Dec 12 18:25:32 jure cosmic-session[28835]: draining stdin receiver before restarting process
Dec 12 18:25:32 jure cosmic-session[28835]: sleeping for 4ms before restarting process cosmic-comp (restart 0)
Dec 12 18:25:32 jure cosmic-session[28835]: restarted process ' COSMIC_SESSION_SOCK=12 cosmic-comp ', now at 1 restarts
Dec 12 18:25:32 jure cosmic-session[28835]: process 'ProcessKey(1v1)' cancelled
Dec 12 18:25:32 jure cosmic-session[28835]: thread 'main' panicked at 'failed to kill program: Custom { kind: InvalidInput, error: "invalid argument: can't kill an exited process" }': /buil>
                                               0: <unknown>
                                               1: <unknown>
                                               2: <unknown>
                                               3: <unknown>
                                               4: <unknown>
                                               5: <unknown>
                                               6: <unknown>
                                               7: <unknown>
                                               8: <unknown>
                                               9: <unknown>
                                              10: <unknown>
                                              11: <unknown>
                                              12: <unknown>
                                              13: <unknown>
                                              14: <unknown>
                                              15: <unknown>
                                              16: <unknown>
                                              17: <unknown>
                                              18: <unknown>
                                              19: <unknown>
                                              20: <unknown>
                                              21: __libc_start_call_main
                                                         at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
                                              22: __libc_start_main_impl
                                                         at ./csu/../csu/libc-start.c:360:3
                                              23: <unknown>
lines 4640-4687/4687 (END)

Oddly, I created a new user and that user is able to login.. Any assistance would be appreciated

@Psyhackological
Copy link

@jurealeksic high five. I was troubleshooting it for too long and now I'm just doing CTRL + ALT + F2, log in with my user and type niri once installed. I really like it, but Xwayland sucks on it. Or just X11 just sucks on Wayland...

@jurealeksic
Copy link

I was able to resolve this by adding nvidia-drm.modeset=1 to kernel boot options using this command sudo kernelstub -a "nvidia-drm.modeset=1" and then rebooting.

@Psyhackological maybe this will help you too

@Psyhackological
Copy link

@jurealeksic I did thanks, but for some reason the solution to my problem was connecting my external monitor to my laptop. I was away from it, without it was crashing for my main user. I don't know why.

@Psyhackological
Copy link

So I fixed my outdated config for outputs with:
rm ~/.local/state/cosmic-comp/outputs.ron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants