octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53802] octave deadlocks with deletefcn callba


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53802] octave deadlocks with deletefcn callback that calls graphical function
Date: Wed, 2 May 2018 02:34:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #2, bug #53802 (project octave):

We addressed something similar to this in the past, but I think that was
merely a simple C++ fix:

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

However, Rik is probably correct here.

To explain the freeze, keep in mind that the hand-shaking for the Qt input
dialog class of functions is programmed to put the worker thread to sleep when
the user is engaged in responding to the dialog box.  That was my crude way of
doing thread-safe sequential programming when at the time the Qt input dialog
class was added there was no designed cross-thread protocol.

So, what could be happening is that the figure-closing graphics operations are
interfering with the display of the question-dialog.  Rather than freezing,
think of this one as Octave core (worker thread) waiting for the user to
answer a question when there is no dialog box and button to click showing on
the screen.

Notice the CPU monitor shows ostensibly 0% whereas for a freeze there is
typically some sort of infinite loop with 100% CPU usage.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53802>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]