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 317871 - error about 'art_render_gradient.c' when opening some files
error about 'art_render_gradient.c' when opening some files
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-03 21:14 UTC by Sebastien Bacher
Modified: 2005-10-10 15:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
CVS changes applied to 2.12.4 tarball (3.67 KB, patch)
2005-10-06 15:27 UTC, Sebastien Bacher
none Details | Review
This icon makes librsvg locks up hard. (6.61 KB, image/svg+xml)
2005-10-10 15:34 UTC, surak
  Details

Description Sebastien Bacher 2005-10-03 21:14:11 UTC
This bug has been opened here: 

"rsvg-view trashcan_empty.svg
rsvg-view: art_render_gradient.c:334: art_render_gradient_linear_render_8:
Assertion `ix > 0' failed.
Aborted

Attaching the file - the lib should not hang anyway
...
http://bugzilla.ubuntu.com/attachment.cgi?id=4304
This file produces this message

This file seems to break libsvg.

  • #13 __assert_fail
    from /lib/tls/i686/cmov/libc.so.6
  • #14 art_render_image_solid
    from /usr/lib/libart_lgpl_2.so.2
  • #15 art_render_invoke_callbacks
    from /usr/lib/libart_lgpl_2.so.2
  • #16 art_render_mask
    from /usr/lib/libart_lgpl_2.so.2
  • #17 art_svp_render_aa
    from /usr/lib/libart_lgpl_2.so.2
  • #18 art_render_mask
    from /usr/lib/libart_lgpl_2.so.2
  • #19 art_render_invoke
    from /usr/lib/libart_lgpl_2.so.2
  • #20 rsvg_art_affine_image
    from /usr/lib/librsvg-2.so.2
  • #21 rsvg_art_render_path
    from /usr/lib/librsvg-2.so.2
  • #22 rsvg_render_path
    from /usr/lib/librsvg-2.so.2
  • #23 rsvg_clip_path_parse
    from /usr/lib/librsvg-2.so.2
  • #24 rsvg_node_draw
    from /usr/lib/librsvg-2.so.2
  • #25 _rsvg_node_draw_children
    from /usr/lib/librsvg-2.so.2
  • #26 rsvg_node_draw
    from /usr/lib/librsvg-2.so.2
  • #27 rsvg_node_group_pack
    from /usr/lib/librsvg-2.so.2
  • #28 rsvg_node_draw
    from /usr/lib/librsvg-2.so.2
  • #29 rsvg_handle_get_pixbuf
    from /usr/lib/librsvg-2.so.2
  • #30 rsvg_pixbuf_from_data_with_size_data
    from /usr/lib/librsvg-2.so.2
  • #31 rsvg_pixbuf_from_file_at_zoom_with_max
    from /usr/lib/librsvg-2.so.2
  • #32 nautilus_self_check_icon_factory
    from /usr/lib/libnautilus-private.so.2
  • #33 nautilus_self_check_icon_factory
    from /usr/lib/libnautilus-private.so.2"

Comment 1 Sebastien Bacher 2005-10-03 21:17:07 UTC
that doesn't happen with librsvg 2.9.5 but with 2.12.0/2.12.4 according to the
submitter.

Debug backtrace from nautilus crashing:

  • #3 __assert_fail
    from /lib/tls/i686/cmov/libc.so.6
  • #4 art_render_image_solid
    from /usr/lib/libart_lgpl_2.so.2
  • #5 art_render_invoke_callbacks
    from /usr/lib/libart_lgpl_2.so.2
  • #6 art_render_mask
    from /usr/lib/libart_lgpl_2.so.2
  • #7 art_svp_render_aa
    from /usr/lib/libart_lgpl_2.so.2
  • #8 art_render_mask
    from /usr/lib/libart_lgpl_2.so.2
  • #9 art_render_invoke
    from /usr/lib/libart_lgpl_2.so.2
  • #10 rsvg_render_svp
    at rsvg-art-draw.c line 269
  • #11 rsvg_art_render_path
    at rsvg-art-draw.c line 369
  • #12 rsvg_render_path
    at rsvg.c line 1404
  • #13 rsvg_node_path_draw
    at rsvg-shapes.c line 62
  • #14 rsvg_node_draw
    at rsvg-structure.c line 46
  • #15 _rsvg_node_draw_children
    at rsvg-structure.c line 64
  • #16 rsvg_node_draw
    at rsvg-structure.c line 46
  • #17 rsvg_node_svg_draw
    at rsvg-structure.c line 280
  • #18 rsvg_node_draw
    at rsvg-structure.c line 46
  • #19 rsvg_handle_get_pixbuf
    at rsvg.c line 1310
  • #20 ??
    from /usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so
  • #21 ??

Comment 2 Caleb Moore 2005-10-04 00:22:59 UTC
Works fine with CVS HEAD
Comment 3 Caleb Moore 2005-10-04 00:27:50 UTC
No, actually, only works fine in HEAD if rendered without specifying width and
height.
Comment 4 Caleb Moore 2005-10-04 01:35:20 UTC
ok, found the problem, there were <text> tags in the gradients and Rsvg wasn't
handling it gracefully. 

All fixed now.
Comment 5 Dominic Lachowicz 2005-10-04 03:25:12 UTC
Caleb, would you please backport this to the 2.12.x branch if possible? Thanks.
Comment 6 Sebastien Bacher 2005-10-06 15:27:20 UTC
Created attachment 53119 [details] [review]
CVS changes applied to 2.12.4 tarball

That's the CVS changed applied to 2.12.4. I'm going to push that for Ubuntu
5.10, could anybody knowing the code let me know if that's correct? That fixes
the issue here...
Comment 7 Dominic Lachowicz 2005-10-06 17:03:59 UTC
patch applied to the gnome-2-12 branch. thanks seb!
Comment 8 Caleb Moore 2005-10-07 04:14:46 UTC
Yay, I didn't have to do it!
Comment 9 surak 2005-10-10 15:34:11 UTC
Created attachment 53298 [details]
This icon makes librsvg locks up hard.