dvisvgm icon indicating copy to clipboard operation
dvisvgm copied to clipboard

InvalidDVIFileException in upTeX DVI only on Solaris

Open t-tk opened this issue 1 year ago • 2 comments

I wrote a test of dvisvgm for upTeX DVI and I have gotten core dump only on Solaris environments. If you have any idea to fix it, I'm glad to have your advise.

https://build.contextgarden.net/#/console texlive.solaris-i386.csw texlive.solaris-sparc.csw texlive.solaris-x86_64.csw

From the log of Build/source/texk/dvisvgm/tests/dvisvgm-uptex.test

+ ./dvisvgm-src/src/dvisvgm --verbosity=7 -m upjf.map -o upjf1_full.svg ../../../texk/dvisvgm/tests/upjf.dvi 
pre-processing DVI file (format version 3)
WARNING: no font file found for 'upjv-r'
WARNING: no font file found for 'upjv-g'
WARNING: no font file found for 'upjf-r'
WARNING: no font file found for 'upjf-g'
processing page 1
terminate called after throwing an instance of 'InvalidDVIFileException'
  what():  invalid DVI file
Abort - core dumped

t-tk avatar Jan 28 '24 01:01 t-tk

Unfortunately, I have no idea. The logs contain too little information to determine the cause of the exception. I don't have access to a Solaris system either, so I can't debug this issue.

mgieseki avatar Jan 28 '24 14:01 mgieseki

I tried to investigate this a little further but without much success. Since the exception leads to a core dump which should not happen (because all exceptions get caught in the code), I suppose this is a bug in GCC 5.5. Thus, I suggest to test it again with a newer version if possible.

The warning messages are related to the map file that probably doesn't contain information on the font files assigned to the mentioned font names.

mgieseki avatar Jan 29 '24 13:01 mgieseki