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 785207 - (array length=length) and (out caller-allocates) not handled properly for return values
(array length=length) and (out caller-allocates) not handled properly for ret...
Status: RESOLVED OBSOLETE
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2017-07-21 06:07 UTC by andrew.g.r.holmes
Modified: 2018-01-27 12:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description andrew.g.r.holmes 2017-07-21 06:07:03 UTC
Calling GData.ContactsContact.get_photo() always results in the error:

Gjs-Message: JS ERROR: Unsupported type guint64 for (out caller-allocates)

I posted a related question on SO: https://stackoverflow.com/q/45227317/1108697

As I understand it there is an annotation error in the GIR for this package.
Comment 1 Philip Withnall 2017-07-31 11:34:50 UTC
get_photo() already has an (array length=length) annotation for its return value:

> * Return value: (transfer full) (array length=length): the image data, or %NULL; free with g_free()

So as far as I understand it, this is a GJS bug.
Comment 2 Philip Chimento 2017-07-31 13:53:45 UTC
Oh, I missed that it was on the return value. In that case, you're probably right.
Comment 3 GNOME Infrastructure Team 2018-01-27 12:04:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gjs/issues/106.