GNOME Bugzilla – Bug 687513
runtime crash: gtkstylecontext.c assertion failed
Last modified: 2012-11-03 17:37:40 UTC
Prior to this issue we were facing another one caused by python-gobject [1], which is seemingly already solved. Running nfoview now outputs: Gtk:ERROR:gtkstylecontext.c:1006:style_data_lookup: assertion failed: (priv->widget != NULL || priv->widget_path != NULL) Aborted This seems to come from 'import nfoview', and no debugger can pick up what's wrong since it exits the interpreter rather immediately upon import. Can be reproduced in as many desktop environments as has been tried. Would really appreciate some hints! gtk3 3.6.1 python 3.3.0 python-gobject 3.4.1.1 [1] https://bugs.archlinux.org/task/32034
Coincidentally I just had a test session on a fedora 18 live system, noticed this issue as well and fixed it. I'll try to release 1.11 tomorrow. commit 055d235d8a038468f3240e2c155c228cbaf95ee0 Author: Osmo Salomaa <otsaloma@iki.fi> Date: Sat Nov 3 19:26:24 2012 +0200 Show widgets before acquiring a style context. This fixes a crash with newer versions of PyGObject and/or GTK+. Note that the helper widgets are not actually shown on screen, since they don't have a parent window, but calling 'show' finalizes something that allows one to get a style context. https://bugzilla.gnome.org/show_bug.cgi?id=687513 Also, use Python attributes instead of 'get_data' and 'set_data', which are deprecated. https://github.com/otsaloma/nfoview/commit/055d235d8a038468f3240e2c155c228cbaf95ee0