Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux : Qt Creator debugger hangs while QQmlApplicationEngine is created

I was debugging the qt quick weather example in Qt Creator on Linux, the debugger hangs while the following code is being executed:

QQmlApplicationEngine engine(QUrl("qrc:/weatherapp/qml/main.qml"));

The debugger log keeps showing:

QML Debugger: No application output received in time, trying to connect ...

I am using Qt Creator 3.1.1 on ArchLinux x64.

like image 579
murphytalk Avatar asked Jun 15 '14 08:06

murphytalk


1 Answers

This appears to be a bug in Qt (for details see below picture).

As a temporary workaround you can disable QML debugging, which should not have much impact to your debugging experience. Go to project and build settings and uncheck the QML debugging checkbox at the qmake options, as shown in this picture:

Uncheck QML debugging checkbox

Do not forget to rebuild afterwards.

I have this issue as well on Arch Linux x86_64. Apparently the QML debugger is waiting for an internal waiting condition to be met.

I have reported a bug at Qt Project.

like image 165
jellysheep Avatar answered Sep 18 '22 13:09

jellysheep