bugGNU Octave - Bugs: bug #54340, resizefcn Callback does not seem...

 
 

bug #54340: resizefcn Callback does not seem to be interrupted

Submitted by:  None
Submitted on:  Thu 19 Jul 2018 11:19:03 PM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Glenn Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  dev
Operating System:  Any

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)

Thu 01 Nov 2018 03:57:06 PM UTC, comment #6:

I also pushed a changeset that fixes the missing execution of "sizechangedfcn" as notes in the original post.

http://hg.savannah.gnu.org/hgweb/octave/rev/22f4f26fcaf2

Pantxo Diribarne <pantxo>
Project Member
Thu 01 Nov 2018 12:10:12 PM UTC, comment #5:

Closing report as fixed.

Pantxo Diribarne <pantxo>
Project Member
Tue 23 Oct 2018 09:43:14 PM UTC, comment #4:

I have pushed the patch here:

http://hg.savannah.gnu.org/hgweb/octave/rev/ae9d6a491c06

Marking this report "Ready For Test".

Pantxo Diribarne <pantxo>
Project Member
Wed 22 Aug 2018 07:39:35 AM UTC, comment #3:

I attached a patch that fixes the issue for me. There is more work to be done so that "pause (t)" processes events (as it does in Matlab according to the doc) without having to use drawnow, but it will be the subject of another bug report.

(file #44821)

Pantxo Diribarne <pantxo>
Project Member
Fri 20 Jul 2018 08:23:52 AM UTC, comment #2:

Here are a couple related recent bugs, both of which have been fixed by January 2018 and were merged into 4.4.0 on

https://savannah.gnu.org/bugs/?func=detailitem&item_id=52804

https://savannah.gnu.org/bugs/?func=detailitem&item_id=44912

I would imagine these should have made it into the version you are testing, but the fixes were probably aimed at linux, not Windows.

There are several other bugs related to interrupting callbacks:

https://savannah.gnu.org/search/?Search=Search&words=interrupt&type_of_search=bugs&only_group_id=1925&exact=1&max_rows=25#options

Dan Sebald <sebald>
Fri 20 Jul 2018 07:43:11 AM UTC, comment #1:

Thanks for your detailed report. I can confirm that Octave behaves as if the "interruptible" property was "off" and queues the execution of the interrupting callback.

I'll look into this.

Pantxo Diribarne <pantxo>
Project Member
Thu 19 Jul 2018 11:19:03 PM UTC, original submission:

It appears that the resizefcn for a figure does not get interrupted when using QT graphic toolkit (Windows 7, 64 bit SP1).

When running this script, once the figure is created resizing the window should execute the callback (multiple times as the figure is resized). Based on the code, I believe that the initial callbacks should be interrupted and never completely execute, but they do. It appears that the callback is never interrupted, but instead all are run sequentially.

This is the output that I get:

I also tried the sizechangedfcn callback, but that didn't seem to ever execute at all.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #44821:  resize_event2.patch added by pantxo (14KiB - text/x-patch)
file #44598:  interrupt_test.m added by None (70B - text/plain)
file #44599:  resize_callback.m added by None (935B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-01 pantxo StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-10-23 pantxo StatusPatch Submitted => Ready For Test
    2018-09-25 pantxo Carbon-Copy- => Added gyom
    2018-08-22 pantxo Attached File- => Added resize_event2.patch, #44821
        CategoryPlotting => Plotting with OpenGL
        StatusConfirmed => Patch Submitted
    2018-07-20 pantxo CategoryNone => Plotting
        StatusNone => Confirmed
        Release4.4.0 => dev
        Operating SystemMicrosoft Windows => Any
    2018-07-19 None Attached File- => Added interrupt_test.m, #44598
        Attached File- => Added resize_callback.m, #44599

    Back to the top


    Powered by Savane 3.3