bugGNU Octave - Bugs: bug #55993, shading fails when...

 
 

bug #55993: shading fails when kids=get(parents,"children") returns a cell instead of ghandle

Submitter:  None
Submitted:  Mon 25 Mar 2019 01:37:04 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 27 Mar 2019 07:01:43 PM UTC, comment #1: 

Confirmed that this is a problem.  I fixed this here (https://hg.savannah.gnu.org/hgweb/octave/rev/1e5dde93eb26) on the stable branch.  It will be a part of the next bug fix minor release (5.2.0).

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Mon 25 Mar 2019 01:37:04 AM UTC, original submission:  

if a figure is filed with a surface and 2 other quiver3 plots for example, shading returns the error.

error: octave_base_value::array_value(): wrong type argument 'cell'
error: get: H must be a graphics handle

It happens in this part of shading line 66 to 82


hlist = [];
  kids = get (hax, "children");
  while (! isempty (kids))
    types = get (kids, "type");
    hlist = [hlist; kids(strcmp(types, "patch"))];
    hlist = [hlist; kids(strcmp(types, "surface"))];
    parents = kids(strcmp (types, "axes"));
    hglist = kids(strcmp (types, "hggroup"));
    for i = 1 : numel (hglist)
      props = get (hglist(i));
      if (! isfield (props, "levelstep"))
        parents(end+1) = hglist(i);
      endif
    endfor
    if
    kids = get (parents, "children");
  endwhile


from what i have been able to figure out, for 2 or more quiver3 plots, 2 hggroups are created and found in

hglist = kids(strcmp (types, "hggroup"));

The for loop puts them in parents making parents a array
and get returns a cell of "children"(graphics handles)? to kids.
At the beginning of the while loop
verbatim+
types = get (kids, "type");
-verbatim-
fails because get cant handle a cell, only arrays of graphics handles?

Anonymous

 

(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)
  •  

    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
    2019-03-27 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.4.1 5.1.0
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code