Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QML Profiler fails to connect to server

Tags:

qt

profiler

qml

I'm trying to use QML Profiler to find out what is slowing my program down, but when I start it, I get this message:

QML Profiler: Connecting to debug server at 127.0.0.1:50540 ...
QML Profiler: Resolving host QML Profiler: Establishing network connection ...
QML Profiler: Network connection dropped

which repeats for a few second, and eventually a popup appears saying:

Could not connect to the in-process QML Profiler. Do you want to retry?

I have checked Enable QML Debugging and Profiling in qmake build steps and rebuilt, and I also have Enable QML checked in Debugger Settings.

like image 845
TylerKehne Avatar asked May 12 '15 20:05

TylerKehne


People also ask

How do I debug QML in Visual Studio?

Setting Up QML Debugging The process of setting up debugging for Qt Quick projects depends on the type of the project: Qt Quick UI or Qt Quick Application. To debug Qt Quick UI projects: Select Projects, and then select the QML check box in the Run Settings, to enable QML debugging.


1 Answers

I met the same issue today when remote device profiling, it's caused by the qmlprofiler port was already been used.

I found the error message: QML Debugger: Unable to listen to port 10000

then check port on my device: lsof -i :10000, there indeed a process is using port 10000.

so I changed the qmlprofiler port to 10001 in below, the problem solved:

enter image description here

like image 82
JustWe Avatar answered Sep 22 '22 10:09

JustWe