jakesylvestre / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
1 stars 7 forks source link

Crash after closing all game tabs and starting a new one #649

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From a fresh start:
1. Start a new game.
2. Immediately close it.
3. Start another new game.
Pychess crashes instantly after step 3, every time.
I'm using version 7c9d58a6dec6 (Jan 30) from hg.

In more detail, I hit ctrl+N, enter, ctrl+W, ctrl+N, enter.
You can vary the procedure a lot, and the game type doesn't seem to matter. But 
closing the last game tab (and going back to the welcome screen) destabilizes 
pychess, so that the next new game will kill it.

Terminal ouput (and its timing) follows. The log file doesn't give any more 
hints.

[When the program starts]
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
/usr/local/lib/python2.6/dist-packages/pychess/System/uistuff.py:438: 
GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is 
deprecated
  self.glade = gtk.glade.XML(addDataPrefix("glade/%s" % filename))

[After starting the first game]
10:33:16 Default Warning: Chatpanel loaded with two local players

[After closing it -- NOT the cause; it happens after I close any game tab]
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamenanny.py", line 159, in game_ended
    gmwidg.showMessage(md)
  File "/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py", line 260, in showMessage
    message, separator, hbuttonbox = messageDialog.child.get_children()
ValueError: need more than 2 values to unpack

[After trying to start a new game]

/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:349: 
GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  centerVBox.pack_start(notebooks["messageArea"], expand=False)
/usr/local/lib/python2.6/dist-packages/pychess/widgets/pydock/PyDockLeaf.py:62: 
GtkWarning: Can't set a parent on widget which has a parent

  self.book.append_page(widget, title)
/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:449: 
GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  centerVBox.pack_start(notebooks["statusbar"], expand=False)
/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:451: 
GtkWarning: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || 
GTK_IS_INVISIBLE (widget)' failed
  centerVBox.show_all()
/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:451: 
GtkWarning: gdk_window_invalidate_rect_full: assertion `GDK_IS_WINDOW (window)' 
failed
  centerVBox.show_all()
/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:496: 
GtkWarning: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || 
GTK_IS_INVISIBLE (widget)' failed
  notebooks[panel.__name__].append_page(instance)
/usr/local/lib/python2.6/dist-packages/pychess/widgets/gamewidget.py:496: 
GtkWarning: gdk_window_show_internal: assertion `GDK_IS_WINDOW (window)' failed
  notebooks[panel.__name__].append_page(instance)
**
Gtk:ERROR:/build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:8828:gtk_widget_real_map:
 assertion failed: (gtk_widget_get_realized (widget))
Aborted

Original issue reported on code.google.com by Uncombed...@gmail.com on 6 Mar 2011 at 6:36

GoogleCodeExporter commented 9 years ago
I can't reproduce it, using newest hg, and starting new games against either 
Human or PyChess.

Original comment by lobais on 10 Mar 2011 at 12:50

GoogleCodeExporter commented 9 years ago
I can't reproduce it anymore either. That's confusing, but it's good news. :)

Original comment by Uncombed...@gmail.com on 10 Mar 2011 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by Uncombed...@gmail.com on 13 Mar 2011 at 12:32