GNOME Bugzilla – Bug 612136
Cannot cast a char* to a void*
Last modified: 2015-06-23 14:11:49 UTC
Created attachment 155501 [details] Use case of Soup.Buffer.data being used as a void* data parameter for a Gio.MemoryInputStream consctructor While trying to fetch image data from libsoup and feed it into a GMemoryInputStream constructor so that I can construct a Pixbuf object (see file attached) with it I'm getting this error: (seed:3988): GLib-GIO-CRITICAL **: g_memory_input_stream_add_data: assertion `data != NULL' failed (seed:3988): GLib-GIO-CRITICAL **: g_memory_input_stream_add_data: assertion `data != NULL' failed (seed:3988): GLib-GIO-CRITICAL **: g_memory_input_stream_add_data: assertion `data != NULL' failed My guess is that while casting it's just setting the casted value to null because seed doesn't support this? Any suggestions for workarounds would be welcome :-)
This should be fixed in git - the type is void*, previously it did not try and use the string version of the data.. http://git.gnome.org/browse/seed/commit/?id=fb55efd88b03fd51510232e505233c309a16146e
Technically this is a gobject instrospection issue, data should be of type binary array. Which they have yet to implement a solution for.
Ping?
yes, just tested the example code with the latest version - seems to work - except twitter broke the api ;)