bugGNU Octave - Bugs: bug #57792, patch command returns error

 
 

bug #57792: patch command returns error

Submitter:  None
Submitted:  Tue 11 Feb 2020 07:22:26 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Glenn Groeschel Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 12 Feb 2020 07:39:29 AM UTC, comment #2: 

Thank you for your bug report. Fortunately, this appears to have been fixed in the development branch of Octave that will be released as version 6.1.0 soon.

From the description, this appears to be the same as bug #55895, closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Tue 11 Feb 2020 07:34:20 PM UTC, comment #1: 

Note: Error occurs whether using 'qt' or 'fltk' graphics toolkit.

Glenn Groeschel <glenn>
Tue 11 Feb 2020 07:22:26 PM UTC, original submission:  

When calling the patch command, in release 5.2.0 (hg id: eb46a9f47164) an error is returned when NaN's exist in the vertices.  Release 5.1.0 (hg id: d05d6eebde10) completes successfully, and also matches Matlab output.

Running on Windows 7 Professional 64bit. 

The following code produces the error in 5.2.0 for the second figure.  First figure (without NaN's is rendered properly for 5.1.0 and 5.2.0)

figure;
hax=gca;
v2 = [2 4 1; 2 8 0; 7 8 5; 8 4 2; 5 0 3; 5 2 4; 8 2 4; 8 0 5];
f2 = [1 2 3 4;
     5 6 7 8];
c=[0;.2;.5;.7;.8;1;0.4;.3];
%This works fine
patch(hax,'Faces',f2,'Vertices',v2,'FaceVertexCData',c,'FaceColor','interp','EdgeColor','interp','FaceAlpha',1,'DisplayName','test1');

figure;
hax2=gca;
v2(2:3,:)=NaN;
%This returns error
patch(hax2,'Faces',f2,'Vertices',v2,'FaceVertexCData',c,'FaceColor','interp','EdgeColor','interp','FaceAlpha',1,'DisplayName','test2');


The error produced on my machine is:

DLASCL: parameter number 4 is invalid
error: Fortran procedure terminated by call to XERBLA
error: __go_patch__: unable to create graphics handle
error: called from
    __patch__ at line 171 column 7
    patch at line 86 column 18
    patch_test_simp at line 16 column 1


Noticed some other recent submissions related to patch, but this seemed like it may be a different issue.


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by glenn (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-12 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #55895

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code