bugGNU Octave - Bugs: bug #61138, Function output cannot be directly...

 
 

bug #61138: Function output cannot be directly indexed

Submitter:  PIERRE LABRECHE <pierre5018>
Submitted:  Fri 10 Sep 2021 12:57:13 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  PIERRE LABRECHE Open/Closed:  * Closed
Release:  * 6.3.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 13 Sep 2021 06:53:48 AM UTC, comment #2: 

Thanks, the approach of comment #1 works for me.

Another alternative


[whos()].bytes


Closing.  If there is still a problem, the report can be reopened again.

Kai Torben Ohlhus <siko1056>
Group Member
Fri 10 Sep 2021 01:54:38 PM UTC, comment #1: 

Try "whos.bytes" not "whos().bytes".

Anonymous
Fri 10 Sep 2021 12:57:13 PM UTC, original submission:  

I am trying to analyze memory usage of a large application.
It aborts with this error:

error: out of memory or dimension too large for Octave's index type
error: called from
    FUNCTION at line 93 column 14



debug> whos().bytes
Variables visible from the current scope:

variables in scope:... FUNCTION.m

   Attr Name               Size                     Bytes  Class
   ==== ====               ====                     =====  =====
    f   A               1024x1536                12582912  double
        A1              1024x1536                12582912  double
    f   B               1024x1536                12582912  double
    f   Ratio_A         1024x1536                12582912  double
        Ratio_B         1024x1536                12582912  double
        dims_of_ratio      1x1                          8  double

Total is 7864321 elements using 62914568 bytes

error: indexing undefined value
error: called from ...


PIERRE LABRECHE <pierre5018>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by pierre5018 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-13 siko1056 StatusNone Works For Me
        Open/ClosedOpen Closed
        SummaryDebug prompt command whos() aborts with unexpected &quot;error: indexing undefined value&quot; Function output cannot be directly indexed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code