bugGNU Octave - Bugs: bug #62378, Unexpected Return for findobj()...


bug #62378: Unexpected Return for findobj() with Param "-depth"

Submitter:  Glite <linuxbckp>
Submitted:  Thu 28 Apr 2022 12:24:11 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 30 Apr 2022 05:29:09 AM UTC, comment #2: 

Fixed on the stable branch in this changeset: https://hg.savannah.gnu.org/hgweb/octave/rev/9a9374ed5270.

This will be a part of the 7.2 bug fix release.  Closing report.

Rik <rik5>
Group administrator
Sat 30 Apr 2022 04:50:28 AM UTC, comment #1: 

Confirmed.  The input validation should check that any graphic handles are valid before continuing.

Rik <rik5>
Group administrator
Thu 28 Apr 2022 12:24:11 PM UTC, original submission:  

When using findobj() with param "-depth", it may incorrectly return a mat, not throw error.
Here is my code:

>> findobj([0 1 10])

error: get: invalid handle (= 10)
error: called from
    findobj at line 228 column 16

>> findobj([0 1 10], "-depth", 0)

ans =


Glite <linuxbckp>


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

Attach Files:

Attached Files


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by linuxbckp (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-30 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2022-04-30 rik5 CategoryGUI Octave Function
        StatusNone Confirmed
        Release6.4.0 7.1.0
    2022-04-30 rik5 Dependencies- bugs #62377 is dependent
    2022-04-28 linuxbckp Attached File- Added ksnip_20220428-201655.png, #53155

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code