2010-11-12 65 views
0

我正在使用與gtk(和gtk2reactor)扭曲。我的應用程序以一種奇怪的方式崩潰。到目前爲止,這是第二次以這種方式墜毀。前一次是大約一個月前。這些是Python能夠在我的日誌文件中捕獲的錯誤:扭曲+ gtk gui很少崩潰

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,扭曲8.1.0。

回答

1

這些都是涉及的軟件的所有非常舊的版本。請升級至少Python 2.6和Twisted 10.1。我不確定Windows上GTK +的狀態是什麼,但我知道幾年前有一些錯誤修正,所以你應該儘可能地升級它。

+0

我已經更新到Py 2.6,最新的Twisted和GTK。將看看問題是否重新出現。 – Claudiu 2010-12-06 19:08:45