twisted+gtk gui 很少崩溃

发布于 2024-10-02 08:20:31 字数 3078 浏览 4 评论 0原文

我正在将twisted 与gtk(和gtk2reactor)一起使用。我的应用程序以一种奇怪的方式崩溃。到目前为止,这已经是第二次以这种方式崩溃了。上一次是大约一个月前。这些是 Python 能够在我的日志文件中捕获的错误:

2010-11-12 05:23:10,497 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:823: SaveDC failed: The operation completed successfully.
2010-11-12 05:23:10,499 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,500 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:963: RestoreDC failed: The operation completed successfully.
2010-11-12 05:23:10,503 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,515 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkdrawable-win32.c:1259: LineTo failed: The operation completed successfully.
2010-11-12 05:23:10,515 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,519 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkdrawable-win32.c:1800: GetDC failed: The operation completed successfully.
2010-11-12 05:23:10,519 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,519 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:961: GetCurrentObject failed: The handle is invalid.
2010-11-12 05:23:10,520 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,522 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:963: RestoreDC failed: The handle is invalid.
2010-11-12 05:23:10,523 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,523 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: _gdk_win32_drawable_release_dc: assertion `impl->hdc_count > 0' failed
2010-11-12 05:23:10,523 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,522 DEBUG    BHGUIController: Received message
2010-11-12 05:23:39,762 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: PangoWarning: failed to create cairo scaled font, expect ugly output. the offending font is 'Segoe UI Bold 9'
2010-11-12 05:23:39,762 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,792 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkpixmap-win32.c:302: CreateDIBSection failed: The parameter is incorrect.
2010-11-12 05:23:39,792 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,792 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
2010-11-12 05:23:39,793 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,793 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: _gdk_drawable_ref_cairo_surface: assertion `GDK_IS_DRAWABLE (drawable)' failed
2010-11-12 05:23:39,795 ERROR    stderr:   gtk.main()

上次出现了一系列类似的错误,随后出现了分段错误。我不能确定这是同样的错误,但大致上是这样的。

我正在使用 Python 2.5.2、gtk 2.14.1、twisted 8.1.0 。

I'm using twisted with gtk (and gtk2reactor). My application crashes in a strange way. So far this is the second time it's crashed in this way. The previous time was about a month ago. These are the errors Python was able to capture in my log file:

2010-11-12 05:23:10,497 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:823: SaveDC failed: The operation completed successfully.
2010-11-12 05:23:10,499 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,500 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:963: RestoreDC failed: The operation completed successfully.
2010-11-12 05:23:10,503 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,515 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkdrawable-win32.c:1259: LineTo failed: The operation completed successfully.
2010-11-12 05:23:10,515 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,519 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkdrawable-win32.c:1800: GetDC failed: The operation completed successfully.
2010-11-12 05:23:10,519 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,519 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:961: GetCurrentObject failed: The handle is invalid.
2010-11-12 05:23:10,520 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,522 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkgc-win32.c:963: RestoreDC failed: The handle is invalid.
2010-11-12 05:23:10,523 ERROR    stderr:   gtk.main()
2010-11-12 05:23:10,523 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: _gdk_win32_drawable_release_dc: assertion `impl->hdc_count > 0' failed
2010-11-12 05:23:10,523 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,522 DEBUG    BHGUIController: Received message
2010-11-12 05:23:39,762 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: PangoWarning: failed to create cairo scaled font, expect ugly output. the offending font is 'Segoe UI Bold 9'
2010-11-12 05:23:39,762 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,792 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkpixmap-win32.c:302: CreateDIBSection failed: The parameter is incorrect.
2010-11-12 05:23:39,792 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,792 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: gdkpixmap-win32.c:114: DeleteObject failed: The operation completed successfully.
2010-11-12 05:23:39,793 ERROR    stderr:   gtk.main()
2010-11-12 05:23:39,793 ERROR    stderr: C:\Python25\lib\site-packages\twisted\internet\gtk2reactor.py:255: GtkWarning: _gdk_drawable_ref_cairo_surface: assertion `GDK_IS_DRAWABLE (drawable)' failed
2010-11-12 05:23:39,795 ERROR    stderr:   gtk.main()

Last time a similar series of errors appeared, followed by a segmentation fault. I can't be sure it was the same errors, but something along the lines.

I'm using Python 2.5.2, gtk 2.14.1, twisted 8.1.0 .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦途 2024-10-09 08:20:31

这些都是所涉及软件的非常旧的版本。请至少升级到 Python 2.6 和 Twisted 10.1。我不确定 GTK+ 在 Windows 上的状态如何,但我知道几年前有一些错误修复,所以你也应该尽可能升级。

These are all very old versions of the software involved. Please upgrade to at least Python 2.6 and Twisted 10.1. I am not sure what the status of GTK+ on Windows is, but I know that there were some bugfixes a couple of years ago, so you should upgrade that as much as possible too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文