<div dir="ltr"><div dir="ltr">Il giorno mar 6 lug 2021 alle ore 10:40 Giuseppe Corbelli <<a href="mailto:corbelligiuseppe@mesdan.it">corbelligiuseppe@mesdan.it</a>> ha scritto:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">First let's note that there are a few threads running by default. I <br>
added a setObjectName() to the worker thread before run() so that it's <br>
easily spottable in GDB.<br>
<br>
* Worker thread is running QEventLoop::exec()<br>
* QDBusConnection, assume started automatically by Qt (QEventLoop::exec())<br>
* QXcbEventQueue (xcb_wait_for_event()) defined in the Qt XCB platform <br>
plugin, assume started automatically by Qt<br>
* 4 threads python:disk$0 to python:disk$4 waiting on a futex [1] <br>
started by QXcbWindow::create() (why? did not dig the details)<br>
* Main Python thread<br></blockquote><div><br></div><div>That's interesting.<br>So, actually, there's also a QDBus thread that's started with *any* new QApplication? Or is it just for any UI based application started on a DBus based system?</div><div>Be aware, the above questions might be nonsensical: unfortunately my knowledge of deep-level programming is close to none, so I might be saying a "corbelleria" ;-)</div><div>Would you care to provide the steps you did to get the above? I do have gdb, but I only used it a few times in the past and only under guidance.</div><div><br></div><div>That said, I want to thank you all for your inputs: even if we can already assume that this is not a bug any more and, in normal conditions, one doesn't usually call the default run() implementation (since calling exec() solves the issue in any case), it has been a really useful and insightful thread so far.</div></div><div><br></div><div>Maurizio</div>-- <br><div dir="ltr" class="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div>