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

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

[Octave-bug-tracker] [bug #50664] upon normal exit GUI closes with " pan


From: Dario Meluzzi
Subject: [Octave-bug-tracker] [bug #50664] upon normal exit GUI closes with " panic: Aborted -- stopping myself..."
Date: Fri, 23 Jun 2017 01:47:20 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3135.5 Safari/537.36

Follow-up Comment #1, bug #50664 (project octave):

I encountered the same problem with octave-4.2.1 compiled on Ubuntu 14.04
using GCC 5.3.0. However in my case I get the abort message also when I type
quit after starting octave with option --no-gui. 
The cause of the problem seems to be that the octave_qt_link destructor (in
file libgui/src/octave-qt-link.cc) deletes a QThread object whose event queue
is still busy, causing that object to call abort. 
To solve this problem I inserted calls to QThread::quit and QThread::wait in
the octave_qt_link destructor before it deletes the QThread object:

octave_qt_link::~octave_qt_link (void)
{
  main_thread->quit();
  main_thread->wait();
  delete command_interpreter;
  delete main_thread;
}

In addition, I modified interpreter::main_loop (in file
libinterp/corefcn/interpreter.cc) to return without calling  clean_up_and_exit
after catching octave::exit_exception, because clean_up_and_exit will get
called later by interpreter::execute. Finally, I modified
interpreter::clean_up_and_exit to avoid entering an infinite loop when the
argument safe_to_return is false, which is the case after typing quit at the
CLI.
With these changes the program exits without any error messages.
However these changes are not necessarily the proper way to resolve the
problem. They are only presented to highlight the likely cause of the problem.


(file #41030, file #41031)
    _______________________________________________________

Additional Item Attachment:

File name: libgui-src.diff                Size:0 KB
File name: corefcn.diff                   Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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