bugGNU Octave - Bugs: bug #44759, Freeze with drawnow


bug #44759: Freeze with drawnow

Submitter:  Guillaume <gyom>
Submitted:  Tue 07 Apr 2015 11:06:41 AM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 08 Apr 2015 03:39:04 PM UTC, comment #4: 

I fixed 3 other instances in drawnow where an error condition could leave the lock on the graphics handle in place (http://hg.savannah.gnu.org/hgweb/octave/rev/0f1a722133f4).  Closing report.

Rik <rik5>
Group administrator
Wed 08 Apr 2015 11:40:54 AM UTC, comment #3: 

Thanks Rik. The patch consists of a single line and was just a guess of mine so I'll accept your kind suggestion next time I make a more significant contribution.

Guillaume <gyom>
Tue 07 Apr 2015 07:01:10 PM UTC, comment #2: 

Confirmed.  I also tested the patch and it clears up the problem.  Since you are creating several patches for Octave would you like to be recognized in the list of contributors to Octave, or would you prefer to be anonymous?

Either way is fine.  Generally for code check-ins we use FIRST_NAME LAST_NAME <email@address> so there is a way to contact someone if a patch turns out not to work.  In the Octave manual the form is just First_NAME LAST_NAME and appears in the Preface section.

Rik <rik5>
Group administrator
Tue 07 Apr 2015 12:42:01 PM UTC, comment #1: 

The attached patch fixes it for me.

(file #33579)

Guillaume <gyom>
Tue 07 Apr 2015 11:06:41 AM UTC, original submission:  

I use drawnow() in a try/catch statement when using options not supported by Octave or older MATLAB versions:


try, drawnow limitrate; catch, drawnow; end

It seems that a call to drawnow() with a non valid option will freeze Octave if a figure was opened, or next time one tries to open one:

figure; drawnow XXXX

>> drawnow XXXX
error: drawnow: invalid argument, expected 'expose' as argument
>> figure

It might be due to the undocumented drawnow syntax:

-- Built-in Function:  drawnow (TERM, FILE, MONO, DEBUG_FILE)

Guillaume <gyom>


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

Attach Files:

Attached Files
file #33579:  drawnow.diff added by gyom (449B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (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.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-08 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-04-07 rik5 StatusNone Confirmed
    2015-04-07 gyom Attached File- Added drawnow.diff, #33579

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code