bugGNU Octave - Bugs: bug #33947, plot gives out of memory error...


bug #33947: plot gives out of memory error with some data on Fedora 15

Submitted by:  None
Submitted on:  Fri 05 Aug 2011 05:21:18 AM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Mike Reid Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.4.0
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 05 Aug 2011 10:22:55 PM UTC, comment #4: 

Thanks, Rik,

I can confirm that my locally compiled 3.4.2 is fine.


Mike Reid <mikereid>
Fri 05 Aug 2011 09:22:49 PM UTC, comment #3: 

This has been fixed after the version 3.4.0 that you are using.  The fix is in the 3.4.2 release available on the website but you will need to build from source.

The original bug report for this is https://savannah.gnu.org/bugs/?func=detailitem&item_id=32528

See also this duplicate which was specifically for plot on 32-bit systems https://savannah.gnu.org/bugs/?func=detailitem&item_id=33072

Rik <rik5>
Project Administrator
Fri 05 Aug 2011 08:54:01 PM UTC, comment #2: 


I think I changing the toolkit (presuming that the following is correct)

And that didn't change the error message.

Have also tried:
octave -f       # runs without loading .octaverc files
pkg unload all  # remove any packages
x = 0.1:0.1:1;
y = 0.043 * x.^0.36;

I asked about this on the Fedora forum: http://forums.fedoraforum.org/showthread.php?p=1501566&posted=1#post1501566
and got a reply that it worked with the 64-bit Fedora 15 installation (I'm running 32 bit).

I can add that the graph does appear, but the error message throws me out of whatever function is running.


Mike Reid <mikereid>
Fri 05 Aug 2011 08:38:31 PM UTC, comment #1: 

Which plotting toolkit are you using?  gnuplot or fltk?  And does switching to the other toolkit solve the problem?

help graphics_toolkit

Also, for the simple example you posted, can you run it without any user customization and without any installed packages?  I want to be sure it's not something in your environment.

octave -f       # runs without loading .octaverc files
pkg unload all  # remove any packages
x = 0.1:0.1:1;
y = 0.043 * x.^0.36;

Rik <rik5>
Project Administrator
Fri 05 Aug 2011 05:21:18 AM UTC, original submission:  

Plotting certain data gives me an out of memory error. It depends on the range and the details of the data, i.e. only crashes for particular numbers. 

Using Fedora 15 distribution.

See example below.

$ octave
GNU Octave, version 3.4.0
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i386-redhat-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

warning: dispatch is obsolete and will be removed from a future version of Octave; please use classes instead
warning: function /usr/share/octave/packages/specfun-1.0.9/erfcx.m shadows a built-in function
octave:1> x = 0.1:0.1:1;
octave:2> y = 0.043 * x.^0.36;
octave:3> plot(x,y);
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt



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

Attach Files:

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 mikereid (Posted a comment)
  • -email is unavailable- added by rik5 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-05 rik5 StatusNeed Info => Duplicate
        Open/ClosedOpen => Closed
    2011-08-05 rik5 StatusNone => Need Info
        Release3.2.0 => 3.4.0

    Back to the top

    Powered by Savane 3.6