mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 12 forks source link

Non-stopping 'file has changed' #19

Closed rzippo closed 4 years ago

rzippo commented 4 years ago

First of all, thanks for your work.

I am having issues with a project that stopped working, after a month from the last build and with no changes in-between. Given the error log and the timing of your last update, I guess it is this package to be the source of the problem.

Environment

I edit my sources (.tex and .svg files) on Windows, but run the building process on docker. I use this VS Code extension and this docker image. Note that to do this, the project folder is mounted with docker run -v, but the files are still hosted on Windows. The tools used are latexmk and LuaTex.

Error

The build fails with error: (pdf inclusion): file has changed on a _svg-raw.pdf file. This happens at each new attempt, even if the file was already correctly converted and present in the svg-inkscape folder when building started.

I have verified this in two different Windows PCs; both are instead able to build other documents which do not use the svg package, using the same setup. I also verified that the same setup hosted on an Ubuntu machine successfully builds.

I was unable to try the setup with a precedent version of this package, since CTAN hosts only the latest one. So, while I think the error may be related to detecting updates to a file hosted under Windows, I cannot say if this is due svg or Docker Desktop, which also got an update recently (version 2.2). My guess is on the former since only svg file conversions are affected in my case.

mrpiggi commented 4 years ago

Hi, without a MWE meaning a pure LaTeX file and the corresponding log file it's quite impossible for me to do any testing in order to explore the possible error. I am not willing to use your complete development environment as this is outside the scope of the package. Nevertheless, if you would provide a minimal file producing this error, I will see what I can do.

BTW: The file name svg-raw.pdf seems a little strange as package svg should generate either <imagename>_svg-raw.pdf or <imagename>_svg-tex.pdf.

If you want to try out a previous version of package svg just try to use one of https://github.com/mrpiggi/svg/releases and copy the .sty files into your project folder.

Running latexmk -lualatex -latexoption="-shell-escape" issue19 with the following example works as expected, at least on Windows. The used graphic svg-example.svg can be found under texmf-dist/doc/latex/svg or at CTAN.

% latexmk -lualatex -latexoption="-shell-escape" issue19
\listfiles
\documentclass{article}
\usepackage{iftex}
\iftutex
  \usepackage{fontspec}
\else
  \usepackage[T1]{fontenc}
  \usepackage[ngerman=ngerman-x-latest]{hyphsubst}
\fi
\usepackage{svg}

\begin{document}
\includesvg[latex=false]{svg-example.svg}
\includesvg{svg-example.svg}
\end{document}
rzippo commented 4 years ago

The file name svg-raw.pdf seems a little strange as package svg should generate either _svg-raw.pdf or _svg-tex.pdf.

That is what I meant, sorry if it was confusing.

If you want to try out a previous version of package svg just try to use one of https://github.com/mrpiggi/svg/releases and copy the .sty files into your project folder.

Does this make the local version to be used in place of the CTAN version?

mrpiggi commented 4 years ago

Does this make the local version to be used in place of the CTAN version?

Yes, but this would just be a temporary workaround. Let me know, if this solves your problem.

rzippo commented 4 years ago

I used your example to run some tests, adding only random characters to force rebuild.

The first attempt with the latest version worked, giving the following log

