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

Submitter:  None
Submitted:  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 Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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>
Group administrator
Fri 05 Aug 2011 08:54:01 PM UTC, comment #2: 

Thanks,

I think I changing the toolkit (presuming that the following is correct)
graphics_toolkit('fltk')
graphics_toolkit('gnuplot')

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;
plot(x,y);

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

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;
plot(x,y);


Rik <rik5>
Group 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.

Mike
----------------------------------------
$ 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.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
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
octave:3>
--------------------------------------------

Anonymous

 

(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 mikereid (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 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.13-02a9.
    Corresponding source code