![Lunar Lobster Wayland 崩溃](https://linux22.com/image/1194407/Lunar%20Lobster%20Wayland%20%E5%B4%A9%E6%BA%83.png)
我最近在台式机系统 (HP Victus - AMD Ryzen 7 5700G - Radeon RX 6600XT) 上将 Kinetic Kudu 升级到了 Lunar Lobster。大多数功能都一样或更好,除了 Wayland 在挂起/恢复时崩溃或显示空白/解锁时每天多次(以前从未出现过),让我回到登录屏幕并开始新的会话。
我不知道如何调试或报告,因为最烦人的方面是没有错误消息给我一个起点,而 Ubuntu 本身似乎没有意识到这个问题(即,我从来没有提示过“检测到系统程序问题”)。
我滚动浏览了 journalctl 的输出并且最相关的部分如下(例如[email protected]: Main process exited, code=dumped, status=11/SEGV
):
Apr 27 06:52:53 HP-Victus gsd-media-keys[147122]: Unable to get default source
Apr 27 06:52:53 HP-Victus ntpd[153912]: DNS: dns_probe: 3.ubuntu.pool.ntp.org, cast_flags:8, flags:101
Apr 27 06:52:53 HP-Victus ntpd[153912]: DNS: dns_check: processing 3.ubuntu.pool.ntp.org, 8, 101
Apr 27 06:52:53 HP-Victus ntpd[153912]: DNS: dns_check: DNS error: -3, Temporary failure in name resolution
Apr 27 06:52:53 HP-Victus ntpd[153912]: DNS: dns_take_status: 3.ubuntu.pool.ntp.org=>temp, 3
Apr 27 06:52:53 HP-Victus gnome-shell[148217]: (EE) failed to read Wayland events: Connection reset by peer
Apr 27 06:52:53 HP-Victus xdg-desktop-por[147400]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gnome-terminal-[147984]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus x-terminal-emulator[147978]: # Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus evolution-alarm[147201]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gsd-wacom[147156]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gsd-power[147126]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gsd-media-keys[147122]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gsd-color[147111]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus gsd-keyboard[147120]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus update-notifier[148103]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus systemd[146671]: org.gnome.SettingsDaemon.Wacom.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:53 HP-Victus snapd-desktop-i[147472]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus xdg-desktop-por[147518]: Error reading events from display: Broken pipe
Apr 27 06:52:53 HP-Victus polkitd(authority=local)[1809]: Unregistered Authentication Agent for unix-session:51 (system bus name :1.869, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr 27 06:52:53 HP-Victus gsd-xsettings[148234]: Failed to get animations-enabled state: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Apr 27 06:52:53 HP-Victus systemd[146671]: [email protected]: Main process exited, code=dumped, status=11/SEGV
Apr 27 06:52:53 HP-Victus systemd[146671]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:53 HP-Victus systemd[146671]: org.gnome.SettingsDaemon.Keyboard.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:53 HP-Victus systemd[146671]: org.gnome.SettingsDaemon.MediaKeys.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:53 HP-Victus systemd[146671]: org.gnome.SettingsDaemon.Power.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:54 HP-Victus systemd[146671]: xdg-desktop-portal-gnome.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:54 HP-Victus systemd[146671]: xdg-desktop-portal-gnome.service: Failed with result 'exit-code'.
Apr 27 06:52:54 HP-Victus systemd[146671]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:54 HP-Victus systemd[146671]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Apr 27 06:52:54 HP-Victus systemd[146671]: gnome-terminal-server.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 06:52:54 HP-Victus systemd[146671]: gnome-terminal-server.service: Failed with result 'exit-code'.
Apr 27 06:52:54 HP-Victus systemd[146671]: gnome-terminal-server.service: Consumed 2.765s CPU time.
尝试寻找核心让我:
$ cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E
$ ls -l /var/crash
total 51148
-rw-r----- 1 mjf whoopsie 52366746 Apr 26 16:11 _usr_bin_gnome-shell.1000.crash
-rw-r--r-- 1 mjf whoopsie 0 Apr 26 16:11 _usr_bin_gnome-shell.1000.upload
-rw------- 1 whoopsie whoopsie 37 Apr 26 16:11 _usr_bin_gnome-shell.1000.uploaded
因此它捕获了一个问题并归咎于 gnome-shell 但从未提示我发送报告,并且自该时间戳以来至少发生了 2 次崩溃。