dvipng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using bookmark causes floating point exception


From: Jan-Åke Larsson
Subject: Re: Using bookmark causes floating point exception
Date: Sat, 13 Mar 2021 22:05:31 +0000
User-agent: Evolution 3.36.4-0ubuntu1

Hi

The dvi you sent attempts to load a PostScript image "test.out.ps" using the XXX1"PSfile=" command.

In my tests with the older "bookmark" package, the "filename.out.ps" file is a PostScript header, not an image file. The dvi loads this using XXX1"header=" and it loads fine in dvipng.

But in the dvi you sent, the attempt to load what presumably should be a header as an image with zero width and height bounding box, causes a division-by-zero error in dvipng when it tries to calculate the resolution.  I can change dvipng to use default PS resolution 72 dpi for such a boundingbox, this will be in the next release. I'll commit a change to the devel archive as soon as possible.

But I suspect the bookmark driver for dvips might want something other than that, so do report that error to the package author.

Best
Jan-Ã…ke




On lör, 2021-03-13 at 20:30 +0100, jfbu wrote:
Hi Jan-Ã…ke and Francis

I reproduce the error with current TeX Live which says

bkm-dvips.def    2020-11-06 v1.29 bookmark driver for dvips (HO)

and

$ dvipng temp
This is dvipng 1.17 Copyright 2002-2015, 2019 Jan-Ake Larsson
Floating point exception: 8

Attaching temp.dvi file

Best,
Jean-François

Le 13 mars 2021 à 19:58, Jan-Åke Larsson <jan-ake.larsson@liu.se> a écrit :

Dear Francis,
I'm on Ubuntu 20.04, no error here. Could you provide the dvi that generates the error?

Best
Jan-Ã…ke


On lör, 2021-03-13 at 15:37 +0000, Francis Wright wrote:
When I use the latest TeX Live (from ctan.org) and compile the LaTeX file, dvipng-bug.tex, containing the following 5 lines:
 
\documentclass{article}
\usepackage{bookmark}
\begin{document}
Some random content.
\end{document}
 
using “latex dvipng-bug.tex� and then run “dvipng dvipng-bug.dvi�, I get the output:
 
This is dvipng 1.17 Copyright 2002-2015, 2019 Jan-Ake Larsson
Floating point exception (core dumped)
 
and no PNG file. I believe that this is caused by a bad interaction between the latest version of the bookmark driver file bkm-dvips.def, namely version 2020-11-06 v1.29, and dvipng. I have tried using dvipng 1.16 and 1.15, and the result is the same. But if I use the previous version of bkm-dvips.def, namely version 2019/12/03 v1.28, dvipng runs correctly. I find similar behaviour on Cygwin and Ubuntu.
 
I will also report this as a bookmark bug, but even if bookmark is the cause I don’t think dvipng should crash.
 
Best wishes, Francis

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]