<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MacOS: Qt 5.7.0 constantly reading SystemConfiguration]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Here's an interesting one: I've got a substantial amount of code in this program, so I won't bother posting code yet. It uses a few network/system configuration functions to get the system configuration, has a tiny webserver inside and also does http requests.</p>
<p dir="auto">I recently upgraded from Qt 5.3 to 5.7 and found something weird. The app is polling the SystemConfiguration every 10 seconds.</p>
<pre><code>2017 Mar 4 22:34:16 501 10912 TestApp     32 0 /Library/Preferences/SystemConfiguration/preferences.plist
2017 Mar 4 22:34:16 501 10912 TestApp 32 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings
2017 Mar 4 22:34:16 501 10912 TestApp 32 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings
2017 Mar 4 22:34:16 501 10912 TestApp 32 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings
2017 Mar 4 22:34:16 501 10912 TestApp 32 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings
2017 Mar 4 22:34:16 501 10912 TestApp 32 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings
</code></pre>
<p dir="auto">And on and on. I've profiled all the functions inside the app (logging when something is called) and got nothing that was on the same timing as these requests. There's no 10 second timer at all.</p>
<p dir="auto">Has anyone come across this behaviour and how can I stop this?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/topic/76867/macos-qt-5-7-0-constantly-reading-systemconfiguration</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 22:31:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76867.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Mar 2017 21:54:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Fri, 16 Jun 2017 20:12:30 GMT]]></title><description><![CDATA[<p dir="auto">For those interested, this turned out to be an issue with QNetworkAccessManager in Qt 5.3.1 and above (still not fixed!) where the network interfaces are rescanned every 10 seconds when you're on a wireless connection.</p>
<p dir="auto">More information:</p>
<p dir="auto"><a href="https://bugreports.qt.io/browse/QTBUG-46015" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-46015</a><br />
<a href="https://bugreports.qt.io/browse/QTBUG-40332" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-40332</a></p>
<p dir="auto">It's pretty unbelievable that this hasn't been fixed yet, considering it's pretty disruptive. To implement a workaround, add an environment variable:</p>
<p dir="auto">qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));</p>
]]></description><link>https://forum.qt.io/post/399944</link><guid isPermaLink="true">https://forum.qt.io/post/399944</guid><dc:creator><![CDATA[smitmartijn]]></dc:creator><pubDate>Fri, 16 Jun 2017 20:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Sat, 17 Jun 2017 21:32:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ambershark">@<bdi>ambershark</bdi></a> No problem. I'm not going to pretend I have the skills to fix it in the Qt source though. ;-)</p>
]]></description><link>https://forum.qt.io/post/400081</link><guid isPermaLink="true">https://forum.qt.io/post/400081</guid><dc:creator><![CDATA[smitmartijn]]></dc:creator><pubDate>Sat, 17 Jun 2017 21:32:20 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Fri, 16 Jun 2017 20:26:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smitmartijn">@<bdi>smitmartijn</bdi></a> Wow, thanks for following up.  That is crazy that hasn't been fixed yet.  A 10 second polling seems like just plain bad design.  Especially if it's causing logging every time.</p>
<p dir="auto">The beauty of Qt is you can always fix it yourself. :)  I've done that a few times.  They will probably even take a patch from you to fix it if it doesn't cause other issues or is against their coding standards, etc.</p>
]]></description><link>https://forum.qt.io/post/399947</link><guid isPermaLink="true">https://forum.qt.io/post/399947</guid><dc:creator><![CDATA[ambershark]]></dc:creator><pubDate>Fri, 16 Jun 2017 20:26:27 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Fri, 16 Jun 2017 20:12:30 GMT]]></title><description><![CDATA[<p dir="auto">For those interested, this turned out to be an issue with QNetworkAccessManager in Qt 5.3.1 and above (still not fixed!) where the network interfaces are rescanned every 10 seconds when you're on a wireless connection.</p>
<p dir="auto">More information:</p>
<p dir="auto"><a href="https://bugreports.qt.io/browse/QTBUG-46015" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-46015</a><br />
<a href="https://bugreports.qt.io/browse/QTBUG-40332" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-40332</a></p>
<p dir="auto">It's pretty unbelievable that this hasn't been fixed yet, considering it's pretty disruptive. To implement a workaround, add an environment variable:</p>
<p dir="auto">qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));</p>
]]></description><link>https://forum.qt.io/post/399944</link><guid isPermaLink="true">https://forum.qt.io/post/399944</guid><dc:creator><![CDATA[smitmartijn]]></dc:creator><pubDate>Fri, 16 Jun 2017 20:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Sun, 05 Mar 2017 04:31:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smitmartijn">@<bdi>smitmartijn</bdi></a> I don't know if you can use something like strace on osx I haven't tried it, but if you can run it to see what your app is doing when it is using SystemConfiguration.</p>
<p dir="auto">That is definitely weird unless maybe you are having some network connection attempt from your app or something that is using SystemConfiguration for the network properties.</p>
<p dir="auto">If you could try to make a simple test app that duplicates this behavior for us to see the code/test with it would be easier to help diagnose.</p>
<p dir="auto">I've done a lot of OSX coding and haven't seen that with Qt, however, I haven't done much since Qt 5.5 or so on osx.  So it could be a bug, but more than likely it's something your app is doing.  Especially check any place that access a network resource for a potential issue.</p>
]]></description><link>https://forum.qt.io/post/379887</link><guid isPermaLink="true">https://forum.qt.io/post/379887</guid><dc:creator><![CDATA[ambershark]]></dc:creator><pubDate>Sun, 05 Mar 2017 04:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Sat, 04 Mar 2017 23:07:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Luckily I had a test VM where Qt 5.8.0 was on. I copiled the app on there and looked at the open files, same thing.</p>
]]></description><link>https://forum.qt.io/post/379880</link><guid isPermaLink="true">https://forum.qt.io/post/379880</guid><dc:creator><![CDATA[smitmartijn]]></dc:creator><pubDate>Sat, 04 Mar 2017 23:07:48 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS: Qt 5.7.0 constantly reading SystemConfiguration on Sat, 04 Mar 2017 22:11:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Can you double check with a more recent version of Qt ? The current is 5.8.</p>
]]></description><link>https://forum.qt.io/post/379873</link><guid isPermaLink="true">https://forum.qt.io/post/379873</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 04 Mar 2017 22:11:50 GMT</pubDate></item></channel></rss>