一次 QtCreator 自动退出意外 的解决

系统:Ubuntu10.10
版本:QtCreator 4.7 qt-sdk-linux-x86-opensource-2010.05.1.bin
症状:打开qtcreator,点击【Create Project...】程序自动退出,当然这一个操作会导致Creator自动退出,前几天尝试过重新装一遍QtCreator,但是问题依旧。这里有一个临时办法,就是以root权限运行qtcreator,这样做不会发生自动退出,但只是临时解决方法。尝试在Terminal下打开qtcreator,因为这样能记录下错误,:)。

 kelvin@kelvinpc:~$ /home/kelvin/programs/qtsdk-2010.05/bin/qtcreator

路径部分请更改为相对应的安装路径。回车执行。

这样QtCreator打开后点击【Create Project...】程序自动退出,回到Terminal,报错如下:

(:6401): GdkPixbuf-WARNING **: Bug! loader 'png' didn't set an error on failure
(:6401): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock: 内部错误:图像载入模块“png”完成某操作失败,但没有给出任何原因
(:6401): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** (:6401): CRITICAL **: equinox_style_draw_render_icon: assertion `base_pixbuf != NULL' failed
(:6401): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
(:6401): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `GDK_IS_PIXBUF (pixbuf)' failed
(:6401): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed
(:6401): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
段错误
kelvin@kelvinpc:~$ /home/kelvin/programs/qtsdk-2010.05/bin/qtcreator
(:6494): GdkPixbuf-WARNING **: Bug! loader 'png' didn't set an error on failure
(:6494): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock: 内部错误:图像载入模块“png”完成某操作失败,但没有给出任何原因
(:6494): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** (:6494): CRITICAL **: equinox_style_draw_render_icon: assertion `base_pixbuf != NULL' failed
(:6494): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
(:6494): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `GDK_IS_PIXBUF (pixbuf)' failed
(:6494): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed
(:6494): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
段错误

这里Google了下Bug! loader 'png' didn't set an error on failure这个关键词,找到了这个帖子,看到解决方法后我意识到这个问题可能是安装了第三方主题引起的。

 

切换回原始主题,问题果然没有了,看来问题就出在这里。使用原帖作者的解决方案,问题解决!

具体步骤如下:

sudo update-mime /usr/share/mime/
sudo update-mime-database /usr/share/mime/
sudo gtk-update-icon-cache /home/kelvin/.icons/Faenza

#第三条命令中加粗的部分请自行更改成主题图标的对应目录,btw,.icons这个目录是隐藏目录,文件管理器中要选择 【查看】-【显示隐藏文件夹】才可以看到.



关于 McKelvin

a hacker who's interested in `music computing` and `network security`.
此条目发表在 Work 分类目录,贴了 , 标签。将固定链接加入收藏夹。