bugGNU Octave - Bugs: bug #49645, waitfor should silently accept an...

 
 

bug #49645: waitfor should silently accept an empty graphics handle

Submitter:  Guillaume <gyom>
Submitted:  Fri 18 Nov 2016 04:53:53 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 13 Jan 2017 05:56:15 AM UTC, comment #6: 

Again,

What about pushing this fix to stable branch, so it will enter 4.2.1?

Avinoam Kalma <avinoam>
Group Member
Sun 20 Nov 2016 08:29:16 PM UTC, comment #5: 

Rik,

if we were a few days before a release, you are absolutely right.

But now, we are a few months from 4.2.1, which will be a bug fix release.
Such bugs, though not important, but with a localized fix,
and without environmental damage, should be part of 4.2.1.
That's  why I would to see it in the stable branch.

Avinoam Kalma <avinoam>
Group Member
Sun 20 Nov 2016 05:00:53 AM UTC, comment #4: 

It doesn't fix an important bug, like a crash or an incorrect answer, it just makes Octave slightly more Matlab compatible.  This isn't enough to make it worth of being backported.

Rik <rik5>
Group administrator
Sat 19 Nov 2016 06:29:48 PM UTC, comment #3: 

What about applying this fix to the stable branch?

Avinoam Kalma <avinoam>
Group Member
Fri 18 Nov 2016 05:12:13 PM UTC, comment #2: 

Thanks Rik!

Guillaume <gyom>
Fri 18 Nov 2016 05:07:42 PM UTC, comment #1: 

According to the documentation, "If the object does not exist, waitfor returns immediately without processing any events."  This was easy to implement.  I checked in a cset here (http://hg.savannah.gnu.org/hgweb/octave/rev/388d12bb24b5).

Rik <rik5>
Group administrator
Fri 18 Nov 2016 04:53:53 PM UTC, original submission:  

waitfor throws an error if its input is empty:


>> waitfor ([])
error: invalid conversion from real matrix to real scalar
error: waitfor: invalid handle value


while Matlab continues silently:


>> waitfor([])
>>


Guillaume <gyom>

 

(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 avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code