texpresso icon indicating copy to clipboard operation
texpresso copied to clipboard

Crash when using certain symbols

Open marvinborner opened this issue 11 months ago • 0 comments

While scrolling through my thesis the preview window always crashes at the same parts of the LaTeX code.

I could narrow it down to my use of \twoheadsquigarrow (as defined in this stackexchange post).

Some observations for the reproduction file below:

  • texpresso-tonic file.tex compiles the PDF without problems
  • latexmk file.tex compiles the PDF without problems
  • texpresso file.tex crashes immediately (or, if on a separate page, when the arrow would be visible)
  • \rightsquigarrow without two heads works fine (therefore it's probably not a font problem)

A minimal reproduction (taken from the stackexchange post):

\documentclass{article}

\usepackage{amssymb}
\usepackage{trimclip}

\makeatletter
\newcommand*{\twoheadrightsquigarrow}{\rightsquigarrow\joinrel\mathrel{\mathpalette\@twoheadrightsquigarrow\relax}}
\newcommand*{\@twoheadrightsquigarrow}[2]{%
   \clipbox{{.7\width} 0pt 0pt {-.2\height}}{$\m@th#1\rightsquigarrow$}%
}
\makeatother

\begin{document}

$a \twoheadrightsquigarrow b$\par
$\scriptstyle a \twoheadrightsquigarrow b$\par
$\scriptscriptstyle a \twoheadrightsquigarrow b$

\end{document}

I use the latest texpresso from AUR (ie. current HEAD).

The logs contain some warnings/errors (mostly about fonts), they don't really seem that relevant though. After all, my setup works flawlessly for every other LaTeX code I tried.

Logs of `texpresso file.tex`
[info] working directory: [...]
[info] executable path: /usr/bin/texpresso
[info] document path: [...]
[info] document name: repro.tex
texpresso logo: 512x512
[info] tectonic path: /usr/bin/texpresso-tonic
[dvi] loading pdftex.map
note: "version 2" Tectonic command-line interface activated
note: not in a document workspace; using the built-in default bundle
success code:P size:100
[dvi] loading kanjix.map
success code:P size:100
[dvi] loading ckx.map
success code:P size:100
[process] launched pid 307450 (using /usr/bin/texpresso-tonic)
note: "version 2" Tectonic command-line interface activated
texpresso: handshake success
[bundle] error loading resource latex: not found
note: Running TeX ...
[info] trace has 0 entries, growing to 8
[info] writing repro.log
[info] this is the log file
(append log 0 "**\n(repro.tex")
(append log 13 "\nLaTeX2e <2021-11-15> patch level 1\nL3 programming layer <2022-02-24>")
[info] writing repro.synctex
[info] this is the synctex
[info] synctex used 2 input files, is 0 pages long
[info] synctex used 3 input files, is 0 pages long
[bundle] error loading resource lmroman10-regular: not found
(append log 82 " (article.cls")
(append log 95 "\nDocument Class: article 2021/10/04 v1.4n Standard LaTeX document class\n")
(append log 167 "(size10.clo")
(append log 178 "\nFile: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)\n")
[info] trace has 8 entries, growing to 16
[synctex] Closed input: 3
[synctex] Closed input: 2
[info] synctex used 4 input files, is 0 pages long
(append log 247 ")")
(append log 248 "\n\\c@part=\\count181\n\\c@section=\\count182\n\\c@subsection=\\count183\n\\c@subsubsection=\\count184\n\\c@paragraph=\\count185\n\\c@subparagraph=\\count186\n\\c@figure=\\count187\n\\c@table=\\count188\n\\abovecaptionskip=\\skip47\n\\belowcaptionskip=\\skip48\n\\bibindent=\\dimen138\n)")
(append log 501 " (amssymb.sty")
(append log 514 "\nPackage: amssymb 2013/01/14 v3.01 AMS font symbols\n")
[info] synctex used 5 input files, is 0 pages long
[synctex] Closed input: 5
[synctex] Closed input: 4
(append log 566 " (amsfonts.sty")
(append log 580 "\nPackage: amsfonts 2013/01/14 v3.01 Basic AMSFonts support\n\\@emptytoks=\\toks16\n\\symAMSa=\\mathgroup4\n\\symAMSb=\\mathgroup5\nLaTeX Font Info:    Redeclaring math symbol \\hbar on input line 98.\nLaTeX Font Info:    Overwriting math alphabet `\\mathfrak' in version `bold'\n(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.\n)")
(append log 913 ")")
(append log 914 " (trimclip.sty")
[info] synctex used 6 input files, is 0 pages long
[info] synctex used 7 input files, is 0 pages long
[info] synctex used 8 input files, is 0 pages long
(append log 928 "\nPackage: trimclip 2020/08/19 v1.2 Trim and clip general TeX material\n")
(append log 998 " (graphicx.sty")
(append log 1012 "\nPackage: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)\n")
(append log 1083 "\n(keyval.sty")
(append log 1095 "\nPackage: keyval 2014/10/28 v1.15 key=value parser (DPC)\n\\KV@toks@=\\toks17\n)")
[synctex] Closed input: 8
[info] trace has 16 entries, growing to 32
[info] synctex used 9 input files, is 0 pages long
[info] synctex used 10 input files, is 0 pages long
[synctex] Closed input: 10
(append log 1171 " (graphics.sty")
(append log 1185 "\nPackage: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR)\n")
(append log 1256 " (trig.sty")
(append log 1266 "\nPackage: trig 2021/08/11 v1.11 sin cos tan (DPC)\n)")
[info] synctex used 11 input files, is 0 pages long
[synctex] Closed input: 11
[info] synctex used 12 input files, is 0 pages long
(append log 1317 " (graphics.cfg")
(append log 1331 "\nFile: graphics.cfg 2016/06/04 v1.11 sample graphics configuration\n)")
(append log 1399 "\nPackage graphics Info: Driver file: xetex.def on input line 107.\n")
(append log 1465 " (xetex.def")
(append log 1476 "\nFile: xetex.def 2021/03/18 v5.0k Graphics/color driver for xetex\n)")
[synctex] Closed input: 12
[synctex] Closed input: 9
[synctex] Closed input: 7
[info] synctex used 13 input files, is 0 pages long
[synctex] Closed input: 13
(append log 1543 ")")
(append log 1544 "\n\\Gin@req@height=\\dimen139\n\\Gin@req@width=\\dimen140\n)")
(append log 1597 "\n(collectbox.sty")
(append log 1613 "\nPackage: collectbox 2012/05/17 v0.4b Collect macro arguments as boxes\n\\collectedbox=\\box50\n)")
[info] synctex used 14 input files, is 0 pages long
[info] synctex used 15 input files, is 0 pages long
[bundle] error loading resource xkeyval: not found
[info] synctex used 16 input files, is 0 pages long
[bundle] error loading resource xkvutils: not found
[info] synctex used 17 input files, is 0 pages long
[synctex] Closed input: 17
[synctex] Closed input: 16
(append log 1706 " (adjcalc.sty")
(append log 1719 "\nPackage: adjcalc 2012/05/16 v1.1 Provides advanced setlength with multiple back\n-ends (calc, etex, pgfmath)\n")
(append log 1828 " (xkeyval.sty")
(append log 1841 "\nPackage: xkeyval 2020/11/20 v2.8 package option processing (HA)\n")
(append log 1906 " (xkeyval")
(append log 1915 " (xkvutils")
(append log 1925 "\n\\XKV@toks=\\toks18\n\\XKV@tempa@toks=\\toks19\n)")
(append log 1969 "\n\\XKV@depth=\\count189\nFile: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)\n)")
[synctex] Closed input: 15
[synctex] Closed input: 14
[info] synctex used 18 input files, is 0 pages long
[synctex] Closed input: 18
(append log 2049 ")")
(append log 2050 ")")
(append log 2051 "\n\\tc@llx=\\dimen141\n\\tc@lly=\\dimen142\n\\tc@urx=\\dimen143\n\\tc@ury=\\dimen144\n")
(append log 2124 "Package trimclip Info: Using driver 'tc-xetex.def'.\n (tc-xetex.def")
(append log 2190 "\nFile: tc-xetex.def 2019/01/04 v2.2 Clipping driver for xetex\n)")
[synctex] Closed input: 6
[info] synctex used 19 input files, is 0 pages long
(append log 2253 ")")
(append log 2254 " (l3backend-xetex.def")
[synctex] Closed input: 19
[info] synctex used 20 input files, is 0 pages long
[synctex] Closed input: 20
[info] writing repro.aux
[info] synctex used 21 input files, is 0 pages long
[synctex] Closed input: 21
[info] trace has 32 entries, growing to 64
[bundle] error loading resource cmex7: not found
(append log 2275 "\nFile: l3backend-xetex.def 2022-02-07 L3 backend support: XeTeX\n\\c__kernel_sys_dvipdfmx_version_int=\\count190\n\\l__color_backend_stack_int=\\count191\n\\g__color_backend_stack_int=\\count192\n\\g__graphics_track_int=\\count193\n\\l__pdf_internal_box=\\box51\n\\g__pdf_backend_object_int=\\count194\n\\g__pdf_backend_annotation_int=\\count195\n\\g__pdf_backend_link_int=\\count196\n)")
(append log 2636 " (repro.aux")
(append log 2647 ")")
(append log 2648 "\n\\openout1 = `repro.aux'.\n\n")
(append log 2675 "LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 13.\nLaTeX Font Info:    Trying to load font information for TS1+cmr on input line 1\n3.\n")
(append log 3307 " (ts1cmr.fd")
(append log 3318 "\nFile: ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions\n)")
(append log 3385 "\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\nLaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 13.\nLaTeX Font Info:    ... okay on input line 13.\n")
(append log 3788 "LaTeX Font Info:    Trying to load font information for U+msa on input line 15.\n\n")
[info] synctex used 22 input files, is 0 pages long
[synctex] Closed input: 22
[bundle] error loading resource msam10: not found
[bundle] error loading resource msam7: not found
[bundle] error loading resource msam5: not found
[info] synctex used 23 input files, is 0 pages long
[synctex] Closed input: 23
[bundle] error loading resource msbm10: not found
[bundle] error loading resource msbm7: not found
(append log 3869 " (umsa.fd")
(append log 3878 "\nFile: umsa.fd 2013/01/14 v3.01 AMS symbols A\n)")
(append log 3925 "\nLaTeX Font Info:    Trying to load font information for U+msb on input line 15.\n\n")
(append log 4007 " (umsb.fd")
(append log 4016 "\nFile: umsb.fd 2013/01/14 v3.01 AMS symbols B\n)")
[bundle] error loading resource msbm5: not found
[info] writing repro.xdv
[info] this is the output document
pre:
  i: 7
  num: 25400000
  den: 473628672
  mag: 1000
  comment: tectonic
[info] output 1 pages long
[info] synctex used 23 input files, is 1 pages long
(append log 4063 " [1")
(append log 4066 "\n\n")
(append log 4068 "]")
(flush)

dvi_resmanager_get_fz_font: loading font cmmi10.pfb
[dvi] loading cmmi10.pfb
success code:P size:100
[dvi] loading cmmi10
success code:P size:100
[dvi] loading cmmi10
success code:E size:9
bundle_serve_hooks_cat: error loading cmmi10.vf: not found
dvi_resmanager_get_fz_font: loading font msam10.pfb
[dvi] loading msam10.pfb
success code:P size:100
[dvi] loading msam10
success code:P size:100
[dvi] loading msam10
success code:E size:9
bundle_serve_hooks_cat: error loading msam10.vf: not found
dvi_resmanager_get_fz_font: loading font cmmi7.pfb
[dvi] loading cmmi7.pfb
success code:P size:100
[dvi] loading cmmi7
success code:P size:100
[dvi] loading cmmi7
success code:E size:9
bundle_serve_hooks_cat: error loading cmmi7.vf: not found
dvi_resmanager_get_fz_font: loading font msam7.pfb
[dvi] loading msam7.pfb
success code:P size:100
[dvi] loading msam7
success code:P size:100
[dvi] loading msam7
success code:E size:9
bundle_serve_hooks_cat: error loading msam7.vf: not found
dvi_resmanager_get_fz_font: loading font cmmi5.pfb
[dvi] loading cmmi5.pfb
success code:P size:100
[dvi] loading cmmi5
success code:P size:100
[dvi] loading cmmi5
success code:E size:9
bundle_serve_hooks_cat: error loading cmmi5.vf: not found
dvi_resmanager_get_fz_font: loading font msam5.pfb
[dvi] loading msam5.pfb
success code:P size:100
[dvi] loading msam5
success code:P size:100
[dvi] loading msam5
success code:E size:9
bundle_serve_hooks_cat: error loading msam5.vf: not found
dvi_resmanager_get_fz_font: loading font lmroman10-regular
[dvi] loading lmroman10-regular
success code:E size:9
bundle_serve_hooks_cat: error loading lmroman10-regular.pfb: not found
success code:P size:100
optimized bounds: 0.000000,0.000000 - 1278.000000,1418.000122
aborting process from uncaught error!
TeXpresso: cannot read from server (Connection reset by peer (os error 104))

Please let me know if I can provide any more information or logs!

marvinborner avatar Apr 14 '25 15:04 marvinborner