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 the SIGABRT the very first time when entering the while loop.

    Using Qt 4.8.7 on a Linux embedded board.


  • Qt Champions 2016

    Stack trace?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.