我正在检查 journalctl 的输出,看到大量以下条目:
gnome-shell [5944]:加载缩略图时出错:错误:参数宽度:值超出 gfloat 的范围
短时间内好像涨了几千
$ uptime; sudo journalctl -b | grep thumbnail | wc -l
10:37:23 up 19:36, 1 user, load average: 0.89, 1.06, 1.21
2171
$
我的想法是 gnome 试图引用的某个地方的缩略图以某种方式损坏 - 也许缩略图的宽度正在返回非浮点值?
我尝试删除以下目录:~/.cache/thumbnails 当我下次打开 nautilus 时重新创建它,导航到包含图片的目录并将视图更改为“显示网格”视图。
这没什么区别。
我怎样才能确定这是参考哪个缩略图?
编辑0:
$ ls -al ~/.local/share/gnome-shell/extensions
total 16
drwxrwxr-x 4 user user 4096 Mar 23 10:48 .
drwx------ 4 user user 4096 May 28 12:55 ..
drwxrwxr-x 8 user user 4096 Apr 13 10:21 [email protected]
drwxrwxr-x 4 user user 4096 Mar 11 13:19 [email protected]
$
$ ls -al /usr/share/gnome-shell/extensions
total 68
drwxr-xr-x 17 root root 4096 Nov 28 2019 .
drwxr-xr-x 7 root root 4096 Mar 17 15:16 ..
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 desktop-icons@csoriano
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 native-window-placement@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x 3 root root 4096 Nov 19 2020 [email protected]
drwxr-xr-x 3 root root 4096 Nov 19 2020 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x 2 root root 4096 Jan 22 08:29 [email protected]
$
系统日志的输出(我只包括当前的系统日志): https ://paste.ubuntu.com/p/BmRbpMVK8B/
编辑 1:我已删除 gsconnect 和系统监视器扩展并重新启动。我今天看到错误消息明显减少:
$ sudo grep gnome-shell /var/log/syslog | grep thumbnail
May 31 08:43:52 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:52 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:52 pc gnome-shell[5787]: message repeated 6 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 08:43:53 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:53 pc gnome-shell[5787]: message repeated 19 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 09:41:45 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 09:41:45 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 13:08:12 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 13:08:13 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 14:36:49 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 14:36:49 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 15:41:26 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 15:41:36 pc gnome-shell[5787]: message repeated 27 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
$
编辑2:
我现在只启用了以下扩展:
$ ls -al /usr/share/gnome-shell/extensions
total 20
drwxr-xr-x 5 root root 4096 May 31 16:03 .
drwxr-xr-x 7 root root 4096 Mar 17 15:16 ..
drwxr-xr-x 2 root root 4096 Jan 22 08:29 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 Nov 19 2020 [email protected]
drwxr-xr-x 3 root root 4096 Nov 19 2020 [email protected]
$
$ ls -al ~/.local/share/gnome-shell/extensions
total 8
drwxrwxr-x 2 user user 4096 May 28 17:17 .
drwx------ 4 user user 4096 Jun 1 09:10 ..
$
我重新安装了 gnome-shell-extension-prefs 和 libdazzle-1.0-0 并重新启动。以下是自启动以来的错误:
$ uptime; sudo journalctl -b | grep thumbnail
08:40:00 up 2 min, 1 user, load average: 0.97, 0.66, 0.26
Jun 01 08:38:03 pc audit[2679]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2679 comm="apparmor_parser"
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
$
编辑3:
编辑4:
所以因为我已经删除了除核心扩展之外的所有扩展,并且在登录时仍然收到缩略图错误(即甚至没有做任何事情)我删除了我桌面上的所有文件(其中确实包括一些图像),删除了~/.local /thumbnails再次并重新启动
没有错误:
$ uptime; sudo journalctl -b | grep thumbnail
09:50:25 up 35 min, 1 user, load average: 0.78, 0.64, 0.51
Jun 01 09:15:06 cn-lat7490 audit[2668]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2668 comm="apparmor_parser"
$
而且,也没有缩略图目录:
$ ls -al ~/.cache/thumbnails/
ls: cannot access '/home/user/.cache/thumbnails/': No such file or directory
$
所以我导航到Nautilus 中的图片目录以生成一些缩略图,但我仍然没有错误
$ uptime; sudo journalctl -b | grep thumbnail; ls -al ~/.cache/thumbnails
09:54:04 up 39 min, 1 user, load average: 0.49, 0.57, 0.51
Jun 01 09:15:06 pc audit[2668]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2668 comm="apparmor_parser"
total 12
drwx------ 3 user user 4096 Jun 1 09:52 .
drwx------ 32 user user 4096 Jun 1 09:52 ..
drwx------ 2 user user 4096 Jun 1 09:52 normal
$
gnome-shell 到处崩溃。gnome-shell 扩展是可能的原因。
/usr/share/gnome-shell/extensions/*gcampax.github.com 扩展是可疑的,应该使用
Tweaks
或Extensions
应用程序将其删除。留下以下...打开 gsconnect 设置并告诉我版本号。
监控 syslog 以查看错误是否继续,使用...