<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 23, 2021 at 7:17 PM Pétiard François <<a href="mailto:petiard.francois@free.fr">petiard.francois@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Le 23/12/2021 à 15:39, luigi scarso a écrit :<br>
</p>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 23, 2021 at 2:56
PM luigi scarso <<a href="mailto:luigi.scarso@gmail.com" target="_blank">luigi.scarso@gmail.com</a>>
wrote:</div>
<div dir="ltr" class="gmail_attr"><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_quote">
<div>I mean: it could be that makempx doesn't close the
vf file correctly (so yes, this is a bug).</div>
</div>
<div><br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>indeed , with a patch now I have </div>
</div>
<div># grep 'fopen' OUT2 | perl -pe 's{(.+: )([0-9a-z]+)( =
fopen.+)$}{$2}' -|sort|uniq|nl|tail -1<br>
1 0x563eca3cc830<br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr">luigi<br>
</div>
</div>
</blockquote>
<p>Sorry, I really don't understand what you do.</p></div></blockquote><div><br></div><div>Under linux:<br>$> mpost -debug -tex=latex <a href="http://test.mp">test.mp</a> &> OUT</div><div>where <a href="http://test.mp">test.mp</a> is the first correct case .</div><div>I see lots of line like these ones</div><div>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x5585feec9070 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/jknappen/ec/ecsx2488.tfm,"rb")<br>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x5585feec9070 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/cm/cmr17.tfm,"rb")<br>where 0x5585feec9070 seems to be always the same </div><div>Indeed, filtering OUT</div><div>$>grep 'fopen' OUT | perl -pe 's{(.+: )([0-9a-z]+)( = fopen.+)$}{$2}' -|sort|uniq|nl|tail -1<br></div><div>I see one file open</div><div>1 0x5585feec9070<br></div><div><br></div><div>If now <a href="http://test.mp">test.mp</a> uses the kpfonts, I see lots of lines like </div><div> </div><div>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x55cea183e830 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpssbn8t.vf,"rb")<br>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x55cea1848840 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpssbn8r.tfm,"rb")<br>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x55cea1848840 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpmn7t.vf,"rb")<br>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x55cea184d500 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpmne.tfm,"rb")<br>makempx debug: ./<a href="http://mptextmp.mp">mptextmp.mp</a>: 0x55cea184d500 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpmn8r.tfm,"rb")<br></div><div><br></div><div>but this time the numbers change:</div><div>$>grep 'fopen' OUT | perl -pe 's{(.+: )([0-9a-z]+)( = fopen.+)$}{$2}' -|sort|uniq|nl|tail -1 </div><div>1036 0x55cea68eee50<br></div><div>This means that I have 1036 different file descriptors ( 0x55cea68eee50 is just the last one of the list that I have sorted)</div><div>and I have checked that these files were not correctly closed. </div><div>It's not a bug of miktex, it's a bug of mpost (that I have fixed): I don't see it in linux because I can have more than 1036 files open</div><div>(but this limit can be lowered , so the problem remains).</div><div><br></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>