[Interest] big trouble with QCoreApplication

Freddy Martinez freddy311082 at gmail.com
Sat Apr 9 23:18:19 CEST 2016


Hi guys..

I’ve Kubuntu 15.10 and I’m working with qt 5.5.1…

this is may main.cpp

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    if (!checkConfigurationFiles())
    {
        qDebug()<<"Unable to start server.";

        return 1;
    }

    QSettings* settings = new QSettings(qApp->applicationDirPath()+"/config/server.ini",QSettings::IniFormat);

    QString lastError;

    NautamServer nautamServer(settings);

    ConsoleLoggerFactory loggerFactory;

    loggerFactory.setSettings(settings);

    nautamServer.setLoggerFactory(&loggerFactory);

    if (!nautamServer.startServer(lastError))
        qDebug()<<"Last error :"<<lastError;

    return a.exec();
}

the problem is taht i’m gettirn segmentation fault in the first line of the main function as you’ll see in the stack as folowed:

#0  0x00007ffff37616e7 in QOpenGLContext::create() () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Gui.so.5 
#1  0x00007fffe9b1d9bd in QtWebEngine::initialize() () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5WebEngine.so.5 
#2  0x00007ffff4f63688 in QCoreApplication::init() () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5 
#3  0x00007ffff4f63b05 in QCoreApplication::QCoreApplication(int&, char**, int) () from /home/freddy/Qt5.5.1/5.5/gcc_64/lib/libQt5Core.so.5 
#4  0x000000000044935b in main (argc=1, argv=0x7fffffffdea8) at ../../nautam-kernel/nautam-server/main.cpp:63

well guys, I really don’t know what happend and I don’t have any idea about what is wrong

can you help me please?

regards


=============================================
"El tamaño de tus logros depende del tamaño de tus metas." 
C++ and Qt Senior Developer
B.S. Computer Science
Buenos Aires, Argentina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160409/a6c6bfdc/attachment.html>


More information about the Interest mailing list