bugGNU Octave - Bugs: bug #36493, memory exhausted when plotting...

 
 

bug #36493: memory exhausted when plotting small negative constant data with log scale

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Fri 18 May 2012 08:51:07 PM UTC  
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Fri 25 May 2012 11:04:26 PM UTC, comment #3: 

You definitely found the right piece of code.  I checked in a fix here (http://hg.savannah.gnu.org/hgweb/octave/rev/e3da2a68d709) although I decided to use an if/then approach because I thought it was clearer.

Rik <rik5>
Project Administrator
Fri 25 May 2012 01:12:29 PM UTC, comment #2: 

Hi,

I think the problem is around line 5931 of graphics.cc. min_val should be increased if negative and max_val decreased. Is it elegant something like

min_val *= (1-signum(min_val)/10);
max_val *= (1+signum(min_val)/10);

? Or, is it better an if-else solution?

Marco

Marco Caliari <caliari>
Project Member
Thu 24 May 2012 01:40:48 AM UTC, comment #1: 

Confirmed on a recent tip (5/23/12).  In addition I clarified in the Summary that the constant data needs to be negative.

Rik <rik5>
Project Administrator
Fri 18 May 2012 08:51:07 PM UTC, original submission:  

I get the following error in the current development sources:

>> loglog (logspace (-3, 2, 100), -1e-8 * ones (1, 100))
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
>> semilogy (logspace (-3, 2, 100), -1e-8 * ones (1, 100))
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt

this happens with both gnuplot and fltk backends.

c.

Carlo de Falco <cdf>
Project Member

 

(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 caliari (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by cdf (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
    2012-05-25 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2012-05-24 rik5 StatusNone => Confirmed
        Summarymemory exhausted when plotting small constat data with log scale => memory exhausted when plotting small negative constant data with log scale

    Back to the top


    Powered by Savane 3.5