Re: memorder: SVG figures incompatible with Ubuntu 20.04's Inkscape

"Paul E. McKenney" <[email protected]> Sun, 11 Feb 2024 15:48:03 -0800
Newsgroups org.kernel.vger.perfbook
Message-ID <d849b105-a899-4679-90b2-5e655bfabd96@paulmck-laptop>
On Mon, Feb 12, 2024 at 08:30:49AM +0900, Akira Yokosawa wrote:
> Hi Paul,
> 
> I just did a test build under Ubuntu 20.04.
> 
> Inkscape 0.92.5 crashes with new SVG figures memorder/*-hopes.svg.
> 
> $ inkscape --export-pdf=/tmp/test.pdf memorder/co-hopes.svg
> [usual warnings ...]
> 
> ** (inkscape:9): CRITICAL **: 23:17:05.340: void Inkscape::Extension::Internal::CairoRenderContext::_setFillStyle(const SPStyle*, const Geom::OptRect&): assertion '!style->fill.set || style->fill.isColor() || style->fill.isPaintserver()' failed
> **
> ERROR:/build/inkscape-QIwD1g/inkscape-0.92.5/src/extension/internal/cairo-render-context.cpp:1422:void Inkscape::Extension::Internal::CairoRenderContext::_setStrokeStyle(const SPStyle*, const Geom::OptRect&): assertion failed: (style->stroke.isPaintserver() || SP_IS_GRADIENT(SP_STYLE_STROKE_SERVER(style)) || SP_IS_PATTERN(SP_STYLE_STROKE_SERVER(style)) || dynamic_cast<SPHatch *>(SP_STYLE_STROKE_SERVER(style)))
> Bail out! ERROR:/build/inkscape-QIwD1g/inkscape-0.92.5/src/extension/internal/cairo-render-context.cpp:1422:void Inkscape::Extension::Internal::CairoRenderContext::_setStrokeStyle(const SPStyle*, const Geom::OptRect&): assertion failed: (style->stroke.isPaintserver() || SP_IS_GRADIENT(SP_STYLE_STROKE_SERVER(style)) || SP_IS_PATTERN(SP_STYLE_STROKE_SERVER(style)) || dynamic_cast<SPHatch *>(SP_STYLE_STROKE_SERVER(style)))
> 
> [...]
> 
> 
> It looks like those SVG figures are generated from dot, and you
> added x-axis and y labels to it.
> 
> Can you share the dot scripts you used?
> 
> Hopefully, Ubuntu 20.04's dot might generate SVGs compatible with
> the old inkscape.

I generated them using Ubuntu 22.04 inkscape:

	$ inkscape --version
	Inkscape 1.1.2 (0a00cf5339, 2022-02-04)

But weren't we having trouble with this combination earlier, back when
I was on Ubuntu 20.04?  Now if I can remember what we did about it...  ;-)

							Thanx, Paul