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 750347 - User data is passed to a callback multiple times
User data is passed to a callback multiple times
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-03 14:48 UTC by Garrett Regier
Modified: 2015-09-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Prevent passing the user data multiple times to callbacks (3.23 KB, patch)
2015-06-03 14:52 UTC, Garrett Regier
committed Details | Review

Description Garrett Regier 2015-06-03 14:48:49 UTC
This can happen when a callback has multiple gpointers and is rather confusing to debug what is going on.
Comment 1 Garrett Regier 2015-06-03 14:52:36 UTC
Created attachment 304525 [details] [review]
Prevent passing the user data multiple times to callbacks

This can happen when a callback has multiple gpointers.
Also, store the closure index as it is hopefully more reliable
than guessing.


This was probably done this way originally because GI doesn't guess very well at all. However, the patches for bug 749785 improve the situation quite a bit.
Comment 2 Garrett Regier 2015-09-22 21:47:13 UTC
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.