Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0
-
None
-
OS X 10.10.3 on MacBook Pro
Description
Any application on OS X with QCoreWlanEnginePlugin starts to use a huge amount of CPU each ten seconds, the more you have WiFi spots saved in your system (probably) the more it does.
Even simple example can reproduce that, something like:
#include "main.h" #include <QtCore/QTimer> #include <QtCore/QCoreApplication> #include <QtNetwork/QNetworkAccessManager> // cpu is hugely used only if qcorewlanengineplugin is imported #include <QtCore/QtPlugin> Q_IMPORT_PLUGIN(QCoreWlanEnginePlugin) int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); // quit in three minutes QTimer::singleShot(180000, &a, SLOT(quit())); // cpu is hugely used only if manager is created QNetworkAccessManager manager; return a.exec(); }
TestApp.zip has XCode project with this test code, but it may not be very easy to launch because of some paths etc. maybe it will be an easy way just to create such sample project from scratch.
Attachments
For Gerrit Dashboard: QTBUG-45798 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
149223,4 | corewlan: avoid unnecessary currentInterface.serviceActive checks | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |