Bug#886833: [gweled] Not compatable with recent gtk

Stephen Kitt skitt at debian.org
Mon Feb 5 08:51:08 UTC 2018


Control: reassign -1 librsvg2-2
Control: affects -1 gweled
Control: retitle -1 rsvg_pixbuf_from_file_at_size broken in recent librsvg2-2

Dear Gtk/GNOME maintainers,

It looks like rsvg_acquire_file_data()’s recent switch to
g_file_new_for_uri() broke acquisition for rsvg_pixbuf_from_file_at_size()
(which admittedly is deprecated, but shouldn’t break).

gweled loads its SVGs by building a full path, and calling
rsvg_pixbuf_from_file_at_size(). This used to work fine, but breaks with
librsvg2-2 2.40.20. Tracing through the load shows that the operation which
fails is g_file_new_for_uri(). rsvg_pixbuf_from_file_at_size() itself calls
rsvg_pixbuf_from_file_with_size_data(), which duplicates the provided
filename as a URI (!) and calls _rsvg_io_acquire_data(), which tries
rsvg_acquire_file_data() since the provided URI doesn’t start with “data:”.
The latter now calls g_new_file_from_uri() which fails to construct a usable
GFile since the provided name isn’t a URI...

This can be fixed from gweled by prepending “file:/”, but that seems like a
brittle fix since rsvg_pixbuf_from_file_at_size() supposedly expects a
filename — although providing a URI also works fine in librsvg2-2 2.40.16 so
who knows.

Regards,

Stephen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20180205/bba17cd6/attachment.sig>


More information about the Pkg-games-devel mailing list