How can I disable UI freezed detection for IDE under debugging?
已回答
In the last few versions I started getting occasional debugger freezes when single stepping code for highlighting, line markers or annotations.
I suspect it has to do with the UI freeze checks since in the latest snapshot I started noticing the log messages for UI freezed for xxxxx ms.
While debugging UI will freeze and I would like to be able to completely turn it off for the debug session so it does not interfere with debugging.
Is there a command line option to pass to the debugger to do this, similar to -Didea.ProcessCanceledException=disabled to disable process cancelled exceptions while debugging this type of code?
请先登录再写评论。
I'm not sure this is the case, but you can set registry key `performance.watcher.unresponsive.interval.ms` to 0. It completely disables performance watcher.
Thanks Egor, I will try it to see if this solves the problem.
When the debugger hangs it is because of the application under debugging becomes unresponsive. Killing it releases the IDE doing the debugging.
Debugger UI should not freeze no matter what target app is doing, please attach freeze reports from system/log folder.
When the debugger hangs I am not sure if there is a log generated for that. There are other hang dumps:
Next time it hangs I will send the logs, unless you want me to compress all these and send them to you. Let me know where to send them and whether you want the idea.log files too. These are all from running a snapshot build I sync with intellij-master at least once a day.
Yes, these are also interesting, please zip log folder altogether and upload somewhere. (you can do it here https://uploads.services.jetbrains.com/ if you want)
Uploaded the zipped log directory with all logs and dumps
Thanks, looking into that at the moment
There are many issues with com.vladsch.idea.multimarkdown plugin :(
And some other issues (I've contacted responsible developers).
But no trace of freezes in debugger, if you can reproduce it - please provide a test case.
The issues with com.vladsch.idea.multimarkdown are expected since it is mostly the plugin I am debugging, while running a dev version of it. The beta release with Kotlin 1.30.60 broke an old library I use in the plugin. It is not salvageable and I am in the process of removing it but it is not easy since it is used for all text collection and manipulation in the plugin. Which means it is everywhere and I have to replace its use with something that will not break in a 1000 places.
I did not think the log had debugger hangs because when it hangs it is dead to the world. The next time it happens I will send you the log directory. In the mean time I will clear the current logs.
Egor, I think I found the cause for the freeze. In one of my other plugins I get all clipboard content from clipboard manager to see if there are at least two entries available.
The plugin does this to enable button to paste content and updates the state when its editor in a tool window is activated.
Last time this happened I killed the IDE because it hung forever. The copy paste manager hung trying to get OSX clipboard: sun.lwawt.macosx.CClipboard.checkPasteboardWithoutNotification 86900ms
I have thread dumps for this freeze. Do you know if anyone would be interested in looking at them or do I just upload them to the link you gave and they will find an interested party.
In the mean time I disabled the check of clipboard content and just left the button always enabled.
Thanks for the analysis, not sure anyone here is interested in this. However, you can check workaround in com.intellij.ide.ClipboardSynchronizer.
Vladimir Schneider how did you disable the clipboard content checker?