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

Submitted by:  Jordi Gutiérrez Hermoso <jordigh>
Submitted on:  Thu 03 Feb 2011 10:20:32 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Jussi Judin <jjudin+debian@iki.fi>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.

 

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>
Project 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>
Project Administrator
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>
Project Administrator

 

(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 jordigh (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Sep 2011 05:13:14 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 16 Mar 2011 02:30:31 PM UTCjordighStatusIn Progress=>Confirmed
      Assigned tojordigh=>None

    Back to the top


    Powered by Savane 3.1-cleanup1