bugGNU Octave - Bugs: bug #52276, Octave cannot display data through...

 
 

bug #52276: Octave cannot display data through pager after too long a data listing on Windows

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Tue 24 Oct 2017 07:04:28 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Need InfoAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Open
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 27 Oct 2017 08:04:06 AM UTC, comment #3:

That occurred to me as well :-)
After "more on" variable display seems somewhat restored, yes.
But then after one successful listing "data{1}" (actually "data" after the offending command) it doesn't work reliably. I fact I couldn't get variable display to work at all anymore.

The variable "data{1}" contains a number of extremely long text strings w/o newlines that perhaps seem to clobber up the (cmd32.exe-based) terminal on Windows.
After "more on" I could inspect more elements of data{1} but I needed to enter loads of <f>, PG-DN and "arrow down" at random order to get through the listing. Often it stalls and <arrow down> one or more times then helps to display up to the next --less-- prompt.
In addition the "-- less -- (f)orward, (b)ack, (q)uit" prompt only occasionally appears at the bottom, usually it appears somewhere random in the terminal (see attached pic).

It looks like another manifestation of deficiencies of the Windows terminal.
But before simply putting it off like that I'd like to be more sure if that is really true and if there's a solution.

(file #42278)

Philip Nienhuis <philipnienhuis>
Project Member
Thu 26 Oct 2017 08:49:24 PM UTC, comment #2:

After this error occurs, does running "more off" allow subsequent values to print? Does running "more on" again return to the broken state or does it start working again?

(Removed "MXE" from summary field to disambiguate from mxe-octave build system bugs.)

Mike Miller <mtmiller>
Project Administrator
Tue 24 Oct 2017 07:05:29 PM UTC, comment #1:

BTW I always disable the pager by "more off"

Philip Nienhuis <philipnienhuis>
Project Member
Tue 24 Oct 2017 07:04:28 PM UTC, original submission:

This is an issue I encountered irregularly in the last months but couldn't put a finger on.
However while checking if Dan's textscan fixes for bug #52116 would also fix bug #51707 (it appears they do BTW) I found a (for me) reliable way to reproduce the issue.

Steps:

1. Go to bug #51707

2. Execute steps in L.1-11 of the ommand listing in the original report. For convenience, reproduced here:

Then execute the next command (w/o trailing semicolon):

Note that cell array "data" has 1109 items but the listing ends after the start of the 233th.

Next, trying to display any variable value fails until after restart of Octave:

(Note the lack of ";" after the commands).

Right-clicking the variable in the workspace and selecting "disp(data)" doesn't work either, see above.

It looks like the amount of data exceeds some buffer after which code to display values is wiped or rendered in-executable.

Philip Nienhuis <philipnienhuis>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by philipnienhuis (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Oct 2017 08:04:06 AM UTCphilipnienhuisAttached File-=>Added bug52276_cmt#3.PNG, #42278
    Thu 26 Oct 2017 08:49:24 PM UTCmtmillerStatusNone=>Need Info
      Summary[MXE] Octave cannot display data anymore after too long a data listing=>Octave cannot display data through pager after too long a data listing on Windows

    Back to the top


    Powered by Savane 3.1-cleanup1