Chromium - 右键菜单和系统栏按钮不呈现

Chromium - 右键菜单和系统栏按钮不呈现

到目前为止,我一直在使用 Ubuntu 21.04 (GNOME),但几天前,当我升级到 21.10 时,从终端启动时,我开始收到来自 Chromium 的这些奇怪的错误消息。我试图忽略它,但随后应用程序中开始出现这种情况:

右键菜单显示为带有随机彩色点的绿白色框 - 类似于旧 CRT 电视中的静电

每当我右键单击链接时,都会出现绿黑框。右键单击纯文本或系统标题栏可以正常工作,但当我右键单击链接(例如打开新选项卡)时,它无法正确加载。填写在线表格时,下拉菜单中也会发生这种情况 - 不过,如果您知道选项的放置顺序,您可以猜测并选择正确的选项。这意味着菜单可以正常工作,我可以与它交互,只是它无法正确呈现。

还请注意,屏幕截图中的关闭/最大化/最小化按钮未显示在标题栏中。它们也不会呈现,但仍然可以交互(单击红色圆圈仍会关闭应用程序,单击其左侧仍会最大化应用程序)。

终端输出:

user@hostname:~$ chromium
/home/user/snap/chromium/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/user/snap/chromium/common/.cache/gio-modules/libgiognomeproxy.so
/home/user/snap/chromium/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/user/snap/chromium/common/.cache/gio-modules/libgiognutls.so
/home/user/snap/chromium/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/user/snap/chromium/common/.cache/gio-modules/libdconfsettings.so
/home/user/snap/chromium/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/user/snap/chromium/common/.cache/gio-modules/libgiolibproxy.so

(chrome:3786): Gtk-WARNING **: 12:16:43.755: Theme parsing error: gtk.css:1418:23: 'font-feature-settings' is not a valid property name

(chrome:3786): Gtk-WARNING **: 12:16:43.764: Theme parsing error: gtk.css:3295:25: 'font-feature-settings' is not a valid property name

(chrome:3786): Gtk-WARNING **: 12:16:43.767: Theme parsing error: gtk.css:3757:23: 'font-feature-settings' is not a valid property name
GLib-GIO-Message: 12:16:44.395: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

(chrome:3786): dbind-WARNING **: 12:16:48.871: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-HZ2HAPt7gP: No such file or directory
[4047:4047:1207/121650.873694:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

(chrome:3786): Gtk-WARNING **: 12:16:51.024: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.024: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.024: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.026: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.026: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.027: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.027: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.715: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.715: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.716: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.716: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.717: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:51.717: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.495: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.495: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.495619:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.495645:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.496: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.496: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.496816:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.496834:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.497: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:54.497: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.497690:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121654.497707:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed
[3786:3906:1207/121658.508197:ERROR:udev_watcher.cc(98)] Failed to begin udev enumeration.

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:59.102: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:16:59.102: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121659.103178:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121659.103218:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed
[3786:4075:1207/121659.995153:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[3786:4075:1207/121659.995210:ERROR:chrome_browser_main_extra_parts_metrics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ended.
[3786:4075:1207/121659.995236:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[3786:4075:1207/121700.105437:ERROR:chrome_browser_main_extra_parts_metrics.cc(240)] crbug.com/1216328: Checking default browser status ended.

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.155: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.155: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.157: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.157: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.158: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.158: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.249: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.249: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.250: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.250: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.251: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.251: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.302: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.302: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.304: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.304: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.306: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.306: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.316: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.316: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.316495:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.316525:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.318: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.318: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.318658:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.318682:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.320: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.320: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.320938:ERROR:browser_main_loop.cc(269)] Gdk: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[3786:3786:1207/121701.320966:ERROR:browser_main_loop.cc(269)] Gtk: gtk_css_style_render_icon_surface: assertion 'surface != NULL' failed

(chrome:3786): GdkPixbuf-CRITICAL **: 12:17:01.336: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

我尝试使用铬的次数越多,最后几行重复了大约 20 次,并且出现的错误消息就越多。


我试过了snap revert chromium,但没有什么区别。

这样做了snap refresh,但问题仍然存在。


阅读我尝试在 Chromium 设置中禁用硬件加速,然后右键菜单已修复。我没有看到明显的性能损失,所以也许我可以保持原样。然而,系统标题栏图标仍然不显示

这是 Chromium 本身的问题吗?还是我的安装出了问题?我没有安装任何自定义主题 - 我使用默认的 Yaru 主题和暗黑模式(来自 Ubuntu 设置)。

另外,不确定这是否相关,但 Chromium 中的页面似乎从不尊重我系统上的暗黑模式设置。例如,如果我在 Firefox 上打开 github.com,它会以暗黑主题打开,但当我在 Chromium 中打开它时,它会以默认的白色主题打开。

答案1

没关系,他们在更新中修复了这个问题。右键单击菜单和系统标题栏的行为与预期一致(即使打开了硬件加速)。

编辑 - 问题在多次更新后仍然存在。Snap 在未经您同意的情况下进行了更新,因此我无法确定有多少次,但当我发布问题时,它已经存在了大约一周。无论如何,它现在已在 Snap 版本 97.0.4692.99 中得到修复

相关内容