22.04 gnome-control-center GLib 分段错误

22.04 gnome-control-center GLib 分段错误

自从更新到 22.04 以来,每次我尝试启动设置菜单时,它都会出现段错误。我看到其他一些帖子也存在这个问题 - 其中一个人停止使用 ubuntu 作为解决方案,而其他答案都没有用。清除并重新安装没有用。更改存储库也没有用(现在只能使用基本存储库) 链接1 链接2 链接3

这是我的错误:


(gnome-control-center:99164): GLib-CRITICAL **: 06:20:19.572: g_strsplit: assertion 'string != NULL' failed
Segmentation fault (core dumped)

我正在使用以下版本:gnome-control-center/jammy-updates,now 1:41.7-0ubuntu0.22.04.4 amd64 [已安装]

一些输出:

(No debugging symbols found in gnome-control-center)
(gdb) r
Starting program: /usr/bin/gnome-control-center 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9ca7640 (LWP 100558)]
[New Thread 0x7fffe94a6640 (LWP 100559)]

(gnome-control-center:100555): GLib-CRITICAL **: 06:33:32.123: g_strsplit: assertion 'string != NULL' failed

Thread 1 "gnome-control-c" received signal SIGSEGV, Segmentation fault.
0x00007ffff538e842 in ?? () from /lib/x86_64-linux-gnu/libcogl.so.20
(gdb) bt
#0  0x00007ffff538e842 in  () at /lib/x86_64-linux-gnu/libcogl.so.20
#1  0x00007ffff53d4599 in  () at /lib/x86_64-linux-gnu/libcogl.so.20
#2  0x00007ffff53932d0 in cogl_renderer_connect () at /lib/x86_64-linux-gnu/libcogl.so.20
#3  0x00007ffff5665305 in  () at /lib/x86_64-linux-gnu/libclutter-1.0.so.0
#4  0x00007ffff568a2b7 in  () at /lib/x86_64-linux-gnu/libclutter-1.0.so.0
#5  0x00007ffff568a608 in  () at /lib/x86_64-linux-gnu/libclutter-1.0.so.0
#6  0x00007ffff7c8ca67 in g_option_context_parse () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff568a85a in clutter_init () at /lib/x86_64-linux-gnu/libclutter-1.0.so.0
#8  0x00007ffff6edee91 in cheese_gtk_init () at /lib/x86_64-linux-gnu/libcheese-gtk.so.25
#9  0x00005555555bcbf4 in main ()

答案1

我遇到了相同的错误消息和回溯:

回溯中的 libcogl.so 是 OpenGL 共享库。

当我运行glxinfoglxgears其他(通过以下方式安装的两个 OpenGL 工具sudo apt install mesa-utils:)时,这些应用程序也失败并出现错误BadValue

$ glxinfo
name of display: :0.0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  85
  Current serial number in output stream:  86

这个堆栈溢出问题: X 请求失败的错误:BadValue(整数参数超出操作范围)

链接到该论坛帖子: [已解决] glxinfo(和其他 OpenGL 应用程序)失败:BadValue

建议将用户添加到video组并重新启动X-Server。

sudo usermod -a -G video ${USER}

之后我只需重新启动计算机,所有与 OpenGL 相关的问题就都解决了。

很难说哪个部分解决了这个问题,另一个用户表示他们:sudo apt --fix-broken install其次是sudo reboot。所以这也可能是一个有效的修复。

相关内容