Unsolved QCoreApplication::processEvents "Received a SIGABRT: Aborted"
-
On a Linux embedded system I get a "Received a SIGABRT: Aborted" when calling
QCoreApplication::processEvents()
.QString WlanDevice::execProcess(const QString &prog, const QString &arg) { if (_scriptRunning) { while (_scriptRunning) { QCoreApplication::processEvents(QEventLoop::AllEvents, 500); } } _scriptRunning = true; QString workingDirectory("/usr/local/bin"); QStringList arguments = arg.split(" "); int timeout = 2000; // 2s _scriptRunner = new ScriptRunner(prog, arguments, workingDirectory, timeout); connect(_scriptRunner, SIGNAL(scriptOutput(QString)), this, SLOT(onScriptOutput(QString))); _scriptRunner->start(); while (_scriptRunning) { // ****TODO: "Received a SIGABRT: Aborted" QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } return _scriptOutput; }
When calling the script itself on the shell it works.
Receiving theSIGABRT
the very first time when entering thewhile
loop.Using Qt 4.8.7 on a Linux embedded board.
-
Stack trace?