Clean run version 2.02e ``` PS C:\GitHubDocs\svgRegressionTest> docker run -i --rm -w /data -v "c:\GitHubDocs\svgRegressionTest:/data" danteev/texlive latexmk --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -pdf -lualatex -f -outdir="./" "test.tex" Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67. Rule 'lualatex': The following rules & subrules became out-of-date: 'lualatex' ------------ Run number 1 of rule 'lualatex' ------------ ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ Latexmk: applying rule 'lualatex'... This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 0.150 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/share/texlive/texmf-dist/tex/latex/svg/svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]Failed to get connection ** (inkscape:14): CRITICAL **: 14:56:05.791: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:14): CRITICAL **: 14:56:05.791: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:14): CRITICAL **: 14:56:05.791: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed Failed to get connection ** (inkscape:31): CRITICAL **: 14:56:06.160: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:31): CRITICAL **: 14:56:06.160: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:31): CRITICAL **: 14:56:06.160: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] Package transparent Warning: Rerun to get transparencies right. [2<./svg-inkscape/svg-example_svg-raw.pdf .//test.tex:23: error: (pdf inclusion): file has changed './svg-inkscape/svg-e xample_svg-raw.pdf' .//test.tex:23: ==> Fatal error occurred, no output PDF file produced!Latexmk: fls file doesn't appear to have been made. Latexmk: References changed. Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Rule 'lualatex': File changes, etc: Changed files, or newly in use since previous run(s): 'test.aux' ------------ Run number 2 of rule 'lualatex' ------------ === TeX engine is 'LuaTeX' Latexmk: applying rule 'lualatex'... ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 0.149 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/share/texlive/texmf-dist/tex/latex/svg/svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] [2<./svg-inkscape/svg-example_svg-raw.pdf><./svg-inkscape/svg-example_svg-tex.p df><./svg-inkscape/svg-example_svg-tex.pdf><./svg-inkscape/svg-example_svg-tex. pdf><./svg-inkscape/svg-example_svg-tex.pdf><./svg-inkscape/svg-example_svg-tex .pdf><./svg-inkscape/svg-example_svg-tex.pdf>] (.//test.aux) *File List* article.cls 2019/10/25 v1.4k Standard LaTeX document class size10.clo 2019/10/25 v1.4k Standard LaTeX file (size option) iftex.sty 2019/11/07 v1.0c TeX engine tests fontspec.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX xparse.sty 2019-10-11 L3 Experimental document command parser expl3.sty 2019-11-07 L3 programming layer (loader) expl3-code.tex 2019-11-07 L3 programming layer l3deprecation.def 2019-04-06 v L3 Deprecated functions l3backend-pdfmode.def 2019-04-06 L3 backend support: PDF mode fontspec-luatex.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX fontenc.sty tuenc.def 2018/08/11 v2.0j Standard LaTeX file fontspec.cfg svg.sty 2019/10/22 v2.02d (include SVG pictures) scrbase.sty 2019/10/12 v3.27 KOMA-Script package (KOMA-Script-independent b asics and keyval usage) keyval.sty 2014/10/28 v1.15 key=value parser (DPC) scrlfile.sty 2019/10/12 v3.27 KOMA-Script package (loading files) ifpdf.sty 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead. ifluatex.sty 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead. ifxetex.sty 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead. pdftexcmds.sty 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO) infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO) ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) shellesc.sty 2019/11/08 v1.0c unified shell escape interface for LaTeX trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR) trig.sty 2016/01/03 v1.10 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration luatex.def 2018/01/08 v1.0l Graphics/color driver for luatex ifplatform.sty 2017/10/13 v0.4a Testing for the operating system catchfile.sty 2016/05/16 v1.7 Catch the contents of a file (HO) etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) "test.w18" xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration transparent.sty 2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO) auxhook.sty 2016/05/16 v1.4 Hooks for auxiliary files (HO) supp-pdf.mkii epstopdf-base.sty 2019-11-30 v2.9 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live ./svg-inkscape/svg-example_svg-raw.pdf ./svg-inkscape/svg-example_svg-tex.pdf_tex ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf *********** LaTeX Warning: There were undefined references. ) (see the transcript file for additional information) 410 words of node memory still in use: 3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec , 5 attribute_list, 1 write nodes avail lists: 2:549,3:74,4:88,5:166,6:7,7:1018,8:15,9:529,10:6,11:18 Output written on test.pdf (2 pages, 107646 bytes). SyncTeX written on test.synctex.gz. Transcript written on test.log. Latexmk: fls file doesn't appear to have been made. Latexmk: Log file says output to 'test.pdf' Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Latexmk: Summary of warnings from last run of (pdf)latex: Latex failed to resolve 2 reference(s) === TeX engine is 'LuaTeX' Latexmk: All targets () are up-to-date ```

However, running again the same build, it failed

Second run version 2.02e ``` PS C:\GitHubDocs\svgRegressionTest> docker run -i --rm -w /data -v "c:\GitHubDocs\svgRegressionTest:/data" danteev/texlive latexmk --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -pdf -lualatex -f -outdir="./" "test.tex" Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67. Rule 'lualatex': File changes, etc: Changed files, or newly in use since previous run(s): 'test.tex' ------------ Run number 1 of rule 'lualatex' ------------ Latexmk: applying rule 'lualatex'... ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 0.159 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/share/texlive/texmf-dist/tex/latex/svg/svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] Package transparent Warning: Rerun to get transparencies right. [2<./svg-inkscape/svg-example_svg-raw.pdf .//test.tex:23: error: (pdf inclusion): file has changed './svg-inkscape/svg-e xample_svg-raw.pdf' .//test.tex:23: ==> Fatal error occurred, no output PDF file produced!Latexmk: fls file doesn't appear to have been made. Latexmk: References changed. Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Failure to make 'test.pdf' Latexmk: Summary of warnings from last run of (pdf)latex: Latex failed to resolve 2 reference(s) === TeX engine is 'LuaTeX' Latexmk: Errors, in force_mode: so I tried finishing targets Collected error summary (may duplicate other messages): lualatex: Command for 'lualatex' gave return code 1 Refer to 'test.log' for details ---------------------- This message may duplicate earlier message. Latexmk: Failure in processing file 'test.tex': (Pdf)LaTeX didn't generate the expected log file 'test.log' ---------------------- ```

