<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Dear PyQt users,</div><div><br data-mce-bogus="1"></div><div>I believe we're one step closer to the solution. Please read the <strong>EDIT</strong> at the very end of the StackOverflow question:</div><div><br data-mce-bogus="1"></div><div><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">https://stackoverflow.com/questions/50841486/pyqt5-too-many-signals-fired-in-short-timespan-causes-a-stack-overflow</span><br data-mce-bogus="1"></div><div><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><br data-mce-bogus="1"></span></div><div><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">I noticed that the repeated call to <span style="font-family: "lucida console", sans-serif; background-color: rgb(255, 255, 153);" data-mce-style="font-family: 'lucida console', sans-serif; background-color: #ffff99;">app.processEvents()</span> is the culprit, when called too often in a short timespan. Removing that line from the code in the slot, solved the issue. But it takes down the responsiveness of my GUI. So I thought, why not query first if there are any events to get processed anyway? Unfortunately, the function <span style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffff99; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: 'lucida console', sans-serif; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffff99; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">hasPendingEvents()</span></span></span><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"> is not safe to use when there are any non-main-threads running in the entire application. That's not okay.</span></div><div><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><br data-mce-bogus="1"></span></div><div><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">Please help...</span></div></div></body></html>