bugGNU Octave - Bugs: bug #32345, drawing an invalid 3D line makes...

 
 

bug #32345: drawing an invalid 3D line makes it impossible to draw more lines

Submitter:  Jordi Gutiérrez Hermoso <jordigh>
Submitted:  Thu 03 Feb 2011 10:20:32 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Jussi Judin <jjudin+debian@iki.fi> Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 29 Sep 2011 05:13:14 PM UTC, comment #2: 

Fixed on the stable branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/248d05c413dc).  The reporter can wait for the expected stable 3.4.3 release in the next month or build from source to see the fix.

line() now actually validates its inputs to prevent putting the graphics toolkit into an unrecoverable state.

Rik <rik5>
Group administrator
Wed 16 Mar 2011 02:30:31 PM UTC, comment #1: 

I am not able at present to work on this bug, so I'm de-assigning it from myself. It doesn't happen with the fltk backend, if that's any help. However, with the fltk backend, this code does not produce a 3d line, nor does it produce any error at all.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 03 Feb 2011 10:20:32 PM UTC, original submission:  

This is a bug reported in Debian

      http://bugs.debian.org/610659

I reproduce the relevant part of the report here:

---------------------------------------------------------------

Drawing a line with 3D coordinates makes it impossible to draw more lines.
Following commands demonstrate this problem:

octave-3.2.4:1> line([0 10], [10 10])
octave-3.2.4:2> line([0 10], [10 10], [])
octave-3.2.4:3> line([0 10], [10 10], [0])
error: number of rows must match (1 != 2) near line 449, column 37
error: called from:
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_axes__.m at line 449, column 22
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_figure__.m at line 92, column 3
error:   /usr/share/octave/3.2.4/m/plot/gnuplot_drawnow.m at line 99, column 5
octave-3.2.4:4> line([0 10], [10 10], [])
error: number of rows must match (1 != 2) near line 449, column 37
error: called from:
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_axes__.m at line 449, column 22
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_figure__.m at line 92, column 3
error:   /usr/share/octave/3.2.4/m/plot/gnuplot_drawnow.m at line 99, column 5
octave-3.2.4:5> line([0 10], [10 10])
error: number of rows must match (1 != 2) near line 449, column 37
error: called from:
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_axes__.m at line 449, column 22
error:   /usr/share/octave/3.2.4/m/plot/__go_draw_figure__.m at line 92, column 3
error:   /usr/share/octave/3.2.4/m/plot/gnuplot_drawnow.m at line 99, column 5

So first line([0 10], [10 10]) draws line correctly, but if I try to draw that
line again after trying to draw an invalid 3D line, it's not possible any more.

Jordi Gutiérrez Hermoso <jordigh>
Group 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 rik5 (Posted a comment)
  • -email is unavailable- added by jordigh (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-09-29 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-03-16 jordigh StatusIn Progress Confirmed
        Assigned tojordigh None

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code