mgieseki / dvisvgm

A fast DVI, EPS, and PDF to SVG converter
https://dvisvgm.de
GNU General Public License v3.0
294 stars 28 forks source link

InvalidDVIFileException in upTeX DVI only on Solaris #261

Open t-tk opened 5 months ago

t-tk commented 5 months ago

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
mgieseki commented 5 months ago

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 commented 5 months ago

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.