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

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

[Octave-bug-tracker] [bug #50210] octave-gui crashes on exit


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #50210] octave-gui crashes on exit
Date: Sat, 2 Sep 2017 00:02:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #4, bug #50210 (project octave):

I'm referencing previous work on the exit sequence:

https://savannah.gnu.org/bugs/?44485

I believe I tried something similar to what is done here, i.e., terminate and
wait, but that wasn't quite right.  Octave core wasn't exiting properly and
would cause an error message at the command line at exit...and wait() had some
issues too, but I can't remember them right now.  One thing was as pointed out
in the patch:


+  // FIXME: should there be a limit on how long we wait?
+  m_main_thread->wait ();


The way I had approached this is to start a Qt timer and connect it to the
signal expected to come from Octave core.  If that signal didn't arrive by
time the timer expired, then it would toss up a dialog and ask if the thread
should be terminated.  It's tricky in the sense that the signal could arrive
while the dialog box is up.  Or the user could impatiently press "exit"
multiple times, so we had to make sure to not put up multiple dialog boxes to
confirm forced-terminate.  It all worked fairly well, but I was never quite
happy that every scenario was covered in a robust way so after a few days I
decided to let it sit.

Part of the reason I suspended work on that is, if I recall correctly, the
Cnrtl-C handling wasn't worked out very well.  I thought the Cntrl-C would be
the way to break out of a busy Octave core command.  At the time, the only way
to terminate Octave core was to send an "exit" command.  Of course, if Octave
is busy processing, it may be a long time, if ever, before the process
finishes and the "exit" is handled.  So, I guess I was waiting to see how the
SIGABRT evolved before putting a close-but-not-quite exit routine in the GUI.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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