After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687513 - (crash) runtime crash: gtkstylecontext.c assertion failed
(crash)
runtime crash: gtkstylecontext.c assertion failed
Status: RESOLVED FIXED
Product: nfoview
Classification: Other
Component: general
1.10
Other Linux
: Normal normal
: ---
Assigned To: nfoview-maint
nfoview-maint
Depends on:
Blocks:
 
 
Reported: 2012-11-03 15:29 UTC by Ray Rashif
Modified: 2012-11-03 17:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ray Rashif 2012-11-03 15:29:49 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
Comment 1 Osmo Salomaa 2012-11-03 17:37:40 UTC
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