[tlbuild] dvi test
Bruno Voisin
bvoisin at icloud.com
Thu Jan 27 12:02:17 CET 2022
Answering that question from Paul Vojta on the list archive:
> Could you send me the (much shorter) output from xdvi with "-debug 256"?
here's what I get up to pressing Shift-R:
% xdvi -debug 256 t2a-draftcopy.dvi
Warning: locale not supported by Xlib, locale set to C
KPATHSEA_DEBUG = 4
kdebug:fopen(t2a-draftcopy.dvi, r) => 0x1e38aac10
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/TeX/t2a-draftcopy.dvi, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
xdvik 22.87.04 (Xaw toolkit), kpathsea: kpathsea version 6.3.3
configured with: ppi=600 shrink=8 mfmode=<NONE> alt_font=cmr10 paper=a4
--- G_depth: 24
kdebug:fopen(/usr/local/texlive/texmf-local/web2c/texmf.cnf, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf.cnf, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/web2c/texmf.cnf, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/texmf-local/ls-R, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-config/ls-R, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-var/ls-R, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/ls-R, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-config/dvips/config/config.ps, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/Users/brunovoisin/.dvipsrc, r) => 0x0
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/dvips/xdvi/config.xdvi, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aaca8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-var/fonts/map/dvips/updmap/psfonts.map, r) => 0x1e38aaca8
kdebug:fclose(0x1e38aac10) => 0
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/TeX/t2a-draftcopy.dvi, r) => 0x1e38aac10
Warning: Unable to load any usable fontset
../../../texk/xdvik/special.c:1337: |l3backend-dvips.pro| expanded to |/usr/local/texlive/2021/texmf-dist/dvips/l3backend/l3backend-dvips.pro|
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/dvips/l3backend/l3backend-dvips.pro, r) => 0x1e38aadd8
kdebug:fclose(0x1e38aadd8) => 0
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb, r) => 0x1e38aadd8
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmcsc10.pfb, r) => 0x1e38aae70
kdebug:fopen(/usr/local/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb, r) => 0x1e38aaf08
and after pressing it:
kdebug:fclose(0x1e38aac10) => 0
kdebug:fopen(/Users/brunovoisin/Desktop/Temp/TeX/t2a-draftcopy.dvi, r) => 0x1e38aac10
kdebug:fclose(0x1e38aac10) => 0
xdvi-xaw: set_no_char: attempt to set character of unknown font, offset 42
xdvi-xaw 22.87.04 (Xaw toolkit): ../../../texk/xdvik/dvi-draw.c:488: Shouldn't happen: I'll abort now, to help you debugging this.
zsh: abort xdvi -debug 256 t2a-draftcopy.dvi
Regarding the setup: xdvi is from MacTeX-2021
% xdvi -version
xdvik version 22.87.04 (Xaw toolkit)
Libraries: kpathsea version 6.3.3, freetype version 2.10.4
and macOS is 12.2 Monterey Release Candidate on Apple Silicon M1 chip:
% sw_vers
ProductName: macOS
ProductVersion: 12.2
BuildVersion: 21D48
% uname -mv
Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64
with X11 provided by XQuartz 2.8.1, for which the detail of the included libraries etc is at
https://www.xquartz.org/releases/XQuartz-2.8.1.html
Finally, since there is a warning about the locale, here's the thing:
% locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
I've no idea what "Warning: Unable to load any usable fontset" means. Apart from Computer Modern, the only font used by t2a.dvi, when draftcopy is loaded, is Times-Roman. Here I must confess ignorance what is used/expected by xdvi: Times Roman as provided by Ghostscript,
/usr/local/share/ghostscript/9.55.0/Resource/Font/NimbusRoman-Regular
or as provided by XQuartz, namely subfont 0 of
/opt/X11/share/system_fonts/Times.ttc -> /System/Library/Fonts/Times.ttc
To make sure the problem isn't caused by the specific font used by draftcopy, I tried adding to the preamble of the LaTeX file
\makeatletter
\def\draftcopy at Font{/Helvetica}
\makeatother
so that Helvetica (visible to the user) is used instead of Times (invisible to the user -- a new thing starting from macOS Monterey), or
\makeatletter
\def\draftcopy at Font{/TimesNewRoman}
\makeatother
so that Times New Roman (individual file Times New Roman.ttf) is used instead of Times (collection Times.ttc): the xdvi crash remains exactly the same.
Also to clarify: this is on default macOS with only Xcode, Xquartz and MacTeX 2021 installed at the Unix level -- no MacPorts, no Homebrew nor similar.
Bruno Voisin
More information about the tlbuild
mailing list.