_usr_bin_gnome-shell.120.每次启动时都会崩溃

_usr_bin_gnome-shell.120.每次启动时都会崩溃

最近,每次我启动稳定的 18.04 系统(安装在 SSD 上)时,都会弹出错误:

在此处输入图片描述

单击“报告问题...”不会显示任何其他信息。

检查 /var/crash 文件夹始终只有一份报告:

$ ls /var/crash
_usr_bin_gnome-shell.120.crash

我不确定如何排除故障或修复此问题,有人可以给我指明正确的方向吗?

设置 > 关于 > 图形:英特尔® Ivybridge 移动版

$ lspci -vnn | grep VGA -A9
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller [144d:c0d1]
    Flags: bus master, fast devsel, latency 0, IRQ 29
    Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at f000 [size=64]
    [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: 3rd Gen Core processor Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:29 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff

$ echo $XDG_SESSION_TYPE
x11

$ ls -al ~/.local/share/gnome-shell/extensions
total 8
drwxrwxr-x 2 user user 4096 Apr  6  2019 .
drwx------ 3 user user 4096 Feb  3 16:52 ..

$ sudo apt install chrome-gnome-shell安装Firefox GNOME Shell Integration 扩展后,https://extensions.gnome.org/local/在 Firefox 中仅显示:
Ubuntu AppIndicators
Ubuntu Dock

更新:2020-02-04
我无法重现此错误。可能已通过昨天的 apt upgrade 修复。

$ cat /var/log/apt/history.log | grep -A3 -i 2020-02-03
Start-Date: 2020-02-03  15:43:21
Commandline: apt full-upgrade
Requested-By: user (1000)
Upgrade: fdisk:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), bluez:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), uuid-runtime:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libfdisk1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), bluez-cups:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), libmount1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), sudo:amd64 (1.8.21p2-3ubuntu1.1, 1.8.21p2-3ubuntu1.2), util-linux:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), mount:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libblkid1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libuuid1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libsmartcols1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), rfkill:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), bsdutils:amd64 (1:2.31.1-0.4ubuntu3.4, 1:2.31.1-0.4ubuntu3.5), bluez-obexd:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), libbluetooth3:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3)
End-Date: 2020-02-03  15:43:31

更新:2020-02-06
我刚刚在笔记本电脑合上盖子睡眠状态下登录后又遇到了一次类似的崩溃,但这次有两个崩溃报告,一个是我合上盖子时(我猜,从时间上来说),另一个是我重新登录时:

$ ls -al /var/crash
total 20864
drwxrwsrwt  2 root whoopsie     4096 Feb  6 12:43 .
drwxr-xr-x 14 root root         4096 Apr 26  2018 ..
-rw-r-----  1 gdm  whoopsie 21302671 Feb  6 11:40 _usr_bin_gnome-shell.120.crash
-rw-r-----  1 gdm  whoopsie    50961 Feb  6 12:43 _usr_bin_Xwayland.120.crash

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           7.7G        5.0G        373M        780M        2.3G        1.7G
Swap:          2.0G          0B        2.0G

$ sysctl vm.swappiness
vm.swappiness = 10

$ grep -i swap /etc/fstab
/swapfile                                 none            swap    sw              0       0

更新 2:2020-02-06
聊天建议:
将交换文件的大小调整为 8GiB
将交换量调整回默认值(60)
完成后,将在接下来的几天内报告正面/负面的消息。

答案1

从评论和聊天中...

  • 我们保证我们不会运行 Wayland

  • 确认没有不良的 GNOME Shell 扩展

  • 我们将/swapfile从2G扩大到8G

  • 我们将 vm.swappiness=10 更改为 vm.swappiness=60

到目前为止,一切运行良好。

相关内容