KDevelop window not receiving focus/events after closing patch review plugin

René J.V. Bertin rjvbertin at gmail.com
Sat Dec 13 20:57:23 GMT 2014


Evening!

Here's a weird one that's been biting me since the last 4.14 git pulls I did (141130 for kdevplatform, 141204 for kdevelop) on my OS X 10.9.4 system.
After uploading a patch to reviewboard, then closing all open documents and only then finishing the review (mostly with the "Back to code" button), things seem fine until I try to open a context menu in the project navigator.
The direct reason seems to be that the main window doesn't have focus, and indeed, if I cycle to and from another application, the window remains in the inactive state. The menus in the Mac global menubar remain active, though, and allow me to quit the application to restart it.
Quite annoying and sadly not always reproducible.

I first thought this might be due to the modified patchreview plugin I was running, which closes all the open windows (by sending a close event, not by closing the document) and then emptying the event queue in an attempt to avoid crashing due to a nested event loop.
I deactivated that logic, leaving only the deleteLater() of the m_patch instance, and the issue is still there. Sometimes.

Attaching a debugger to the hung process has so far failed to teach me anything.

Does this ring any bells? I don't recall ever seeing the issue after simply doing a "Show Differences" without uploading a patch review, so it seems the review upload might be involved. How does this work, purely with "in-house" code, or by using some external tool (like kioexec) which could for instance leave a socket open?

Thanks,
René



More information about the KDevelop mailing list