This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141428 - [65cat] X hangs if breakpoint hit while in a popup menu
Summary: [65cat] X hangs if breakpoint hit while in a popup menu
Status: CLOSED DUPLICATE of bug 93076
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 22:08 UTC by Unknown
Modified: 2010-04-29 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2008-07-23 22:08:45 UTC
[ JDK VERSION : 1.6.0_07 ]

NB hangs X if you hit a breakpoint during a popup menu.
Comment 1 Martin Entlicher 2008-07-24 00:38:13 UTC
This is a known problem and can not be fixed in NetBeans.
See http://bugs.sun.com/view_bug.do?bug_id=6517045 and http://bugs.sun.com/view_bug.do?bug_id=6714678
Comment 2 Unknown 2008-07-24 02:13:48 UTC
I know it's a problem in java.  Can't there be a way to gracefully stop the application or make the debugger quit if 
it realizes it's on a thread that will cause it to hang?
I know if I code my app to use invokeLater on popups, then it won't hang.  It seems this type of functionality should
be in NB, since it doesn't happen in Windows, and it's NB that hangs X, not my app.
Just my .02
Comment 3 Martin Entlicher 2008-07-24 14:23:23 UTC
Sorry, we leave this up to JDK team to fix this.
It's the Xgrab lock held by the suspended application, that freezes the desktop. The problem is that the locking
mechanism in AWT is not aware of debugger and debugger has no way to figure out that there is some Xgrab held by the
application.

Xgrab is taken by some non-API classes and we can not rely on specific stack traces. The behavior can change between
different JDK versions. We do not want to do these kind of hacks.

We'll wait how http://bugs.sun.com/view_bug.do?bug_id=6714678 will be resolved and make appropriate changes afterwards,
if necessary. Till that happens, this is wontfix from our side.

*** This issue has been marked as a duplicate of 93076 ***
Comment 4 Quality Engineering 2010-04-29 09:41:47 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.