gnome-shell:加载缩略图时出错

gnome-shell:加载缩略图时出错

我正在检查 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/缩略图 当我下次打开 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 和 system-monitor 扩展并重新启动。今天我发现错误消息明显减少了:

$ 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/缩略图再次重新启动

没有错误:

$ 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
$

所以我导航到我的图片目录中生成一些缩略图,我仍然没有错误

$ 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
$

答案1

gnome-shell 到处崩溃。gnome-shell 扩展可能是原因。

/usr/share/gnome-shell/extensions/*gcampax.github.com 扩展存在问题,应使用TweaksExtensions应用程序将其删除。不要管以下内容...

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]

打开 gsconnect 设置并告诉我版本号。

监控系统日志以查看错误是否继续,使用......

grep -i gnome-shell /var/log/syslog*

相关内容