我几乎设法编写了我的简单的torrent客户端,但是又出现了一些可怕的问题
这是代码的链接:
http://pastebin.com/Jyzrm0Vc
当我打开这个应用程序,有时它运行正常,但经常我收到这样的错误:
(python:8149): Gtk-CRITICAL **: IA__gtk_widget_get_visible: assertion `GTK_IS_WIDGET (widget)' failed
(python:8149): Gtk-CRITICAL **: gtk_tree_model_filter_iter_next: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
(python:8149): Gtk-CRITICAL **: /build/buildd/gtk+2.0-2.24.17/gtk/gtktreeview.c:6305 (do_validate_rows): assertion `gtk_tree_model_iter_next (tree_view->priv->model, &iter)' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
或者像这样:
(python:8131): Gtk-CRITICAL **: IA__gtk_widget_get_visible: assertion `GTK_IS_WIDGET (widget)' failed
或者这个:
Xlib: sequence lost (0x1032d > 0x338) in reply type 0x1c!
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
我怀疑Qt线程有问题,但不知道如何解决这个问题。 让我感到惊讶的是 - 这些错误是关于GTK的一些东西,我在我的应用程序中甚至没有使用它。
答案 0 :(得分:0)
你在运行哪个操作系统?如果它是基于ubuntu或ubuntu的,或者os使用的shell是使用GTK编写的,则这种错误在所有应用程序中都很常见。只要您的应用程序正常运行,您就可以放心地忽略它们。