bugGNU Octave - Bugs: bug #50692, Command Window outputs spurious...


bug #50692: Command Window outputs spurious newline every 30 sec.

Submitted by:  None
Submitted on:  Fri 31 Mar 2017 04:30:25 PM UTC  
Category:  GUI Severity:  3 - Normal
Priority:  3 - Low Item Group:  Unexpected Error
Status:  Need Info Assigned to:  None
Originator Name:  tcbrooke Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  5.1.0
Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Wed 10 Jul 2019 02:09:01 PM UTC, comment #15: 

This issue is also showing up in the CLI, not just the GUI.

I left the CLI open overnight, and it has started doing this (generating spurious line feeds) at some point, still every 30 seconds, but now slightly after the 17 and 47 second marks of the system clock. This may be a useful clue as to what's causing the issue...

Mike Britton <mbritton>
Fri 05 Jul 2019 02:25:07 PM UTC, comment #14: 

I'm also running into this on a fresh install of Octave 5.1.0 on Windows 10 ("About Octave" reports Octave was configured for "x86_64-w64-mingw32".).

Interestingly, the bonus line breaks are occurring at the 18 and 48 second marks of the system clock for me too, and this remains consistent after closing and reopening Octave.

It looks like this bug has been independently reported quite a few times (4 duplicates, plus several "me too" here), and it impacts the usability pretty significantly. I'd like to request a priority bump on it.

Thanks nevertheless for a very handy and powerful free tool!

Mike Britton <mbritton>
Tue 02 Apr 2019 11:44:46 AM UTC, comment #13: 

This problem is only in the GUI command window, not the CLI terminal.  It happens regardless where the focus is, even when focus is in another application and also when Octave is minimized to the task bar.  It is of course most annoying when you are typing and editing a formula in the command window and suddenly there is a line break in the middle of your formula and you can not go back up.

I have to take back my previous comment about this happening on the 0 and 30 second mark of the system clock.  Now it was at 48 and 18 second marks.  But always exactly 30 seconds apart.

Tom Ahola <tomahola>
Tue 02 Apr 2019 11:04:00 AM UTC, comment #12: 

Where (on which pane) is the focus when this happens? on the terminal pane? or is the focus not on Octave?

I'm asking because at work I often have my PC (Win 7 Enterprise) with Octave in the foreground idle for hours and hours when I'm away for other tasks and I never noted spurious newlines.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 02 Apr 2019 09:16:57 AM UTC, comment #11: 


Does this also happen with the CLI or only with the GUI?

Markus M├╝tzel <mmuetzel>
Project Member
Tue 02 Apr 2019 07:47:09 AM UTC, comment #10: 

I have the same problem.  This makes Octave GUI Command line practically unusable.  This bug has been there for over a year.  I used version 4.2.1 earlier and had to abandon use.  Now I tried version 5.1.0 and the bug is still there.  I have Windows 7.

Every 30 seconds, when system time hits an even minute and 30 seconds past the minute, the command window cursor skips to the next line. One can still type to the command line and hit enter in the end. The command line now split at random points to several lines will be successfully computed. The problem is that you can not edit the line back past the inserted line break and the whole thing looks really messy.

I tried to un-install and re-install but that did not help in my case.  I suggest the bug to be re-opened because it practically prevents the use of Octave GUI.

Tom Ahola <tomahola>
Thu 21 Mar 2019 12:34:04 AM UTC, comment #9: 

I confirmed that both 5.1.0-w64 and 4.4.1-w64 still have this problem on my Windows7 computer.

I have tried re-installing Octave and have not loaded any OF packages. But this problem did not go away - very annoying.

It will be greatly appreciated if you can fix this problem.

Auto Tiger <autotiger>
Sun 10 Mar 2019 06:51:56 PM UTC, comment #8: 

No response, asumming this has been fixed in the latest release.  Closing report.

Rik <rik5>
Project Administrator
Sun 03 Mar 2019 06:25:23 AM UTC, comment #7: 

Version 4.4.1 is deprecated and no longer supported.  Please try with the latest stable release which is 5.1.0.  The problem is likely to have been fixed.

Rik <rik5>
Project Administrator
Thu 24 Jan 2019 04:25:24 PM UTC, comment #6: 

I can't reproduce the problem with 4.4.1 and Windows 7 running in a virtualbox vm.

This sounds like a readline input event hook function is somehow installed and that it is displaying a newline character, except in that case it should happen every 0.1 seconds.  I have no idea what would write a newline every 30 seconds.

John W. Eaton <jwe>
Project Administrator
Thu 24 Jan 2019 03:23:21 PM UTC, comment #5: 

The problem is still present in 4.4.1 on Windows 7 64 bits.

Mon 20 Nov 2017 11:15:09 AM UTC, comment #4: 

I have exactly the same problem, no chance of turning that off.
Tried a lot the last few months, nothing worked.
Only use it with CLI now.

