[Interest] Qt5 QCoreApplication crashes

Koehne Kai Kai.Koehne at theqtcompany.com
Mon Oct 20 09:21:37 CEST 2014



> -----Original Message-----
> From: interest-bounces+kai.koehne=theqtcompany.com at qt-project.org
> [mailto:interest-bounces+kai.koehne=theqtcompany.com at qt-project.org]
> On Behalf Of Tamas Nagy
> Sent: Monday, October 20, 2014 7:19 AM
> To: interest at qt-project.org
> Subject: [Interest] Qt5 QCoreApplication crashes
> 
> Hi
> 
> I have this empty project that does nothing:
> 
> #include <QtCore>
> #include <QThread>
> #include <QList>
> #include <QObject>
> #include <QException>
> #include <iostream>
> #include "inputthread.h"
> #include "multiplierthread.h"
> #include "myobject.h"
> 
> using namespace std;
> 
> int main(int argc, char *argv[])
> 
> {
>         QCoreApplication a(argc, argv);
>         return a.exec();
> }
> In spite of the "empty" main, it crashes randomly:

What happens if you remove the unused header files? 

Also, some more specifics (Qt version, platform... might help). Do other Qt examples with your toolchain/compiler work? Can you get a more meaningful stacktrace with a debug build? Does Qt load any plugins it shouldn't load (e.g. mixing Qt 4 / Qt 5 plugins, a debugger should show you which libs are loaded)?

Regards

Kai Koehne



More information about the Interest mailing list