[tex4ht] what would cause " Can't close file `index.tmp' (file is not open)" --- error --- Illegal storage address

Nasser M. Abbasi nma at 12000.org
Sat May 26 03:11:20 CEST 2018


On 5/25/2018 5:48 PM, Karl Berry wrote:
>      --- warning --- Can't close file `index.tmp' (file is not open)
>      --- error --- Illegal storage address
>      Make4ht: Fatal error. Command tex4ht returned exit code 256
> 
> That "Illegal storage address" is surely a weird error no matter what. I
> will try to take a look and see if I can discern a fix. Glad there is a
> workaround in the meantime. -k
> 

Good news. I was able to make a MWE. The file is
index.tex and has only 783 lines. Self contained.
and contains only 2 \includegraphics. The images
are there in the zip file.

I kept removing stuff until the error went away.

Strange thing, removing few lines here and there now
the error goes away. So this is clearly some
sort of internal memory corruption going on.

Also, if I change all the headings from \subsection
to \section, the error goes away.

removing one of \includegraphics, the error goes away.

All the above is with the pdfpages packages loaded.

Removing pdflages, the error goes away.

I put the small zip file, which contains the one latex
file and the 2 images it uses in my web site in this folder

https://www.12000.org/tmp/052418/

The zip file is called math_322.zip. Unzipping it will
create a folder called math_322/

cd to the folder and please type

make4ht --lua -u  index.tex "htm,pic-align,notoc*"

Now you should see --- error --- Illegal storage address

I tried this on texlive 2017 under cygwin now. But it should
also fail same way under linux.

thanks
--Nasser




More information about the tex4ht mailing list