<div dir="ltr"><div dir="ltr">On Thu, Apr 14, 2022 at 5:01 PM Thiago Macieira <<a href="mailto:thiago.macieira@intel.com">thiago.macieira@intel.com</a>> wrote:<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">On Thursday, 14 April 2022 06:24:29 PDT Rainer Wiesenfarth wrote:<br>
> However, I am using QThread, and the crash happens<br>
> in a slot connected (queued connection) to a signal emitted by the thread<br>
> (m_pWorkerThread)<br>
<br>
Are you sure it was queued?<br>
<br>
Your backtrace stops in the QMessageBox::information, so we can't tell what it <br>
was called from.[...]<br></blockquote></div><div><br></div><div>Hi, I finally found the root cause of the issue: I have an object created in one thread, and destroyed in another one (by delete, not using deleteLater()). This object happens to own a QFileSystemWatcher, and this probably causes the crash - unfortunately some time later when the main event loop is working on pending events...</div><div><br></div><div>After making sure the object is created and deleted by the same thread, the problem vanishes.</div><div><br></div><div>Cheers, Rainer</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br style="color:rgb(51,51,51);font-family:sans-serif;font-size:13px"><table cellpadding="0" cellspacing="0" style="border-spacing:0px;border-collapse:collapse;background-color:transparent;font-size:13px;width:480px;border:none;padding:0px;color:rgb(34,34,34);margin:0px"><tbody><tr><td style="padding:0px"><span><span style="font-weight:700">Rainer Wiesenfarth</span></span><br><span style="display:block;padding:0px 0px 5px">Senior Software Engineer<br>Geospatial Division</span><table cellpadding="0" cellspacing="0" border="0" style="border-spacing:0px;border-collapse:collapse;background-color:transparent;width:326.4px"><tbody><tr><td style="padding:0px"> </td></tr><tr><td style="padding:0px;border-top:1px solid rgb(34,34,34)"><br><img src="https://cdn.filestackcontent.com/FxRuIkIxQ7CX1xzjzYEQ" width="100" height="23" style="border: 0px; vertical-align: middle; display: block; margin-bottom: 10px;"></td></tr></tbody></table><p style="margin:0px;line-height:1.4em">Rotebühlstr. 81, 70178 Stuttgart<br>Germany<br><br><a href="mailto:Rainer_Wiesenfarth@trimble.com" style="background-color:transparent;color:rgb(0,99,163)" target="_blank">Rainer_Wiesenfarth@trimble.com</a><br><a href="https://geospatial.trimble.com/products-and-solutions/trimble-inpho" style="background-color:transparent;color:rgb(0,99,163)" target="_blank">geospatial.trimble.com/products-and-solutions/trimble-inpho</a></p><table cellpadding="0" cellspacing="0" style="border-spacing:0px;border-collapse:collapse;background-color:transparent;width:480px;border:none"><tbody><tr><td valign="top" style="padding:7px 0px 0px"><table cellpadding="0" cellspacing="0" style="border-spacing:0px;border-collapse:collapse;background-color:transparent;border:none"><tbody><tr></tr></tbody></table></td></tr></tbody></table><br><span style="display:block;font-size:10px">Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim, Eingetragen beim Amtsgericht Darmstadt unter HRB 83893, Geschäftsführer: Rob Reeder, Jürgen Kesper</span></td></tr></tbody></table></div></div></div>