Describe the bug
I have a Level One Techs KVM that is providing me with dual display port connections for my displays, one of which is a 4k display, and the other is a 1900x1200 display.
I work from home, so I use that KVM to switch my display over to the work computer. When I switch back, I'm always greeted with a locked, but fresh cosmic desktop. None of my windows are open, it's as if I just logged in.
Looking at the logs I can find a panic in cosmic-comp right after the KVM switches back over. I see USB connections and then a Cosmic-comp crash, as attached. I have included all the journalctl logs, because there's a whole pile of other errors that show up after that Wayland compositor dies.
The order of events seems to be:
- KVM reconnects
- cosmic-comp panics
Dec 17 17:00:36 raziel-linux.dark.kow.is cosmic-comp[301174]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Dec 17 17:00:36 raziel-linux.dark.kow.is cosmic-comp[301174]: thread 'main' panicked at 'called `Option::unwrap()` on a `None` value': src/shell/layout/floating/mod.rs:308
- so many broken pipe errors form cosmic-everything
- cosmic-session panics
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Io error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Io error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: [2025-12-17T23:00:38Z ERROR iced_winit::platform_specific::wayland::event_loop] SCTK dispatch error: other error during loop operation: underlying IO error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]:
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: thread '<unnamed>' panicked at src/backend/wayland/mod.rs:333:54:
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: called `Result::unwrap()` on an `Err` value: OtherError(IoError(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }))
- cosmic-things start exiting
- cosmic-session dies again
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Error: other error during loop operation: underlying IO error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]:
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Caused by:
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: 0: underlying IO error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: 1: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Io error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: Error:
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: 0: other error during loop operation: underlying IO error: Broken pipe (os error 32)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: 1: underlying IO error: Broken pipe (os error 32)
- cosmic-session finally sees that cosmic-comp died
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: process ' COSMIC_SESSION_SOCK=12 cosmic-comp ' terminated with signal 6
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-comp exited by signal
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: draining stdin receiver before restarting process
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: sleeping for 2ms before restarting process cosmic-comp (restart 0)
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: restarted process ' DISPLAY=:1 WAYLAND_DISPLAY=wayland-1 XDG_SESSION_TYPE=wayland GTK_MODULES=gail:atk-bridge QT_ACCESSIBILITY=1 QTWEBENGINE_DICTIONARIES_PATH=/usr/share/hunspell-bdic/ GSM_SKIP_SSH_AGENT_WORKAROUND=true cosmic-bg ', now at 1 restarts
- it does not succssfully restart cosmic-comp
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: RESTARTING: session restarted by request
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-bg exited with error 137
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: restarted process ' COSMIC_SESSION_SOCK=12 cosmic-comp ', now at 1 restarts
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: process 'ProcessKey(1v1)' cancelled
- cosmic comp dies, and cosmic-greeter die
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-comp exited with error code 137
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-greeter exited with error 137
- finally the rest of cosmic dies, taking down all my apps.
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-files-applet exited with error 137
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: cosmic-files-applet.scope: Consumed 11min 18.307s CPU time.
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-app-library exited with error 137
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: cosmic-app-library.scope: Consumed 6min 9.512s CPU time.
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: cosmic-workspaces.scope: Consumed 10min 58.475s CPU time.
Dec 17 17:00:38 raziel-linux.dark.kow.is cosmic-session[2783]: cosmic-workspaces exited with error 137
Dec 17 17:00:38 raziel-linux.dark.kow.is mtp-probe[413992]: checking bus 5, device 25: "/sys/devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb5/5-4/5-4.4/5-4.4.2"
Dec 17 17:00:38 raziel-linux.dark.kow.is mtp-probe[413992]: bus: 5, device: 25 was not an MTP device
Dec 17 17:00:38 raziel-linux.dark.kow.is mtp-probe[414002]: checking bus 5, device 25: "/sys/devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb5/5-4/5-4.4/5-4.4.2"
Dec 17 17:00:38 raziel-linux.dark.kow.is mtp-probe[414002]: bus: 5, device: 25 was not an MTP device
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: app-cosmic-element-desktop-306129.scope: Consumed 34min 1.367s CPU time.
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: app-cosmic-obsidian-315604.scope: Consumed 13min 29.739s CPU time.
Dec 17 17:00:38 raziel-linux.dark.kow.is systemd[2670]: app-cosmic-discord-305571.scope: Consumed 31min 27.972s CPU time.
Dec 17 17:00:39 raziel-linux.dark.kow.is systemd[2670]: dbus-:1.1-org.freedesktop.impl.portal.desktop.cosmic@2.service: Main process exited, code=dumped, status=6/ABRT
Dec 17 17:00:39 raziel-linux.dark.kow.is systemd[2670]: dbus-:1.1-org.freedesktop.impl.portal.desktop.cosmic@2.service: Failed with result 'core-dump'.
Dec 17 17:00:39 raziel-linux.dark.kow.is systemd[2670]: dbus-:1.1-org.freedesktop.impl.portal.desktop.cosmic@2.service: Consumed 6min 35.126s CPU time.
- Everything gets duitifully restarted by systemd
Dec 17 17:00:40 raziel-linux.dark.kow.is systemd[2670]: Stopped target cosmic-session.target - Cosmic Session Target.
Dec 17 17:00:40 raziel-linux.dark.kow.is systemd[2670]: Stopped target xdg-desktop-autostart.target - Startup of XDG autostart applications.
Dec 17 17:00:40 raziel-linux.dark.kow.is cosmic-session[2783]: Restarting
Dec 17 17:00:40 raziel-linux.dark.kow.is cosmic-session[2783]: Starting cosmic-session
Then I get my bare desktop back and have to start all my apps again. All that happens in like 40 seconds right after switching back. Log with all the gory messages attached.
failure.txt
To Reproduce
Steps to reproduce the behavior:
- Have a KVM
- switch displays to your work computer
- switch back after a work day
- Have a fresh desktop with no windows :(
Expected behavior
I would like to come back to my desktop environment still being up, and not having problems. It did work this way on Previous PopOS.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
I have a Level One Techs KVM that is providing me with dual display port connections for my displays, one of which is a 4k display, and the other is a 1900x1200 display.
I work from home, so I use that KVM to switch my display over to the work computer. When I switch back, I'm always greeted with a locked, but fresh cosmic desktop. None of my windows are open, it's as if I just logged in.
Looking at the logs I can find a panic in cosmic-comp right after the KVM switches back over. I see USB connections and then a Cosmic-comp crash, as attached. I have included all the journalctl logs, because there's a whole pile of other errors that show up after that Wayland compositor dies.
The order of events seems to be:
Then I get my bare desktop back and have to start all my apps again. All that happens in like 40 seconds right after switching back. Log with all the gory messages attached.
failure.txt
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would like to come back to my desktop environment still being up, and not having problems. It did work this way on Previous PopOS.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.