I tried the same with version 2.02d, and got the same behavior.

Clean run version 2.02d ``` PS C:\GitHubDocs\svgRegressionTest> docker run -i --rm -w /data -v "c:\GitHubDocs\svgRegressionTest:/data" danteev/texlive latexmk --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -pdf -lualatex -f -outdir="./" "test.tex" Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67. Rule 'lualatex': The following rules & subrules became out-of-date: 'lualatex' ------------ Run number 1 of rule 'lualatex' ------------ ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ Latexmk: applying rule 'lualatex'... This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 0.152 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (.//svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]Failed to get connection ** (inkscape:14): CRITICAL **: 15:01:19.417: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:14): CRITICAL **: 15:01:19.417: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:14): CRITICAL **: 15:01:19.417: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed Failed to get connection ** (inkscape:31): CRITICAL **: 15:01:19.791: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:31): CRITICAL **: 15:01:19.791: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:31): CRITICAL **: 15:01:19.791: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] Package transparent Warning: Rerun to get transparencies right. [2<./svg-inkscape/svg-example_svg-raw.pdf .//test.tex:23: error: (pdf inclusion): file has changed './svg-inkscape/svg-e xample_svg-raw.pdf' .//test.tex:23: ==> Fatal error occurred, no output PDF file produced!Latexmk: fls file doesn't appear to have been made. Latexmk: References changed. Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Rule 'lualatex': File changes, etc: Changed files, or newly in use since previous run(s): 'test.aux' ------------ Run number 2 of rule 'lualatex' ------------ ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ === TeX engine is 'LuaTeX' Latexmk: applying rule 'lualatex'... This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 0.147 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (.//svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] [2<./svg-inkscape/svg-example_svg-raw.pdf><./svg-inkscape/svg-example_svg-tex.p df><./svg-inkscape/svg-example_svg-tex.pdf><./svg-inkscape/svg-example_svg-tex. pdf><./svg-inkscape/svg-example_svg-tex.pdf><./svg-inkscape/svg-example_svg-tex .pdf><./svg-inkscape/svg-example_svg-tex.pdf>] (.//test.aux) *File List* article.cls 2019/10/25 v1.4k Standard LaTeX document class size10.clo 2019/10/25 v1.4k Standard LaTeX file (size option) iftex.sty 2019/11/07 v1.0c TeX engine tests fontspec.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX xparse.sty 2019-10-11 L3 Experimental document command parser expl3.sty 2019-11-07 L3 programming layer (loader) expl3-code.tex 2019-11-07 L3 programming layer l3deprecation.def 2019-04-06 v L3 Deprecated functions l3backend-pdfmode.def 2019-04-06 L3 backend support: PDF mode fontspec-luatex.sty 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX fontenc.sty tuenc.def 2018/08/11 v2.0j Standard LaTeX file fontspec.cfg svg.sty 2019/10/22 v2.02d (include SVG pictures) scrbase.sty 2019/10/12 v3.27 KOMA-Script package (KOMA-Script-independent b asics and keyval usage) keyval.sty 2014/10/28 v1.15 key=value parser (DPC) scrlfile.sty 2019/10/12 v3.27 KOMA-Script package (loading files) ifpdf.sty 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead. ifluatex.sty 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead. ifxetex.sty 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead. pdftexcmds.sty 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO) infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO) ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) shellesc.sty 2019/11/08 v1.0c unified shell escape interface for LaTeX trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR) trig.sty 2016/01/03 v1.10 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration luatex.def 2018/01/08 v1.0l Graphics/color driver for luatex ifplatform.sty 2017/10/13 v0.4a Testing for the operating system catchfile.sty 2016/05/16 v1.7 Catch the contents of a file (HO) etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) "test.w18" xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration transparent.sty 2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO) auxhook.sty 2016/05/16 v1.4 Hooks for auxiliary files (HO) supp-pdf.mkii epstopdf-base.sty 2019-11-30 v2.9 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live ./svg-inkscape/svg-example_svg-raw.pdf ./svg-inkscape/svg-example_svg-tex.pdf_tex ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf ./svg-inkscape/svg-example_svg-tex.pdf *********** LaTeX Warning: There were undefined references. ) (see the transcript file for additional information) 410 words of node memory still in use: 3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec , 5 attribute_list, 1 write nodes avail lists: 2:549,3:74,4:88,5:166,6:7,7:1018,8:15,9:529,10:6,11:18 Output written on test.pdf (2 pages, 107646 bytes). SyncTeX written on test.synctex.gz. Transcript written on test.log. Latexmk: fls file doesn't appear to have been made. Latexmk: Log file says output to 'test.pdf' Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Latexmk: Summary of warnings from last run of (pdf)latex: Latex failed to resolve 2 reference(s) === TeX engine is 'LuaTeX' Latexmk: All targets () are up-to-date ```
Second run version 2.02d ``` PS C:\GitHubDocs\svgRegressionTest> docker run -i --rm -w /data -v "c:\GitHubDocs\svgRegressionTest:/data" danteev/texlive latexmk --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -pdf -lualatex -f -outdir="./" "test.tex" Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67. Rule 'lualatex': File changes, etc: Changed files, or newly in use since previous run(s): 'test.tex' ------------ Run number 1 of rule 'lualatex' ------------ ------------ Running 'lualatex --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="./" "test.tex"' ------------ Latexmk: applying rule 'lualatex'... This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian) system commands enabled. (.//test.tex LaTeX2e <2019-10-01> patch level 3 luaotfload | main : initialization completed in 2.160 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/10/25 v1.4k Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3deprecation.def)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (.//svg.sty (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty)) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifxetex.sty) (/usr/share/texlive/texmf-dist/tex/latex/pdftexcmds/pdftexcmds.sty (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))) (/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)) (.//test.w18 ))) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (/usr/share/texlive/texmf-dist/tex/latex/transparent/transparent.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)) (.//test.aux) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (.//./svg-inkscape/svg-example_svg-tex.pdf_tex LaTeX Warning: Reference `fig:example-tex' on page 2 undefined on input line 62 . ) Overfull \hbox (72.20381pt too wide) in paragraph at lines 16--18 [][] [] [2<./svg-inkscape/svg-example_svg-raw.pdf .//test.tex:23: error: (pdf inclusion): file has changed './svg-inkscape/svg-e xample_svg-raw.pdf' .//test.tex:23: ==> Fatal error occurred, no output PDF file produced!Latexmk: fls file doesn't appear to have been made. Latexmk: References changed. Latexmk: List of undefined refs and citations: Reference `fig:example-tex' on page 2 undefined on input line 62 Failure to make 'test.pdf' Latexmk: Summary of warnings from last run of (pdf)latex: Latex failed to resolve 2 reference(s) Collected error summary (may duplicate other messages): lualatex: Command for 'lualatex' gave return code 1 Refer to 'test.log' for details ---------------------- This message may duplicate earlier message. Latexmk: Failure in processing file 'test.tex': (Pdf)LaTeX didn't generate the expected log file 'test.log' ---------------------- === TeX engine is 'LuaTeX' Latexmk: Errors, in force_mode: so I tried finishing targets ```
mrpiggi commented 4 years ago

