命令行中的gtk gtk警告和错误


77

在最新版本的Ubuntu(11.10)中,当我从命令行运行时,每次打开窗口时,Gtk都会大声抱怨(多行)。问题显然与主题有关-如果我将默认设置从更改为Ambiance,则High-Contrast此设置将消失。一些例子:

travis@hydrogen:~$ emacs foo.txt
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

travis@hydrogen:~$ evince test.pdf 
(evince:1566): GLib-GObject-WARNING **: g_object_set_valist: construct property "enable-gestures" for object `EvView' can't be set after construction
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed

我喜欢这些主题,但不想与他们分开。如何从Gtk修复命令行详细程度?我可以简单地破解命令行以过滤掉这些消息,但是我真的不喜欢这个想法。

可能相关

从以前的版本:如何摆脱奇怪的错误行...

Answers:


107

这些Unable to locate theme engine in module_path: "pixmap"消息是一个已知的错误

要修复它,请安装gtk2-engines-pixbuf 安装gtk2-engines-pixbuf软件包

运行Evince时得到的警告是一个单独的错误。据我所知,目前还没有解决方案。


2
该错误似乎仅是从证据中引用的第一个警告,而不是gdk_window_get_pointer断言失败。
dutchie 2012年

@dutchie,是的。手势警告已连接到 错误873866
poolie 2012年

5
如果您使用的是64位系统,但使用产生这些警告的32位软件,则可以尝试:sudo apt-get install gtk2-engines-pixbuf:i386
数学

1
gtk2-engines-pixbuf在Trusty中具有未满足的依赖性。“ gtk2-engines-pixbuf:取决于:libgtk2.0-0(= 2.24.23-0ubuntu1)但要安装2.24.23-0ubuntu1.1”如何在14.04上修复该错误?
2014年

对我来说,这对于IntelliJ Idea很有帮助。
Ajeeb.KP
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.