Page MenuHomePhabricator

SVG renderer only supports fixed-point values in gradientTransform
Open, Stalled, Needs TriagePublic

Description

https://commons.wikimedia.org/wiki/File:Crossed_swords.svg

I reverted it back-and-forth a bit. Reloaded the page, purged the page, makes no difference. I can't make either one of the two available versions show when it is the current revision. The initial version renders thumbnails, but not when I revert to that version. The cropped version never renders a thumbnail.

Technical background:

Event Timeline

500 error on the thumbnail:
https://upload.wikimedia.org/wikipedia/commons/thumb/archive/3/3d/20190201134717%21Crossed_swords.svg/120px-Crossed_swords.svg.png

Request from 212.178.66.253 via cp1090 cp1090, Varnish XID 56148839
Error: 500, Internal Server Error at Fri, 01 Feb 2019 15:11:16 GMT

The error seems from hyper precision in short form in the gradientTransform="matrix(2e-6 0 0 2e-6, which also Inkscape seems not to support (black rectangle). My Chrome simply ignore this element. So this seems not a SVG standard and so I suggest very low priority to fix. Interesting would be which tool the user had used.
Edit: I've never seen this problem before.

Perhelion renamed this task from SVG thumbnail only renders if the file isn't the current revision to SVG renderer only supports fixed-point values in gradientTransform.Feb 2 2019, 10:00 PM
Perhelion updated the task description. (Show Details)
AntiCompositeNumber added a project: Upstream.

librsvg 2.40.16 just outputs an empty file, but 2.48.4 has an error message:

$ RUST_BACKTRACE=full rsvg-convert -w 512 -f png -u -o 20190201134717!Crossed_swords.svg.png 20190201134717!Crossed_swords.svg
thread '<unnamed>' panicked at 'Cairo error "out of memory"', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/cairo-rs-0.8.1/src/enums.rs:274:13
stack backtrace:
   0:     0x7f8bb9dd44df - <unknown>
   1:     0x7f8bb9c38eec - <unknown>
   2:     0x7f8bb9dd39c6 - <unknown>
   3:     0x7f8bb9dd3610 - <unknown>
   4:     0x7f8bb9dd2dd6 - <unknown>
   5:     0x7f8bb9dd2978 - <unknown>
   6:     0x7f8bb9dd2920 - <unknown>
   7:     0x7f8bb9d693ce - <unknown>
   8:     0x7f8bb9d7413a - <unknown>
   9:     0x7f8bb9d48895 - <unknown>
  10:     0x7f8bb9d48653 - <unknown>
  11:     0x7f8bb9d46e79 - <unknown>
  12:     0x7f8bb9d47d66 - <unknown>
  13:     0x7f8bb9d80dd4 - <unknown>
  14:     0x7f8bb9d43629 - <unknown>
  15:     0x7f8bb9d80c3d - <unknown>
  16:     0x7f8bb9d48895 - <unknown>
  17:     0x7f8bb9d48653 - <unknown>
  18:     0x7f8bb9d46e79 - <unknown>
  19:     0x7f8bb9d47d66 - <unknown>
  20:     0x7f8bb9d80dd4 - <unknown>
  21:     0x7f8bb9d43629 - <unknown>
  22:     0x7f8bb9d80c3d - <unknown>
  23:     0x7f8bb9d48895 - <unknown>
  24:     0x7f8bb9d48653 - <unknown>
  25:     0x7f8bb9d46e79 - <unknown>
  26:     0x7f8bb9d47d66 - <unknown>
  27:     0x7f8bb9d65f6b - <unknown>
  28:     0x7f8bb9d43629 - <unknown>
  29:     0x7f8bb9d655cf - <unknown>
  30:     0x7f8bb9d48895 - <unknown>
  31:     0x7f8bb9d48653 - <unknown>
  32:     0x7f8bb9d46e79 - <unknown>
  33:     0x7f8bb9dcc1cf - <unknown>
  34:     0x7f8bb9dcbe8c - <unknown>
  35:     0x7f8bb9c1c209 - rsvg_rust_handle_render_cairo_sub
  36:     0x55c965a729af - <unknown>
  37:     0x7f8bb940d023 - __libc_start_main
  38:     0x55c965a737de - <unknown>
  39:                0x0 - <unknown>
fatal runtime error: failed to initiate panic, error 5
fish: “RUST_BACKTRACE=full rsvg-conver…” terminated by signal SIGABRT (Abort)

Reported upstream at https://gitlab.gnome.org/GNOME/librsvg/-/issues/600

JoKalliauer changed the task status from Open to Stalled.Jun 29 2021, 9:53 PM
JoKalliauer moved this task from Backlog to librsvg (upstream) on the Wikimedia-SVG-rendering board.