bugGNU Octave - Bugs: bug #42823, index error in...

 
 

bug #42823: index error in surface::properties::update_normals

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Tue 22 Jul 2014 09:50:49 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Jul 2014 05:47:38 AM UTC, comment #1:

I worked around the bug with this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c66029adf853). Closing report.

Rik <rik5>
Project Administrator
Tue 22 Jul 2014 09:50:49 AM UTC, original submission:

A current dev (ed3cb9f81145) build with debugging enabled
./configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g --enable-bounds-check

fails with surface (or demo pie3 or demo ribbons)

The indexing comes from surface::properties::update_normals at ../../octave-src/libinterp/corefcn/graphics.cc:8132 (comment says lower right quadrangle)

I've added output of x,y,z at the top of update_normals. As you can see update_normals is first called with real xdata and defaults for ydata and zdata (see default_surface_ydata).
After this update_normals is called again with real xdata and ydata and this time the indexing problem occours because x and y are 2x3, z is 3x3 (I suppose a third call with real zdata would follow)

I don't fully gasp the logic behind "update_normals" so I would be pleased if someone other could fix this.

-- Andy

Andreas Weber <andy1978>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by andy1978 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Jul 2014 05:47:38 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1