Tip: Avoid frozen X when debugging an UI
Today I came across this bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6714678 with JDK 1.6.12
In short descripton: when you stop at a breakpoint while a popup of your app is opened, then it might happen your whole X is frozen. To avoid this use this flag in your run/debug setting of your application:
-Dsun.awt.disablegrab=true
Thomas
PS: Probably worth to add to the knowledgebase
请先登录再写评论。
Hi,
stumbled upon this issue today, added an comment to http://devnet.jetbrains.net/docs/DOC-1142
maybe someone has a hint for me? :)
cheers
Markus
Hi Markus,
Where have you defined the property? At the run configuration?
Denis
Hi, yes, in the run configuration. I also tried to set ist as a vmoption for inde itself.
jps also shows that the argument has been applied.
thanks
Markus
Strange, the setting helped me in the local ubuntu environment..
Is it possible to make a thread dump when the IJ is hanging?
Denis
hm....jstack gives me for the application-to-debug:
The stack traces of IJ's appmain aind main threads are fairly longer, so i attach them as txt files.
thank you for you help,
cheers
Markus
Attachment(s):
main.txt.zip
appmain.txt.zip
Hi Markus,
I googled the following - 6714678. It looks like there is a regression at the new jdk 1.6.x versions. Can you try with, say, 1.6.0_19 (I'm still using this version and haven't been experiencing the hangs since 'disablegrab' was set).
Denis
Hi,
just triedit with
and get the same behavior :(
thanks for the hint
Markus
One more approach - try to manually download target jdk (not from the repo) and instruct IJ to use it. People say that that may help.
Denis
Hi,
I already did the manual way to switch to another JDK - it was the qucikest way for me ;-)
Also tried 1.6.01 / 32bit now, no difference :(
Reading about the X11 Config switch (that was appearently disabled): Might this also be related to driver/screen setup ? I'm using an twin-view setup with external screen and a nvidia card with NV-CONTROL Version 1.24 ...
thanks for your help
Markus
I doubt the problem is related to the mentioned driver/screen setup as I have exactly the same (twin view and nvidia drivers).
Denis