I'm facing a weird issue I cannot always replicate.
QtCreator 3.6.1, Qt5.7, host machine: Debian Jessie x86, target machine: RPi3 running Raspian Jessie Lite. I remotely deploy and start the application through ssh (inside QtCreator).

I'm working on this project from several weeks and in some occasion the QML page is not shown anymore and the event loop is not running.
It happens even with no changes of the code. For example, after (successfully) run the latest build on the evening, on the following morning it doesn't work anymore.
I don't know what I had to do to fix the issue, but no change in the code!

Today has happened again.
I restarted the host and target machines, cleaned and rebuilt all... no way!

Thus, I placed a lot of qDebug() instruction to understand WHERE it hangs. It seems it hangs on QQmlApplicationEngine::load:

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    app.setOverrideCursor(QCursor(Qt::BlankCursor));

    QQmlApplicationEngine engine;
    qDebug() << 1;
    engine.load(QUrl(QStringLiteral("qrc:/Main.qml")));
    qDebug() << 2;

    return app.exec();
}

It prints only "1".
Right now the Main.qml file is this:

import QtQuick 2.5
import QtQuick.Window 2.0
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0

Window {
    visible: { console.debug("ok"); return true; }
    color: "red"
}

and also "ok" is printed so the file is found and parsed.
But the QQmlApplicationEngine::load() never returns and I need to kill -9 the executable.

The only way it SEEMS to work is to POWER CYCLE the target machine. Rebooting it's not enough.
What I could do to find the cause of this wrong behavior?

Thanks!
Marco

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to