[Scilab-users] save and *.sod broken in scilab6 ?

classic Classic list List threaded Threaded
10 messages Options
Philippe Roux Philippe Roux
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] save and *.sod broken in scilab6 ?

Hi,

Running the example of man page for "save" to create an *.sod file
yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) .
It looks like there is no report for this bug on bugzilla ?

Best regards,
Philippe.

-> 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'.



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

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

Re: save and *.sod broken in scilab6 ?

Hello Philippe,

No problem for me.
You may have used listvarinfile() at a moment during your trials or work.
listvarinfile() left the file locked. This was very likely the cause of the forthcoming save() error.
This listvarinfile() bug was fixed 2 weeks ago.

Best regards
Samuel

Le 27/08/2018 à 10:51, philippe a écrit :
Hi,

Running the example of man page for "save" to create an *.sod file
yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) .
It looks like there is no report for this bug on bugzilla ?

Best regards,
Philippe.

-> 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'.



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

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



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

Re: save and *.sod broken in scilab6 ?

Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
> Hello Philippe,
>
> No problem for me.
> You may have used listvarinfile() at a moment during your trials or work.

no Samuel, the file val.sod doesn't exists in the directory, save don't
create the file due to the error.

Perhaps the bug could depend on operating system ?

Best regards,
Philippe

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

Re: save and *.sod broken in scilab6 ?

In reply to this post by Philippe Roux
Hello Philippe,

I just tried it at

Le 27/08/2018 à 10:51, philippe a écrit :

> Hi,
>
> Running the example of man page for "save" to create an *.sod file
> yields an error in scilab-6.0.1 and ubuntu 18.04 (see below) .
> It looks like there is no report for this bug on bugzilla ?
>
> Best regards,
> Philippe.
>
> -> 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'.
>
>
>
> 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
>
> _______________________________________________
> 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
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: save and *.sod broken in scilab6 ?

In reply to this post by Philippe Roux
Le 27/08/2018 à 15:31, philippe a écrit :
> Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
>> Hello Philippe,
>>
>> No problem for me.
>> You may have used listvarinfile() at a moment during your trials or work.
> no Samuel, the file val.sod doesn't exists in the directory, save don't
> create the file due to the error.
>
> Perhaps the bug could depend on operating system ?

Have you tried

a=eye(2,2);b=ones(a);
save(TMPDIR+"/val.sod", "a", "b");

?

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

Re: save and *.sod broken in scilab6 ?

In reply to this post by Philippe Roux
Hello Philippe,

(Sorry for the previous email, I send it by accident)

I just tried it under 16.04: no issue, but I confirm the bug under 18.04.
I have exactly the same issue than you.
So it seems related to Ubuntu 18.04.

Antoine

Le 27/08/2018 à 15:31, philippe a écrit :

> Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
>> Hello Philippe,
>>
>> No problem for me.
>> You may have used listvarinfile() at a moment during your trials or work.
> no Samuel, the file val.sod doesn't exists in the directory, save don't
> create the file due to the error.
>
> Perhaps the bug could depend on operating system ?
>
> Best regards,
> Philippe
>
> _______________________________________________
> 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
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

Re: save and *.sod broken in scilab6 ?

In reply to this post by Samuel GOUGEON



Le 27/08/2018 à 15:39, Samuel Gougeon a écrit :
Le 27/08/2018 à 15:31, philippe a écrit :
Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
Hello Philippe,

No problem for me.
You may have used listvarinfile() at a moment during your trials or work.
no Samuel, the file val.sod doesn't exists in the directory, save don't
create the file due to the error.

Perhaps the bug could depend on operating system ?

Have you tried

a=eye(2,2);b=ones(a);
save(TMPDIR+"/val.sod", "a", "b");
I tried it and the problem is still present. It's an HDF5 problem.
Here is my script:

a=1;save(TMPDIR+"val.sod","a")

Here is the error in the console:

save : Impossible d'exporter la variable 'a' dans le fichier '/tmp/SCI_TMP_3234_HqbriAval.sod'.

and here is the error message in the terminal:

HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139709281875840:
  #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 139709281875840:
  #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
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139709281875840:
  #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID
    major: Invalid arguments to routine
    minor: Inappropriate type
failed to close file
It seems to me that something is broken with hdf5 for 6.0.1 under 18.04.
Philippe, could you report a bug?

Cheers,

Antoine



?

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



_______________________________________________
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: save and *.sod broken in scilab6 ?

OK, here is what I did:


- in scilab-master-1534776009: OK
    a=1; save("val.sod", "a");listvarinfile("val.sod");clear a;load("val.sod");disp(a);

- in scilab 6.0.1 : NOK
    a=1; save("val.sod", "a");listvarinfile("val.sod");clear a;load("val.sod");disp(a);

    save : Impossible d'exporter la variable 'a' dans le fichier 'val.sod'.

HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140037156050816:
  #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 140037156050816:
  #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
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 140037156050816:
  #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID
    major: Invalid arguments to routine
    minor: Inappropriate type
failed to close file

- in scilab 6.0.0 : NOK (other bug):
./scilab-6.0.0/bin/scilab
Cannot find this look and feel:
[GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform
Segmentation fault (core dumped)


Le 27/08/2018 à 15:47, antoine monmayrant a écrit :


Le 27/08/2018 à 15:39, Samuel Gougeon a écrit :
Le 27/08/2018 à 15:31, philippe a écrit :
Le 27/08/2018 à 12:24, Samuel Gougeon a écrit :
Hello Philippe,

No problem for me.
You may have used listvarinfile() at a moment during your trials or work.
no Samuel, the file val.sod doesn't exists in the directory, save don't
create the file due to the error.

Perhaps the bug could depend on operating system ?

Have you tried

a=eye(2,2);b=ones(a);
save(TMPDIR+"/val.sod", "a", "b");
I tried it and the problem is still present. It's an HDF5 problem.
Here is my script:

   a=1;save(TMPDIR+"val.sod","a")


Here is the error in the console:

   save : Impossible d'exporter la variable 'a' dans le fichier
   '/tmp/SCI_TMP_3234_HqbriAval.sod'.


and here is the error message in the terminal:

   HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread
   139709281875840:
      #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
   139709281875840:
      #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
   HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread
   139709281875840:
      #000: ../../../src/H5F.c line 749 in H5Fclose(): not a file ID
        major: Invalid arguments to routine
        minor: Inappropriate type
   failed to close file

It seems to me that something is broken with hdf5 for 6.0.1 under 18.04.
Philippe, could you report a bug?

Cheers,

Antoine



?

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





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


_______________________________________________
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: save and *.sod broken in scilab6 ?

Hello again,

It seems to be corrected in the nightly build of the 6.0 branch : no
problem with scilab-branch-6.0-1534494461

Antoine


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

Re: save and *.sod broken in scilab6 ?

In reply to this post by Antoine Monmayrant
Le 27/08/2018 à 15:47, antoine monmayrant a écrit :

>
>
>
> and here is the error message in the terminal:
>
>     HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread
>     139709281875840:
>       #000: ../../../src/H5G.c line 553 in H5Gget_info(): invalid argument
>         major: Invalid arguments to routine
>         minor: Bad value


I've the same messages about hdf5 problems.
>
> It seems to me that something is broken with hdf5 for 6.0.1 under 18.04.
> Philippe, could you report a bug?

it's done : http://bugzilla.scilab.org/show_bug.cgi?id=15738

Best regards,

Philippe

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