页次: 1
selectFolder.glade文件,文件内容:
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="GtkFileChooserButton" id="filechooserbutton1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action">select-folder</property>
</object>
</child>
</object>
</interface>
以上是一个最小可重复的测试文件,可以用aur/glade3-gtk2 3.8.4-1打开,bug表现为只要点击按钮选择目录,则段错误。win上的gtk 2.24没这个问题,但arch上最近的几个gtk2 build我电脑上一直有这个问题。:(
弄成命令行的话,报错如下:
(Main:23720): Gtk-CRITICAL **: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
(Main:23720): GLib-GObject-WARNING **: gtype.c:4215: type id '0' is invalid
(Main:23720): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced
段错误(吐核)
各位可有线索?
离线
这个总算查清楚了。是 oxygen-gtk 的bug。
这里有暂时的解决方案 https://bugs.kde.org/show_bug.cgi?id=326424
咳,今天又遇到了这个bug:
Gtk:ERROR:gtkrbtree.c:465:_gtk_rbtree_insert_after: assertion failed: (_gtk_rbtree_is_nil (tree->root))
Aborted (core dumped)
一查,妈的去年就有人提交过。这GTK真tmd没救了。。。胸闷
离线
离线
页次: 1