bugGNU Octave - Bugs: bug #56697, waitfor and the...

 
 

bug #56697: waitfor and the "Interruptible" and "BusyAction" properties

Submitter:  Guillaume <gyom>
Submitted:  Tue 30 Jul 2019 02:15:25 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Oct 2019 05:29:12 PM UTC, comment #1: 

In Octave waitfor periodically processes graphics events which allows user interaction through normal graphics callbacks execution rules.

The example you are providing shows that in ML, while executing waitfor, graphics callbacks may be interrupted whatever their object's "interruptible" property. This doesn't look consistent with how callbacks work in other situations. Unless there is some documentation about this behavior, I am tempted to change to the category to "Won't Fix" and the group to "WTF Matlab?!?"

Pantxo Diribarne <pantxo>
Group Member
Tue 30 Jul 2019 02:15:25 PM UTC, original submission:  

I notice a difference between Matlab and Octave in the following example:


function testinterruptible

f = figure ();
uicontrol (f,...
  'Units', 'normalized',...
  'Position', [0.1 0.4 0.3 0.2],...
  'String', 'Press me',...
  'Callback', @cb,...
  'Interruptible', 'off',...
  'BusyAction', 'Cancel');

function cb (varargin)

h = uicontrol (gcbf,...
  'Units', 'normalized',...
  'Position', [0.6 0.4 0.3 0.2],...
  'String', 'Again',...
  'CallBack', 'delete (gcbo);');
waitfor (h);


In Matlab, if you click on the "Press me" button, it displays the "Again" button and, when clicking on the latter, its callback is executed and the button is deleted, unblocking the waitfor. In Octave, the callback does not get executed so one gets stuck in the waitfor. The behavior of the "Interruptible" and "BusyAction" properties was already discussed in bug #52804.

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 pantxo (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code