Stefan <thehighendoflow>
Wed 28 Jun 2017 10:36:07 PM UTC, comment #3: 

This behavior has been confirmed by an independent reporter using Windows 7 (see bug #51301). Still lacking reproducibility or explanation.

Mike Miller <mtmiller>
Project Administrator
Tue 04 Apr 2017 05:15:11 PM UTC, comment #2: 

After reinstalling Octave:  still does it.

No OF packages loaded.
Just start "Octave (GUI)" and click things.
However, it's my understanding that some packages are loaded implicitly (e.g., general and miscellaneous).  Here's my path immediately after startup:

p = .;C:\Octave\OCTAVE~1.1\lib\octave\4.2.1\site\oct\x86_64-w64-mingw32;C:\Octave\OCTAVE~1.1\lib\octave\site\oct\

It still does it after closing/showing the Command Window, and/or the File Browser, and/or the Workspace, and/or the Command History panes.

During installation, Octave reported that it couldn't find a JRE.  There is a JRE installed, and on the path, but the items on the path are symlinks.  I could not find a way to tell Octave where to look specifically.

During installation, I selected the [default] "OpenBLAS" library.

No idea if any of that matters.

Mon 03 Apr 2017 08:41:40 PM UTC, comment #1: 

I tried your examples in Octave-4.3.0+ (dev version) but I cannot reproduce your issues.
The sort of problems you describe are often fairly hard to reproduce anyway.
Windows 10 with all its silent if not stealth updates / upgrades is a bit of a moving target - that already broke some of my hardware drivers (reason for me to stick with Win 7 as much as I can).

Have you tried re-installing Octave?
Did you have any OF packages loaded (using the "pkg load <list of packages>" command?
Have you experimented with showing / hiding panes?
(sorry for all those questions but you seem to be able to reproduce, so you're the one best suited to discover some sort of pattern or consistent behavior)

Philip Nienhuis <philipnienhuis>
Project Member
Fri 31 Mar 2017 04:30:25 PM UTC, original submission:  

Some commands/actions cause the Command Window to output a newline every 30 seconds or so. Even when in the middle of entering a command.

Once it starts, there does not seem to be any way to stop it.

Things which seem to cause it to happen:

  • Expand a directory (the '+' icon) in the File Browser panel.
  • Select a recent directory from the File Browser current working directory choice/drop-down/combo-box control
  • Double-click a directory in the File Browser panel.

Things which don't seem to cause it to happen:

  • Scroll the list of files/directories in the File Browser panel.
  • Show the drop-down list of recent directories (without selecting one)
  • Select (single-click) a directory in the File Browser panel.

Additionally, some commands seem to trigger the problem fairly reliably -- but not universally:

  • 'cd Someplace' (no quotes)
  • 'cd ".."'

Others do not:

  • 'cd "Someplace"' (with quotes)

Clearing the command window does NOT stop the periodic newlines.

Unchecking the preference "Synchronize Octave Working Directory with file browser" does not stop the periodic newlines, nor does it prevent them from happening in the first place.


Windows10 (yes, I realize this is still experimental)

GNU Octave, version 4.2.1
Octave was configured for "x86_64-w64-mingw32".

Installed from "octave-4.2.1-w64-installer.exe"

Invoked from "Octave (GUI)" choice on Start menu



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #46694:  octave_bug.png added by tomahola (28KiB - image/png - This is how it looks like with three unwanted line breaks)


Carbon-Copy List
  • -email is unavailable- added by jimfitchusa
  • -email is unavailable- added by mbritton (Posted a comment)
  • -email is unavailable- added by stromi
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by tomahola (Posted a comment)
  • -email is unavailable- added by autotiger (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by thehighendoflow (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 16 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-03 jimfitchusa Carbon-Copy- => Added jimfitchusa
    2019-07-12 mmuetzel Dependencies- => bugs #56617 is dependent
    2019-05-31 stromi Carbon-Copy- => Added stromi
    2019-04-25 mtmiller Dependencies- => bugs #56209 is dependent
    2019-04-02 mtmiller Priority5 - Normal => 3 - Low
        Item GroupNone => Unexpected Error
        Release4.2.1 => 5.1.0
    2019-04-02 mtmiller Dependencies- => bugs #55897 is dependent
    2019-04-02 rik5 Carbon-CopyRemoved 72865 => -
    2019-04-02 mmuetzel Open/ClosedClosed => Open
    2019-04-02 tomahola Attached File- => Added octave_bug.png, #46694
    2019-03-10 rik5 Open/ClosedOpen => Closed
    2019-01-24 mtmiller Carbon-CopyRemoved 80942 => -
    2017-07-12 mmuetzel Dependencies- => bugs #51446 is dependent
    2017-06-28 mtmiller StatusNone => Need Info
    2017-06-23 mtmiller Dependencies- => bugs #51301 is dependent

    Back to the top

    Powered by Savane 3.5