Re: [Scilab-users] Scilab stops calculus

2021-03-11 Thread Stéphane Mottelet

Hello Jean-Yves,

I am affraid that the problem could be due to the output, because I had 
no problem to run the loop for almost one day under Linux (with latests  
branch-6.1 build):


--> unix("date");
jeudi 11 mars 2021, 17:11:48 (UTC+0100)

--> i=0;while 1, i=i+1;end;

-1-> unix("date");
vendredi 12 mars 2021, 08:13:08 (UTC+0100)

-1-> i
 i  =

   1.667D+11

-1->

S.


Le 11/03/2021 à 11:08, Jean-Yves Baudais a écrit :

Hi Antoine,


Are you running scilab under Linux?

Yes.


It might not be related, but I noticed that when my computer resumes
from sleep, all the scilab GUI is unresponsive.

I removed all sleep modes on my computer (to maintain VPN access and get around 
some other problems) and I never use them.


Can you run your long simulation without gui?

It was. I tested the following

i=0;while 1, i=i+1;mprintf("%d\n",i); end;

and there is no problem up to i=2e8 with -nwni option, and up to i=5e7 with gui 
(I locked my screen during the simulation and unlocked it to stop the 
simulation, no problem to resume). So, my first feeling was wrong, it's not a 
prompt limitation.

Strange behaviour...

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab stops calculus

2021-03-11 Thread Stéphane Mottelet

Hi,

Le 11/03/2021 à 15:56, Antoine Monmayrant a écrit :


On 11/03/2021 11:08, Jean-Yves Baudais wrote:

Hi Antoine,


Are you running scilab under Linux?

Yes.


It might not be related, but I noticed that when my computer resumes
from sleep, all the scilab GUI is unresponsive.
I removed all sleep modes on my computer (to maintain VPN access and 
get around some other problems) and I never use them.



Can you run your long simulation without gui?

It was. I tested the following

i=0;while 1, i=i+1;mprintf("%d\n",i); end;

and there is no problem up to i=2e8 with -nwni option, and up to 
i=5e7 with gui (I locked my screen during the simulation and unlocked 
it to stop the simulation, no problem to resume). So, my first 
feeling was wrong, it's not a prompt limitation.
It might be java-related as -nwni is shutting off all the java-based 
elements of Scilab.


I don't know whether this bug has been reported yet...


Did you try without the mprintf ?

S;




Antoine



Strange behaviour...

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 




___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 



--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab stops calculus

2021-03-11 Thread Antoine Monmayrant



On 11/03/2021 11:08, Jean-Yves Baudais wrote:

Hi Antoine,


Are you running scilab under Linux?

Yes.


It might not be related, but I noticed that when my computer resumes
from sleep, all the scilab GUI is unresponsive.

I removed all sleep modes on my computer (to maintain VPN access and get around 
some other problems) and I never use them.


Can you run your long simulation without gui?

It was. I tested the following

i=0;while 1, i=i+1;mprintf("%d\n",i); end;

and there is no problem up to i=2e8 with -nwni option, and up to i=5e7 with gui 
(I locked my screen during the simulation and unlocked it to stop the 
simulation, no problem to resume). So, my first feeling was wrong, it's not a 
prompt limitation.
It might be java-related as -nwni is shutting off all the java-based 
elements of Scilab.


I don't know whether this bug has been reported yet...

Antoine



Strange behaviour...

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab stops calculus

2021-03-11 Thread Jean-Yves Baudais
Hi Antoine,

> Are you running scilab under Linux?

Yes.

> It might not be related, but I noticed that when my computer resumes
> from sleep, all the scilab GUI is unresponsive.

I removed all sleep modes on my computer (to maintain VPN access and get around 
some other problems) and I never use them.

> Can you run your long simulation without gui?

It was. I tested the following

i=0;while 1, i=i+1;mprintf("%d\n",i); end;

and there is no problem up to i=2e8 with -nwni option, and up to i=5e7 with gui 
(I locked my screen during the simulation and unlocked it to stop the 
simulation, no problem to resume). So, my first feeling was wrong, it's not a 
prompt limitation.

Strange behaviour...

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab stops calculus

2021-03-11 Thread Antoine Monmayrant

Hello Jean-Yves,

Are you running scilab under Linux?
It might not be related, but I noticed that when my computer resumes 
from sleep, all the scilab GUI is unresponsive.

I don't have this issue when running scilab-cli.
Can you run your long simulation without gui?

Antoine

Le 10/03/2021 à 22:30, Jean-Yves Baudais a écrit :

Hello,

   Two times Scilab was stuck after 20 hours of simulation (I used to do 
simulations that need more than one week with Scilab 5). It was big simulation 
with many levels of iterations (to evaluate probabilities), with intermediate 
results written in files (different files with save command and timestamp), and 
with the iteration numbers written in the Scilab window (so many output lines). 
All worked fine still Scilab locks with:
- no CPU activity (Scilab really stops all calculus, but not exits),
- low memory use as expected (no mem leakage),
- the Scilab window blocked, showing the intermediate iteration numbers (Scilab 
is blocked within an iteration, there is no input-output issues in this part of 
the code), but nothing can be done (CTRL-C, CTRL-D or any control command).
I must kill the Scilab process within a Shell terminal. I also executed the 
"faulty" iteration alone (with 1e4 sub-iterations in more or less 2 hours), but 
there is no problem. I obtained the result. So I can get around the problem, but not 
solved it.

Is there some known limitations? limited prompt lines for example...

Thanks


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Overarching subplot title for graphic window

2021-03-11 Thread Jean-Yves Baudais
Hi,

> I have been trying to figure out a way to add an overarching title on the
> graphic window that goes above the subplots? I have titles over each of my
> subplots, but I want one that is the title of the graphic window where the
> subplots are shown. I want to have the title to give a summary of what the
> subplots are of.

Something like that?

scf(0);
xtitle("Title")
xsetech([0,0.1,0.5,0.45]),plot(1:10,1:10),xtitle("First")
xsetech([0.5,0.1,0.5,0.45]),plot(1:10,-(1:10)),xtitle("Second")
xsetech([0,0.55,1,0.45]),plot(0:10,sin(0:10)),xtitle("Last")

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users