Are you sure, that ./svg-inkscape/svg-example_svg-raw.pdf was generated? I am especially concerned about the lines ** (inkscape:14): CRITICAL **: in the very first log. And please update your distribution as some packages are out of date. Additionally, your first log states svg.sty 2019/10/22 v2.02d (include SVG pictures)...

rzippo commented 4 years ago

Are you sure, that ./svg-inkscape/svg-example_svg-raw.pdf was generated?

Yes, I checked in between each run.

I am especially concerned about the lines (inkscape:14): CRITICAL : in the very first log.

I looked this up first, but did not find anything useful. Most issues are about the fact it is printed at all, it does not seem to mean that inkscape failed to run.

And please update your distribution as some packages are out of date. Additionally, your first log states svg.sty 2019/10/22 v2.02d (include SVG pictures)...

This was a good heads-up, thanks. I did took for granted that they were updated since tlmgr update --all is executed during build, but I found out that for some reason tlmgr cannot detect any package as installed. This however is about the docker image, not your package.

I am closing this issue while I deal with that, will reopen later if it still does not work.

rzippo commented 4 years ago

I found relevant issues reported for Docker Desktop that explain my problem. It just so happened that your package was the one triggering those, in my use case.

Sorry for wasting your time.

mrpiggi commented 4 years ago

No problem, don't worry.