help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 4.0.1 CTRL-C questions


From: Jeffrey Tsang
Subject: Re: Octave 4.0.1 CTRL-C questions
Date: Wed, 25 May 2016 11:01:54 +0000 (UTC)

I am unable to reproduce the CTRL-C crash problem in Octave 4.0.1 CLI now. I will let you know if I manage to crash it again.

Here's another issue with CTRL-C with Octave CLI. If I add another pause to the script to become:

clear; close all; clc

x = [1; 2; 3; 4];
y = x;

plot(x, y, 'rx', 'MarkerSize', 10);
fprintf('#1 Program paused. Press enter to continue.\n');
pause;

fprintf('#2 Program paused. Press enter to continue.\n');
pause;

Now, if you press CTRL-C at "#1 Program paused", the script continues to "# Program paused" instead of being aborted. It looks to me that CTRL-C is treated as a normal keystroke to break out of the pause. I'd have thought that it should abort the script instead.



From: Tatsuro MATSUOKA <address@hidden>
To: Jeffrey Tsang <address@hidden>; Nicholas Jankowski <address@hidden>
Cc: address@hidden
Sent: Wednesday, May 25, 2016 3:34 PM
Subject: Re: Octave 4.0.1 CTRL-C questions





----- Original Message -----
>From: Jeffrey Tsang <address@hidden>
>To: Tatsuro MATSUOKA <address@hidden>; Nicholas Jankowski <address@hidden>
>Cc: "address@hidden" <address@hidden>
>Date: 2016/5/25, Wed 15:49
>Subject: Re: Octave 4.0.1 CTRL-C questions
>----- Original Message -----
>>From: Jeffrey Tsang 
>>To: Tatsuro MATSUOKA ; Nicholas Jankowski  
>>Cc: "address@hidden
>>Date: 2016/5/25, Wed 13:13
>>Subject: Re: Octave 4.0.1 CTRL-C questions
>> 
>>
>>Here's a simple script that crashes Octave GUI all the time.
>>
>>
>>clear; close all; clc
>>
>>
>>x = [1; 2; 3; 4];
>>>y = x;
>>>
>>>
>>>plot(x, y, 'rx', 'MarkerSize', 10);
>>>fprintf('Program paused. Press enter to continue.\n');
>>>pause;
>>
>>
>>The steps to reproduce is:
>>
>>
>>    1. cd the to directory that contains the script.
>>    2. Run the script.
>>    3. When you see "Program paused. Press enter to continue", press CTRL-C twice. 
>>    4. Now, you should see "Press Control-C again to abort.".
>>    5. Press CTRL-C again. Then Octave GUI crashes.
>>
>>
>>However, this simple script does not crash Octave CLI. But my other complex scripts crash both CLI and GUI all the time. In fact, it was the octave-gui.exe that crashes when CTRL-C is pressed inside both CLI and GUI. I hope that gives you some clue where to look for the bug.
>>
>>
>>Regards,
>>
>>
>>Jeffrey
>>
>
>http://savannah.gnu.org/bugs/?44470
>
>
>Please participate in discussion in the above tracker.
>If you do not have accout for bug tracker, please resister from the below.
>(Please go to "Login" on the left menu and goto "Login screen" and click [No account yet?]
>The you can create your account.)
>
>http://savannah.gnu.org/bugs/?group=octave
>
>
>
>Tatsuro
>
>
>I may not create an account there. Feel free to post my inputs onto the bug tracker. 
>
>
>


I have input your post here to the bug tracker.
https://savannah.gnu.org/bugs/?44470#comment14



Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]