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: anonymous
Subject: [Octave-bug-tracker] [bug #50210] octave-gui crashes on exit
Date: Thu, 16 Mar 2017 15:09:23 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

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

This issue occurs with Qt 5.8.0 because the error message

_QThread: Destroyed while thread is still running_

is now emitted by qFail() instead of qWarning(). It means that now Qt issues a
SIGABRT that is caught by octave.

The following patch works for me:


--- origsrc/octave-4.2.0/libgui/src/octave-qt-link.cc
+++ src/octave-4.2.0/libgui/src/octave-qt-link.cc
@@ -68,6 +68,8 @@ octave_qt_link::octave_qt_link (QWidget
 octave_qt_link::~octave_qt_link (void)
 {
   delete command_interpreter;
+  main_thread->terminate ();
+  main_thread->wait ();
   delete main_thread;
 }



    _______________________________________________________

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]