octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52276] [MXE] Octave cannot display data anymo


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #52276] [MXE] Octave cannot display data anymore after too long a data listing
Date: Tue, 24 Oct 2017 15:04:30 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

URL:
  <http://savannah.gnu.org/bugs/?52276>

                 Summary: [MXE] Octave cannot display data anymore after too
long a data listing
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Tue 24 Oct 2017 09:04:28 PM CEST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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:

filename='HB_SNG3.html';
if ~exist(filename,'file')
  %download file
 
url='http://web.archive.org/web/20170807165834/https://www.bible.com/nl/bible/75/SNG.3.htb';
  urlwrite(url,filename);
end
%load file
fid=fopen(filename,'rt','n');
data=textscan(fid,'%s','Delimiter','\n');
fclose(fid);
%convert file to a single long string


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

>> data=data{1}

data =
{
  [1,1] = <html
data-app-icon="/assets/icons/bible/200/nl-ffe9a1367dc318fe380815df2b772013.pn
g" data-default-locale="en" data-locale="nl" data-logged-in="false" dir="ltr"
lang="nl">
:
:    <loooong snip>
:
  [232,1] = <script
src="http://web.archive.org/web/20170801165834js_/https://nodejs.bible.co
m/assets/vendor.e22156b1db2119fc8490.js"></script>
  [233,1] = >>


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:

  [232,1] = <script
src="http://web.archive.org/web/20170801165834js_/https://nodejs.bible.co
m/assets/vendor.e22156b1db2119fc8490.js"></script>
  [233,1] = >>
>> filename
>> data
>>
>> disp (filename);

>> disp (filename)
>>


(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.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52276>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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