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

 
 

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

Submitted by:  Guillaume <gyom>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( 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>
Project 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>
Project 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>
Project Administrator
Sat 19 Nov 2016 06:29:48 PM UTC, comment #3: 

What about applying this fix to the stable branch?

Avinoam Kalma <avinoam>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5