save fail to create *.sod file
Reported by ROUX philippe
BUG DESCRIPTION:
----------------
the example code in man page for "save" yields an error : save(file.sod,var) doesn't create file.sod.
The bug seems to occur only with scilab-6.0.1 + ubuntu 18.04.1
ERROR LOG:
----------
-> a=eye(2,2);b=ones(a);
--> save("val.sod", "a", "b");
save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'.
--> clear a
--> clear b
--> load("val.sod", "a", "b");
load : Impossible d'ouvrir le fichier 'val.sod'.
HOW TO REPRODUCE THE BUG:
-------------------------
// example in save man page
a=eye(2,2);b=ones(a);
save('val.dat',a,b);
clear a
clear b
load('val.dat','a','b');
OTHER INFORMATION:
------------------
ver() informations :
Version de Scilab : 6.0.1.1518683525
Système d'exploitation : Linux 4.15.0-33-generic
Version Java : 1.8.0_181
Informations sur l'environnement d'exécution Java : OpenJDK Runtime
Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM
(build 25.181-b13, mixed mode)
Spécifications du fabricant : Oracle Corporation
error messages about HDF5 management from the console :
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139925566920576:
#000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139925566920576:
#000: ../../../src/H5D.c line 121 in H5Dcreate2(): not a location ID
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 253 in H5G_loc(): invalid object ID
major: Invalid arguments to routine
minor: Bad value
see also the scilab users mailing list :
https://www.mail-archive.com/users@lists.scilab.org/msg07861.html
Edited by Vincent COUVERT