<?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[Qt5 and Qt6 Bluetooth crashes on segmentation fault.]]></title><description><![CDATA[<p dir="auto">Hello everyone.</p>
<p dir="auto">When running with QBluetooth, and call "QLowEnergyService::discoverDetails", it random crash.<br />
There are the trace of my application:</p>
<pre><code>Thread 41 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 58424.0xeffc]
0x00007ffdd6a13b6a in Qt5Bluetooth!?setMaxPendingConnections@QBluetoothServer@@QEAAXH@Z ()
   from S:\X\dist\Qt5Bluetooth.dll
(gdb) bt
#0  0x00007ffdd6a13b6a in Qt5Bluetooth!?setMaxPendingConnections@QBluetoothServer@@QEAAXH@Z ()
   from S:\X\dist\Qt5Bluetooth.dll
#1  0x00007ffdd6a12620 in Qt5Bluetooth!?setMaxPendingConnections@QBluetoothServer@@QEAAXH@Z ()
   from S:\X\dist\Qt5Bluetooth.dll
#2  0x00007ff700eb6404 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
</code></pre>
<p dir="auto">Qt version:5.15.2<br />
build with msvc</p>
]]></description><link>https://forum.qt.io/topic/131659/qt5-and-qt6-bluetooth-crashes-on-segmentation-fault</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 10:59:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/131659.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Nov 2021 04:55:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt5 and Qt6 Bluetooth crashes on segmentation fault. on Wed, 03 Nov 2021 09:24:44 GMT]]></title><description><![CDATA[<p dir="auto">The similar problem: <a href="https://forum.qt.io/topic/119766/unknown-exception-is-not-beeing-caught-in-trycatch-block-bluetooth-low-energy-servicedetailsdiscovery">https://forum.qt.io/topic/119766/unknown-exception-is-not-beeing-caught-in-trycatch-block-bluetooth-low-energy-servicedetailsdiscovery</a></p>
]]></description><link>https://forum.qt.io/post/688182</link><guid isPermaLink="true">https://forum.qt.io/post/688182</guid><dc:creator><![CDATA[Zmmfly]]></dc:creator><pubDate>Wed, 03 Nov 2021 09:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 and Qt6 Bluetooth crashes on segmentation fault. on Wed, 03 Nov 2021 09:06:50 GMT]]></title><description><![CDATA[<p dir="auto">I think i found solution, before call "QLowEnergyService::discoverDetails", if "QLowEnergyController" emit error signals, and the error is "RemoteHostClosedError", we cannot do it, it will caused crash. The truly method is giveup the conntion, and wait next connection.</p>
]]></description><link>https://forum.qt.io/post/688167</link><guid isPermaLink="true">https://forum.qt.io/post/688167</guid><dc:creator><![CDATA[Zmmfly]]></dc:creator><pubDate>Wed, 03 Nov 2021 09:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 and Qt6 Bluetooth crashes on segmentation fault. on Wed, 03 Nov 2021 07:45:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisw67">@<bdi>ChrisW67</bdi></a> I try to debug it, The debugger tell me "Unhandled exception at 0x00007FFDCD113B6A (Qt5Bluetooth.dll) in ble_tester.exe: 0xC0000005: Access violation reading location 0x0000000000000000."<br />
<img src="https://www.shenqhy.com/media/2021/11/20211103153509.png" alt="Access violation reading location 0x0000000000000000" class=" img-fluid img-markdown" /><br />
<img src="https://www.shenqhy.com/media/2021/11/20211103153705.png" alt="Slot" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/688128</link><guid isPermaLink="true">https://forum.qt.io/post/688128</guid><dc:creator><![CDATA[Zmmfly]]></dc:creator><pubDate>Wed, 03 Nov 2021 07:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 and Qt6 Bluetooth crashes on segmentation fault. on Wed, 03 Nov 2021 07:02:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zmmfly">@<bdi>Zmmfly</bdi></a> The last line says something is trampling on memory it should not be, or you are mixing library versions, or overwriting a fixed buffer...   Run a debug build of your program in your debugger and see where it goes wrong.  We cannot do that for you.</p>
]]></description><link>https://forum.qt.io/post/688105</link><guid isPermaLink="true">https://forum.qt.io/post/688105</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Wed, 03 Nov 2021 07:02:36 GMT</pubDate></item></channel></rss>