我几乎设法编写了我的简单 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 的东西,我什至没有在我的应用程序中使用。