Solved Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl
-
Hello!
When I have installed
Qt 5.9.9
and useQNetworkAccessManager
, it displays the following issue:QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://....")
No such issue was present in the
Qt 5.9.8
. Any ideas how to fix it? Or is it a bug inQt 5.9.9
? Thanks. -
Yes, it is a bug. I have checked the code from
Qt 5.9.9
- qnetworkreplyhttpimpl.cpp:void QNetworkReplyHttpImplPrivate::_q_startOperation() { Q_Q(QNetworkReplyHttpImpl); // ensure this function is only being called once if (state == Working) { qDebug() << "QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once" << url; return; } state = Working; ...
And from
Qt 5.13.2
andQt 5.14.0
:void QNetworkReplyHttpImplPrivate::_q_startOperation() { Q_Q(QNetworkReplyHttpImpl); if (state == Working) // ensure this function is only being called once return; state = Working; ...
As you can see in
Qt 5.13.2
andQt 5.14.0
code, noqDebug()
is found, but it is present inQt 5.9.9
. I will report it. -
@Cobra91151 said in Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl:
I will report it.
It was already fixed, no need to open another report for it.
-
Hello!
You mean it was fixed in
Qt 5.12.2
: https://bugreports.qt.io/browse/QTBUG-72463? I need it forQt 5.9.9
. I will fix it by myself. Thanks. -
@Cobra91151 Correct, it was not backported because it's not really critical, only a (wrong) warning
-
So, I have fixed this issue and successfully rebuilt
Qt 5.9.9
. Now it works well. The issue is resolved.