1

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

4

1 回答 1

0

您正在运行哪个操作系统?如果它是基于 ubuntu 或 ubuntu 的,或者操作系统使用的 shell 是使用 GTK 编写的,则此类错误在所有应用程序中都很常见。只要您的应用程序正常运行,您就可以放心地忽略它们。

于 2013-05-29T09:41:42.093 回答