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 658288 - calling Notify.Notification.add_action via introspection aborts Python
calling Notify.Notification.add_action via introspection aborts Python
Status: RESOLVED FIXED
Product: libnotify
Classification: Platform
Component: general
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: libnotify-maint
libnotify-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-05 19:20 UTC by Ben Liblit
Modified: 2014-01-08 17:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben Liblit 2011-09-05 19:20:15 UTC
The following fragment of Python code attempts to add a notification action, but aborts the Python engine with an assertion failure in the Notify.Notification.add_action call:

    from gi.repository import Notify

    Notify.init('Bug Demonstration')

    def callback(*args):
        pass

    note = Notify.Notification()
    note.add_action('action', 'Label', callback, None, None)    # abort here

The assertion failure prints the following diagnostic output:

    **
    ERROR:pygi-argument.c:1021:_pygi_argument_from_object: code should not be
    reached

Bug 635169 comment #1 briefly mentions this same problem.   Although that bug was eventually mark resolved/fixed, it seems that this particular problem has still not been addressed.

I'm working on a Fedora 15 system with the following possibly-relevant packages
installed:

    gobject-introspection-0.10.8-1.fc15.i686
    libffi-3.0.9-2.fc15.i686
    libnotify-0.7.3-1.fc15.i686
    pygobject2-2.28.6-1.fc15.i686
Comment 1 Ben Liblit 2012-01-11 23:03:36 UTC
It seems this may have been fixed.  I am no longer able to reproduce the problem on a Fedora 16 system with:

    gobject-introspection-1.30.0-1.fc16.i686
    libffi-3.0.10-1.fc16.i686
    libnotify-0.7.4-1.fc16.i686
    pygobject2-2.28.6-2.fc16.i686

Should I mark this as RESOLVED?
Comment 2 André Klapper 2012-04-04 10:39:27 UTC
Mass-fixing incorrect Default Assignee and QA contact scheme for libnotify so interested people can follow its development. (See 606365#c1 for ref.)
Comment 3 Simon Feltman 2014-01-08 17:55:24 UTC
Verified this now works.