<div dir="ltr"><div><div>Thanks Ezequiel! Samuel, you were totally right, so many thanks ;-)<br><br></div>Upgrading to 5.5.2 it solved the graphical window and it now allows me to save matrices in the files. <br>Saving work relatively fast and loading afterwards takes quite long (the saved file that is produced is aprox 50MB), but it doesn't seem to be leaking memory any more.<br><br></div>Thanks again!<br>Matias<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 9:45 PM, Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4031417&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,
<br><br>Le 21/10/2014 18:24, Matiasb a écrit :
<span class=""><div><div class='shrinkable-quote'><br>> Hi,
<br>>
<br>> After executing a script that creates a lot of variables and big matrices,
<br>> I'm trying to make a backup of what it created. A good option would be to
<br>> save all variables to a file, as the save
<br>> <<a href="https://help.scilab.org/docs/5.4.1/en_US/save.html" rel="nofollow" link="external" target="_blank">https://help.scilab.org/docs/5.4.1/en_US/save.html</a>> function allows when
<br>> a list of variables is not specified.
<br>> Something like: save('backup.dat')
<br>>
<br>> But when I use this function I found 2 problems:
<br>> 1) Very strangely, it opens a graph window with some plots. Screenshot:
<br>> Selection_420.png
<br>> <<a href="http://mailinglists.scilab.org/file/n4031410/Selection_420.png" rel="nofollow" link="external" target="_blank">http://mailinglists.scilab.org/file/n4031410/Selection_420.png</a>>
<br>> 2) when there are a lot of variables it takes veeery long, the scilab
<br>> process uses 2GB of mem. If there are big matrices the scilab process hangs
<br>> completely.
<br>>
<br>> *For 1)* I tried to track it and I could reproduce with a simple example:
<br>> the problem occurs when I define a function that uses some graph function.
<br>> For example, creating a test.sce file with the following function:
<br>> // test.sce
<br>> function []=MyTest()
<br>> xtitle("Testing save");
<br>> endfunction
<br>>
<br>> Then in the console:
<br>> clear; // just to start from scratch
</div></span>This leads lower than scratch, rather to ground.
</div><span class="">> exec('test.sce', -1);
<br>> save('backup.dat'); // this opens the graph window!
<br></span>Which Scilab version are you using? If < 5.5.0, i guess that this is due
<br>to this bug:
<br><a href="http://bugzilla.scilab.org/show_bug.cgi?id=10243" rel="nofollow" link="external" target="_blank">http://bugzilla.scilab.org/show_bug.cgi?id=10243</a>, that was fixed in
<br>november 2013.
<br>In this case, upgrading your Scilab should fix the case you met.
<br><br>> .../...
<br><span class="">> Is there a way for me to store all this created variables in a file without
<br>> these problems?
<br>> Maybe solving 1) will fix it.
<br></span>Indeed, may be. Many memory leaks were fixed between Scilab 5.4.1 & 5.5.0
<br><span class="">>
<br>> PD: I'm using scilab 5.4.1 in Linux.
<br></span>Aa! So: upgrade to 5.5.1!
<br><br>Regards
<br>Samuel
<br><span class=""><br>_______________________________________________
<br>users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4031413&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.scilab.org/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br>
<br>
<hr color="#cccccc" noshade size="1">
</span><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</span><a href="http://mailinglists.scilab.org/Problems-using-save-tp4031410p4031413.html" target="_blank" rel="nofollow" link="external">http://mailinglists.scilab.org/Problems-using-save-tp4031410p4031413.html</a>
</div><div class="HOEnZb"><div class="h5">
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Problems using save, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Problems-using-save-tp4031410p4031417.html">Re: Problems using save</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>