pop-os / cosmic-comp

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

[BUG] External monitor sometimes freezes. #867

Open nevdelap opened 2 months ago

nevdelap commented 2 months ago

It has happened maybe half a dozen times. Previously I logged out and in again. This time I found a possible workaround.

I have a laptop with an external monitor. It is the external monitor that has frozen, though the large external monitor is also where I am doing things 99% of the time so it might not be specific to the external monitor.

This time it happened when I clicked a folder on the Chrome bookmarks bar. You can see here the menu is just starting to fade in before it froze. (I'm in Chrome and Alacritty 99% of the time too.)

image

While that monitor is frozen the other monitor is not, and the mouse moves between them, as if the mouse is still moving in the coordinate space of the large monitor.

Previously I logged out and logged back in, but this time I turned off the large monitor and turned it back on again. The laptop monitor then froze for maybe 10 seconds while the external monitor was black, then both came back to life.

This is Manjaro with the cosmic from the AUR...

cosmic-applets-git 1.0.0.alpha.1.r34.gfe598a7
cosmic-applibrary-git 1.0.0.alpha.1.r8.gdb4a96e
cosmic-bg-git 1.0.0.alpha.1.r21.g584f6b3
cosmic-comp-git 1.0.0.alpha.1.r59.g4d21575
cosmic-greeter-git 1.0.0.alpha.1.r29.g55c02cd
cosmic-icons-git 1.0.0.alpha.1.r11.g341c844
cosmic-launcher-git 1.0.0.alpha.1.r3.g9269534
cosmic-notifications-git 1.0.0.alpha.1.r0.ge9abef5
cosmic-osd-git 1.0.0.alpha.1.r0.g27fc5e5
cosmic-panel-git 1.0.0.alpha.1.r4.ge184d10
cosmic-randr-git 1.0.0.alpha.1.r0.g71fabbb
cosmic-screenshot-git 1.0.0.alpha.1.r0.g031eb66
cosmic-session-git 1.0.0.alpha.1.r5.g39c7f93
cosmic-settings-daemon-git 1.0.0.alpha.1.r6.ga41d199
cosmic-settings-git 1.0.0.alpha.1.r60.gdf43c94
cosmic-workspaces-git 1.0.0.alpha.1.r1.g70d6c41
xdg-desktop-portal-cosmic-git 1.0.0.alpha.1.r16.g9bf51d3
nevdelap commented 1 month ago

Maybe the same thing, maybe not, but a bit more dramatic.

I had a freeze in Chrome as it was drawing the right click menu, then it went wild flashing different random blocks of memory or something...

image

Then I turned the right hand screen off and on, the left hand screen froze. I turned the right had screen on and off a few times, and it looked to be back to life, but it responded to keyboard shortcuts - like I could open a new terminal, but none of the applications responded to keyboard input in the application. So for example I couldn't do anthing in the terminal I'd just opened.

To get back to working I switched to a virtual terminal and killed "cosmic-workspaces", switched back to the GUI, and it sprang back to life with everything intact.

nevdelap commented 3 weeks ago

I've just had this again. This is having updated everything to the lastest from the AUR yesterday. Switching the monitor off and waiting maybe a minute for the laptop screen to unfreeze and for the monitor to display the UI got it going again.

image

Here are the logs, but it happened at at about the same time this issue also happened, so the log might have both issues mixed in there.

Nov 08 09:21:24 zen google-chrome-stable[1188]: [1170:1170:1108/092124.586391:ERROR:interface_endpoint_client.cc(725)] Message 0 rejected by interface blink.mojom.WidgetHost
Nov 08 09:25:29 zen google-chrome-stable[1188]: [1170:1170:1108/092529.596819:ERROR:interface_endpoint_client.cc(725)] Message 0 rejected by interface blink.mojom.WidgetHost
Nov 08 09:25:41 zen slack[102370]: Opening in existing browser session.
Nov 08 09:31:45 zen systemd[1]: Starting Daily man-db regeneration...
Nov 08 09:31:56 zen systemd[1]: man-db.service: Deactivated successfully.
Nov 08 09:31:56 zen systemd[1]: Finished Daily man-db regeneration.
Nov 08 09:31:56 zen systemd[1]: man-db.service: Consumed 9.740s CPU time, 163.5M memory peak.
Nov 08 09:32:22 zen geoclue[1557]: Failed to query location: Query location SOUP error: Unknown Error
Nov 08 09:43:25 zen kernel: amdgpu 0000:03:00.0: [drm] Mode Validation Warning: Unknown Status failed validation.
Nov 08 09:43:35 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [CRTC:77:crtc-1] flip_done timed out
Nov 08 09:44:59 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 08 09:44:59 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [CRTC:77:crtc-1] commit wait timed out
Nov 08 09:45:09 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 08 09:45:09 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:52:plane-2] commit wait timed out
Nov 08 09:45:19 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 08 09:45:19 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:64:plane-4] commit wait timed out
Nov 08 09:45:29 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 08 09:45:29 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:74:plane-6] commit wait timed out
Nov 08 09:45:29 zen cosmic-comp[1095]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:30 zen cosmic-comp[1095]: thread 'surface-HDMI-A-1' panicked at 'internal error: entered unreachable code': src/backend/kms/surface/mod.rs:780
                                          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>
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_files::tab] failed to read directory "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_files::tab] failed to get item for "/home/nevd/Desktop": failed to read metadata for "/home/nevd/Desktop": No such file or directory (o>
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:30 zen cosmic-session[1034]: [2024-11-07T23:45:30Z WARN  cosmic_greeter::locker] output wl_output@56: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:35 zen cosmic-session[1034]: [2024-11-07T23:45:35Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:38 zen cosmic-comp[1095]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Nov 08 09:45:38 zen cosmic-session[1034]: [2024-11-07T23:45:38Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:38 zen cosmic-session[1034]: [2024-11-07T23:45:38Z WARN  cosmic_files::tab] failed to read directory "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 08 09:45:38 zen cosmic-session[1034]: [2024-11-07T23:45:38Z WARN  cosmic_files::tab] failed to get item for "/home/nevd/Desktop": failed to read metadata for "/home/nevd/Desktop": No such file or directory (o>
Nov 08 09:45:38 zen cosmic-session[1034]: [2024-11-07T23:45:38Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:45:38 zen cosmic-session[1034]: [2024-11-07T23:45:38Z WARN  cosmic_greeter::locker] output wl_output@56: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 08 09:47:55 zen systemd[1024]: Started Application launched by COSMIC.
Nov 08 09:47:57 zen cosmic-comp[1095]: Failed to handle X11 event
Nov 08 09:48:07 zen cosmic-comp[1095]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 36 > 24)
Nov 08 09:48:07 zen cosmic-comp[1095]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 36 > 24)
Nov 08 09:48:33 zen cosmic-notifications[1202]: Unknown hint: sender-pid
Nov 08 09:48:33 zen cosmic-session[1034]: 2024-11-07T23:48:33.282811Z  WARN cosmic_notifications_util: Unknown hint: sender-pid
Nov 08 09:48:33 zen cosmic-notifications[1202]: Failed to notify applet of notification I/O error: Broken pipe (os error 32)
Nov 08 09:48:33 zen cosmic-session[1034]: 2024-11-07T23:48:33.282977Z ERROR cosmic_notifications::subscriptions::notifications: Failed to notify applet of notification I/O error: Broken pipe (os error 32)
Nov 08 09:48:33 zen cosmic-notifications[1202]: Failed to notify applet of notification I/O error: Broken pipe (os error 32)
Nov 08 09:48:33 zen cosmic-session[1034]: 2024-11-07T23:48:33.283076Z ERROR cosmic_notifications::subscriptions::notifications: Failed to notify applet of notification I/O error: Broken pipe (os error 32)
Nov 08 09:49:57 zen sudo[105849]: pam_systemd_home(sudo:auth): New sd-bus connection (system-bus-pam-systemd-home-105849) opened.
Nov 08 09:49:58 zen sudo[105849]:     nevd : TTY=pts/8 ; PWD=/home/nevd ; USER=root ; COMMAND=/usr/bin/journalctl
Nov 08 09:49:58 zen sudo[105849]: pam_unix(sudo:session): session opened for user root(uid=0) by nevd(uid=1000)
Nov 08 09:50:01 zen sudo[105849]: pam_unix(sudo:session): session closed for user root
Nov 08 09:50:25 zen sudo[105985]: pam_systemd_home(sudo:account): New sd-bus connection (system-bus-pam-systemd-home-105985) opened.
Nov 08 09:50:25 zen sudo[105985]:     nevd : TTY=pts/8 ; PWD=/home/nevd ; USER=root ; COMMAND=/usr/bin/journalctl -e
Nov 08 09:50:25 zen sudo[105985]: pam_unix(sudo:session): session opened for user root(uid=0) by nevd(uid=1000)
nevdelap commented 2 weeks ago

This has happened once again yesterday, and twice again today. Same panic.

Nov 14 13:40:44 zen geoclue[1496]: Failed to query location: Query location SOUP error: Unknown Error
Nov 14 13:46:58 zen brave[803814]: Warning: disabling flag --expose_wasm due to conflicting flags
Nov 14 13:48:09 zen brave[803963]: Warning: disabling flag --expose_wasm due to conflicting flags
Nov 14 13:49:41 zen brave[804326]: Warning: disabling flag --expose_wasm due to conflicting flags
Nov 14 13:49:42 zen brave[804335]: Warning: disabling flag --expose_wasm due to conflicting flags
Nov 14 13:49:53 zen kernel: amdgpu 0000:03:00.0: [drm] Mode Validation Warning: Unknown Status failed validation.
Nov 14 13:50:03 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [CRTC:77:crtc-1] flip_done timed out
Nov 14 13:50:05 zen kernel: [drm:amdgpu_dm_atomic_check [amdgpu]] *ERROR* [CRTC:77:crtc-1] hw_done or flip_done timed out
Nov 14 13:50:32 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 14 13:50:32 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [CRTC:77:crtc-1] commit wait timed out
Nov 14 13:50:42 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 14 13:50:42 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:52:plane-2] commit wait timed out
Nov 14 13:50:52 zen geoclue[1496]: Failed to query location: Query location SOUP error: Unknown Error
Nov 14 13:50:52 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 14 13:50:52 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:64:plane-4] commit wait timed out
Nov 14 13:50:54 zen geoclue[1496]: Failed to query location: Query location SOUP error: Unknown Error
Nov 14 13:51:00 zen cosmic-panel[1207]: com.system76.CosmicAppletTime: exited with code 0
Nov 14 13:51:03 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* flip_done timed out
Nov 14 13:51:03 zen kernel: amdgpu 0000:03:00.0: [drm] *ERROR* [PLANE:74:plane-6] commit wait timed out
Nov 14 13:51:03 zen cosmic-comp[1091]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Nov 14 13:51:03 zen cosmic-comp[1091]: thread 'surface-HDMI-A-1' panicked at 'internal error: entered unreachable code': src/backend/kms/surface/mod.rs:780
                                          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>
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_files::tab] failed to read directory "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_files::tab] failed to get item for "/home/nevd/Desktop": failed to read metadata for "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_greeter::locker] output wl_output@118: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_greeter::locker] output wl_output@118: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:03 zen cosmic-session[1030]: [2024-11-14T03:51:03Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:24 zen cosmic-session[1030]: [2024-11-14T03:51:24Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:26 zen cosmic-comp[1091]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Nov 14 13:51:26 zen cosmic-session[1030]: [2024-11-14T03:51:26Z WARN  cosmic_files::tab] failed to read directory "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 14 13:51:26 zen cosmic-session[1030]: [2024-11-14T03:51:26Z WARN  cosmic_files::tab] failed to get item for "/home/nevd/Desktop": failed to read metadata for "/home/nevd/Desktop": No such file or directory (os error 2)
Nov 14 13:51:26 zen cosmic-session[1030]: [2024-11-14T03:51:26Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:26 zen cosmic-session[1030]: [2024-11-14T03:51:26Z WARN  cosmic_greeter::locker] output wl_output@118: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:26 zen cosmic-session[1030]: [2024-11-14T03:51:26Z WARN  cosmic_greeter::locker] output wl_output@7: unsupported source Single([0.9411765, 0.9411765, 0.9411765])
Nov 14 13:51:56 zen sudo[804599]: pam_systemd_home(sudo:auth): New sd-bus connection (system-bus-pam-systemd-home-804599) opened.
Nov 14 13:51:58 zen sudo[804599]:     nevd : TTY=pts/8 ; PWD=/home/nevd ; USER=root ; COMMAND=/usr/bin/journalctl -e
Nov 14 13:51:58 zen sudo[804599]: pam_unix(sudo:session): session opened for user root(uid=0) by nevd(uid=1000)