[Scilab-users] Problems using save

Samuel Gougeon sgougeon at free.fr
Tue Oct 21 21:44:12 CEST 2014


Hello,

Le 21/10/2014 18:24, Matiasb a écrit :
> Hi,
>
> After executing a script that creates a lot of variables and big matrices,
> I'm trying to make a backup of what it created. A good option would be to
> save all variables to a file, as the  save
> <https://help.scilab.org/docs/5.4.1/en_US/save.html>   function allows when
> a list of variables is not specified.
> Something like: save('backup.dat')
>
> But when I use this function I found 2 problems:
>      1) Very strangely, it opens a graph window with some plots. Screenshot:
> Selection_420.png
> <http://mailinglists.scilab.org/file/n4031410/Selection_420.png>
>      2) when there are a lot of variables it takes veeery long, the scilab
> process uses 2GB of mem. If there are big matrices the scilab process hangs
> completely.
>
> *For 1)* I tried to track it and I could reproduce with a simple example:
> the problem occurs when I define a function that uses some graph function.
> For example, creating a test.sce file with the following function:
> // test.sce
> function []=MyTest()
>      xtitle("Testing save");
> endfunction
>
> Then in the console:
>    clear; // just to start from scratch
This leads lower than scratch, rather to ground.
>    exec('test.sce', -1);
>    save('backup.dat'); // this opens the graph window!
Which Scilab version are you using? If < 5.5.0, i guess that this is due 
to this bug:
http://bugzilla.scilab.org/show_bug.cgi?id=10243, that was fixed in 
november 2013.
In this case, upgrading your Scilab should fix the case you met.

> .../...
> Is there a way for me to store all this created variables in a file without
> these problems?
> Maybe solving 1) will fix it.
Indeed, may be. Many memory leaks were fixed between Scilab 5.4.1 & 5.5.0
>
> PD: I'm using scilab 5.4.1 in Linux.
Aa! So: upgrade to 5.5.1!

Regards
Samuel




More information about the users mailing list