<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Monospaced;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;
mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
mso-fareast-language:EN-US;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Antoine,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I ran the same code under Windows 10 and Scilab crashes, whereas I’ve no issue under Linux (Ubuntu 16.04); I cannot share the files as it stands, but let me working on an example to reproduce the
issue<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Paul<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR">
users [mailto:users-bounces@lists.scilab.org] <b>De la part de</b> Antoine Monmayrant<br>
<b>Envoyé :</b> mardi 28 mai 2019 09:36<br>
<b>À :</b> users@lists.scilab.org<br>
<b>Objet :</b> [EXTERNAL] Re: [Scilab-users] issue with h5close?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello Paul,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Two comments:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1) Could you provide us with a minimum crashing script + h5file to try and replicate the issue?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2) It might not be relevant, but in your script "h5" is first a string then a h5 handle (after the call to h5open). Did you try using two different variable names (h5fname and h5), just in case it is related to your crash?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I remember having weird issues back in the days with graphic handles being reused for other kind of variables inside loops or function calls.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Antoine<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Le 28/05/2019 à 09:10, Carrico, Paul a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi All</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m using the latest stable release (6.0.2) in conjunction with cgal add-on for Delaunay_2 tessellation, based on data previously recorded in a hdf5 file.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’ve been noticing that after a first tessellation, and while the h5 file is closed in the routine (h5close(name)), if I rerun a second one
<u>Scilab crashes</u>; that’s the case either under Windows 7 or 10.</span><o:p></o:p></p>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif"">h5 </span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif";color:#5C5C5C">=</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif""> </span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif";color:rosybrown">"toto.h5"</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif"">;</span><o:p></o:p></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Monospaced","serif";mso-fareast-language:FR">h5
</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:#5C5C5C;mso-fareast-language:FR">=</span><span lang="EN-US" style="font-family:"Monospaced","serif";mso-fareast-language:FR">
</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:#32B9B9;mso-fareast-language:FR">h5open</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR">(</span><span lang="EN-US" style="font-family:"Monospaced","serif";mso-fareast-language:FR">PATH_DATA
</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:#5C5C5C;mso-fareast-language:FR">+</span><span lang="EN-US" style="font-family:"Monospaced","serif";mso-fareast-language:FR"> h5,</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:rosybrown;mso-fareast-language:FR">"r"</span><span lang="EN-US" style="font-family:"Monospaced","serif";color:#4A55DB;mso-fareast-language:FR">)</span><span lang="EN-US" style="font-family:"Monospaced","serif";mso-fareast-language:FR">;
</span><o:p></o:p></p>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif";color:#32B9B9">h5close</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif";color:#4A55DB">(</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif"">h5</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif";color:#4A55DB">)</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Monospaced","serif"">;</span><o:p></o:p></pre>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">But I’ve noticed if I <u>manually</u> close the file directly in the console (i.e. a second time), then Scilab does not crash anymore.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">It is just an observation, and I’m not able to tell more about the issue, but it’s systematic on my side.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hope it help</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Paul</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>users mailing list<o:p></o:p></pre>
<pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre>
<pre><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users&d=DwMD-g&c=0hKVUfnuoBozYN8UvxPA-w&r=2R_Eyw3woK4XVPnEug_8oZFQfCE8Ul6UYufxQizYx6k&m=4fnFEAKm7XnaYWj8I9AMsDSeMi68i06k3wuWMEiebIc&s=mW1QvoEQR-45_i2gcqy3Dh9SDOpbxXG5Z0lWcJqiOyg&e=">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p><o:p> </o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>+++++++++++++++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> Antoine Monmayrant LAAS - CNRS<o:p></o:p></pre>
<pre> 7 avenue du Colonel Roche<o:p></o:p></pre>
<pre> BP 54200<o:p></o:p></pre>
<pre> 31031 TOULOUSE Cedex 4<o:p></o:p></pre>
<pre> FRANCE<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> Tel:+33 5 61 33 64 59<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> email : <a href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a><o:p></o:p></pre>
<pre> permanent email : <a href="mailto:antoine.monmayrant@polytechnique.org">antoine.monmayrant@polytechnique.org</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>+++++++++++++++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
</div>
</body>
</html>