[Scilab-users] issue with h5close?

classic Classic list List threaded Threaded
3 messages Options
Carrico, Paul-2 Carrico, Paul-2
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] issue with h5close?

Hi All

 

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.

 

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 Scilab crashes; that’s the case either under Windows 7 or 10.

h5 = "toto.h5";

h5 = h5open(PATH_DATA + h5,"r");

h5close(h5);

 

But I’ve noticed if I manually close the file directly in the console (i.e. a second time), then Scilab does not crash anymore.

 

It is just an observation, and I’m not able to tell more about the issue, but it’s systematic on my side.

 

Hope it help

 

Paul


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

Re: issue with h5close?

Hello Paul,


Two comments:

1) Could you provide us with a minimum crashing script + h5file to try and replicate the issue?
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?
I remember having weird issues back in the days with graphic handles being reused for other kind of variables inside loops or function calls.

Antoine


Le 28/05/2019 à 09:10, Carrico, Paul a écrit :

Hi All

 

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.

 

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 Scilab crashes; that’s the case either under Windows 7 or 10.

h5 = "toto.h5";

h5 = h5open(PATH_DATA + h5,"r");

h5close(h5);

 

But I’ve noticed if I manually close the file directly in the console (i.e. a second time), then Scilab does not crash anymore.

 

It is just an observation, and I’m not able to tell more about the issue, but it’s systematic on my side.

 

Hope it help

 

Paul


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 BP 54200
 31031 TOULOUSE Cedex 4
 FRANCE

 Tel:+33 5 61 33 64 59
 
 email : [hidden email]
 permanent email : [hidden email]

+++++++++++++++++++++++++++++++++++++++++++++++++++++++


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Carrico, Paul-2 Carrico, Paul-2
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: issue with h5close?

Thanks Antoine,

 

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

 

Paul

 

De : users [mailto:[hidden email]] De la part de Antoine Monmayrant
Envoyé : mardi 28 mai 2019 09:36
À : [hidden email]
Objet : [EXTERNAL] Re: [Scilab-users] issue with h5close?

 

Hello Paul,

 

 

Two comments:

 

1) Could you provide us with a minimum crashing script + h5file to try and replicate the issue?

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?

I remember having weird issues back in the days with graphic handles being reused for other kind of variables inside loops or function calls.

 

Antoine

 

 

Le 28/05/2019 à 09:10, Carrico, Paul a écrit :

Hi All

 

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.

 

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 Scilab crashes; that’s the case either under Windows 7 or 10.

h5 = "toto.h5";

h5 = h5open(PATH_DATA + h5,"r");

h5close(h5);

 

But I’ve noticed if I manually close the file directly in the console (i.e. a second time), then Scilab does not crash anymore.

 

It is just an observation, and I’m not able to tell more about the issue, but it’s systematic on my side.

 

Hope it help

 

Paul



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

 

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 BP 54200
 31031 TOULOUSE Cedex 4
 FRANCE
 
 Tel:+33 5 61 33 64 59
 
 email : [hidden email]
 permanent email : [hidden email]
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
 

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users