Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QCoreApplication::processEvents "Received a SIGABRT: Aborted"
Forum Updated to NodeBB v4.3 + New Features

QCoreApplication::processEvents "Received a SIGABRT: Aborted"

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hfrmobile
    wrote on last edited by
    #1

    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.

    +++ Programming is a kind of art but not all programmers are artists. +++

    kshegunovK 1 Reply Last reply
    0
    • H hfrmobile

      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.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Stack trace?

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved