<div dir="ltr"><div>Hi Dominic, <br></div><div><br></div><div>This looks like undefined behaviour, in that the format specifier should be correct to prevent crashing.</div><div>The program is likely trying to dereference 4, which is probably a segmentation fault. <br></div><div><br></div><div>Sincerely, <br></div><div>Max Orok<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 26, 2018 at 8:26 AM Dominic North <<a href="mailto:dj.north@bristol.ac.uk">dj.north@bristol.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_895204782516066120WordSection1">
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">Hi Everyone,<br>
I hope you can help please!<br>
<br>
Gmsh is crashing whenever an error occurs – the whole program stops working and a Windows error message appears saying: “gmsh.exe has stopped working.”
<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">This happens even on this one-line script (“testFile.geo”, in the same directory as gmsh.exe):<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Printf("testLine %s", 4);<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">NOTE, if the format specifier is correct, there is no error. i.e. “testLine %g”, 4); .<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">This error occurs if the file is loaded in the GUI, or via command line.<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">If anyone can help I would be very grateful!<br>
Best regards,<br>
Dominic <u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Version info:<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><u></u> <u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">C:\ONELAB>Version : 4.0.2-git-766232cc6<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">License : GNU General Public License<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Build OS : Windows64<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Build date : 20180914<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Build host : <a href="http://gmsh.info" target="_blank">gmsh.info</a><u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Build options : 64Bit Ann Bamg Bfgs Blas Blossom Cgns DIntegration Fltk Gmm Hxt Jpeg(Fltk) Kbipack Lapack MathEx Med Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen NoSocklenT ONELAB ONELABMetamodel OpenCASCADE
OpenGL OptHom PETSc Parser Plugins Png(Fltk) Post SLEPc Solver TetGen/BR Voro++ Zlib(Fltk)<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">FLTK version : 1.4.0<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">PETSc version : 3.9.3 (complex arithmtic)<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">OCC version : 7.3.1<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">MED version : 3.3.1<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Packaged by : nt authority system<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Web site : <a href="http://gmsh.info" target="_blank">http://gmsh.info</a><u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm">Mailing list : <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>