bugGNU Octave - Bugs: bug #44339, deleting uipanel/uicontrol in a...

 
 

bug #44339: deleting uipanel/uicontrol in a script gives invalid handle error

Submitted by:  -X- <jsh>
Submitted on:  Sat 21 Feb 2015 11:29:32 PM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  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.

 

Fri 23 Dec 2016 07:18:20 PM UTC, comment #4: 

Same, looks fixed to me too. It may be accidental or the race condition may have shifted somewhere else, but if this pops up again in another form it can be reported again.

Mike Miller <mtmiller>
Project Administrator
Fri 23 Dec 2016 07:09:39 PM UTC, comment #3: 

This might be FIXED in Octave 4.2.0.

When running the code from comment #0 (as an m-file) in Octave 4.2.0, then I don't see any error message any more. Not even when doing 1000 turns instead of the 100. When I run the very same script file in Octave 4.0.3 then I reproducibly get an error message as described.

Hartmut <hardy>
Sat 14 Mar 2015 09:26:19 PM UTC, comment #2: 

I meant similar, not the same, since bug #44330 results in a segfault.

Mike Miller <mtmiller>
Project Administrator
Sat 14 Mar 2015 09:25:22 PM UTC, comment #1: 

Thanks for your bug report. I can confirm the error here. This is likely the same as bug #44330, since it works ok when uipanel and delete are called interactively at the terminal or with the pause as you saw.

Oddly enough this works fine in Windows.

Mike Miller <mtmiller>
Project Administrator
Sat 21 Feb 2015 11:29:32 PM UTC, original submission:  

Creating and subsequently deleting uipanel/uicontrol leads to errors. The following code

n = 100;
f = figure;
for i=1:n
  h = uipanel( 'parent', f );
  % h = uicontrol( 'parent', f );
  % pause(0.1)
  delete(h)
end

leads to "invalid graphics object" errors when running from a m-file (Note! copying/typing into the command line works fine). Either adding the pause between creation and deletion, or just not deleting the objects work fine. It seems to me that the interpreter doesn't wait for the uiobject to finish creation and tries to delete before its done?

-X- <jsh>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #33147:  test.m added by jsh (126B - application/octet-stream)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jsh (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-23 mtmiller StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2015-11-24 rik5 Dependencies- => bugs #46501 is dependent
    2015-03-14 mtmiller CategoryGUI => Plotting with OpenGL
        StatusNone => Confirmed
    2015-02-21 jsh Attached File- => Added test.m, #33147

    Back to the top


    Powered by Savane 3.5