bugGNU Octave - Bugs: bug #44897, ginput() hangs interpreter if...

 
 

bug #44897: ginput() hangs interpreter if window closed before routine completes

Submitter:  Rik <rik5>
Submitted:  Wed 22 Apr 2015 03:18:57 AM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 May 2015 11:52:54 PM UTC, comment #1: 
Rik <rik5>
Group administrator
Wed 22 Apr 2015 03:18:57 AM UTC, original submission:  

When ginput() is active, and the plot window is closed with the close button on the window menubar, then the interpreter is left hanging waiting for the function to complete.  A Ctrl+C will interrupt things and return the user to the prompt so there is a workaround.

Sample Code:


[x,y,b] = ginput
## Now close plot window
## Octave interpreter is left hanging until Ctrl+C is pressed.


Possibly could work around this by inserting our closereq callback routine while ginput is active.  And if the user already had a closereq routine we would need to save and restore it.

Rik <rik5>
Group administrator

 

(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 (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
    2015-05-15 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code