OmeSatoFoundation / ome-doc

0 stars 5 forks source link

WSL2+Ubuntu20.04でsvgが変換されない #247

Open hogenimushi opened 1 year ago

hogenimushi commented 1 year ago

表題の環境でLuaLaTeXでsvg画像の変換がうまくいかない場合がありました。チュートリアルを受けたWindowsユーザはこの環境が推奨環境になりますので、何とか修正したいと思います。Dockerではタイプセットが通ります。Dockerで一度タイプセットした後にpdfのキャッシュを持っている状態でUbuntu on WSL2上でタイプセットした際も通ります。

WSLでないUbuntuでもチェックをしてみる予定です。

` (inkscape:2795): CRITICAL : 11:55:32.620: 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)))

Emergency save activated! Emergency save completed. Inkscape will close now. If you can reproduce this crash, please file a bug at https://inkscape.org/report with a detailed description of the steps leading to the crash, so we can fix it. ** Message: 11:55:32.620: Error: Inkscape encountered an internal error and will close now.

Aborted ! error: (file ./svg-inkscape/directory_arc_svg-raw.pdf) (pdf backend): readin g image file failed ! ==> Fatal error occurred, no output PDF file produced!llmk error: Fail running lualatex --shell-escape --cnf-line='TEXINPUTS=.;../texmf//;' "text03.tex" (exit code: 1) okuyama@host:~/tmp/ome-doc/03$ inkscape --version Inkscape 0.92.5 (2060ec1f9f, 2020-04-08)

hogenimushi commented 1 year ago

Ubuntu20.04でもエラーになりました。 ` (inkscape:3148241): CRITICAL : 16:57:23.041: 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)))

Emergency save activated! Emergency save completed. Inkscape will close now. If you can reproduce this crash, please file a bug at https://inkscape.org/report with a detailed description of the steps leading to the crash, so we can fix it. ** Message: 16:57:23.042: Error: Inkscape ???????????????????????

Aborted (core dumped) ! error: (file ./svg-inkscape/directory_arc_svg-raw.pdf) (pdf backend): readin g image file failed ! ==> Fatal error occurred, no output PDF file produced!llmk error: Fail running lualatex --shell-escape --cnf-line='TEXINPUTS=.;../texmf//;' "text03.tex" (exit code: 1) `

ip-arch commented 1 year ago

これと同じ問題な気がします。

https://gitlab.com/inkscape/inkscape/-/issues/1984