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 208513

Summary: deadlock (?) when dragging a TopComponent on JDK 1.7 update 4 b11
Product: platform Reporter: Stanislav Aubrecht <saubrecht>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: VERIFIED FIXED    
Severity: normal CC: anebuzelsky, mmirilovic, musilt2, ttokoly
Priority: P2 Keywords: JDK_SPECIFIC
Version: 7.1   
Hardware: Macintosh   
OS: Mac OS X   
URL: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7148289
Issue Type: DEFECT Exception Reporter:

Description Stanislav Aubrecht 2012-02-16 14:08:12 UTC
The IDE deadlocks when attempting to drag a TopComponent when running under JDK 1.7 update 4 b11 (developer preview).

Switching off 'Drag Window Image' and 'Transparent drag window image' in Options prevents the deadlock. However the window is dropped to wrong location due to d'n'd bugs in the JDK.
Comment 1 Marian Mirilovic 2012-02-16 21:12:56 UTC
Standa, is it our issue or JDK's one ?
Comment 2 Stanislav Aubrecht 2012-02-17 06:36:34 UTC
(In reply to comment #1)
> Standa, is it our issue or JDK's one ?

i'm not sure yet. it could be both JDK bug and a problem on our side as well. i'll have to check if there's a new version of JNA library that works better with JDK 1.7 on mac.
Comment 3 Marian Mirilovic 2012-02-17 14:46:07 UTC
(In reply to comment #2)
> i'm not sure yet. it could be both JDK bug and a problem on our side as well.
> i'll have to check if there's a new version of JNA library that works better
> with JDK 1.7 on mac.

Ok, would be important to know it. In case it's JDK bug we will escalate, otherwise this needs to be fixed soon, to get it into 7.1.1 .
Comment 4 Antonin Nebuzelsky 2012-02-23 19:53:48 UTC
Filed #7148289 for evaluation on the Java side.
Comment 5 Tomas Danek 2012-03-19 14:04:57 UTC
isn't this about the same as http://netbeans.org/bugzilla/show_bug.cgi?id=208276 ?

I can confirm deadlock still occurs when DnD TC in JDK 7u4 b16 , and that workaround works.
Comment 6 Marian Mirilovic 2012-03-21 13:44:37 UTC
*** Bug 208276 has been marked as a duplicate of this bug. ***
Comment 7 Marian Mirilovic 2012-03-21 13:47:16 UTC
We propose to disable Visual Effects in Window System settings for NetBeans 7.1.2 and leave this bug opened for later fix on JDK side.
Comment 8 Stanislav Aubrecht 2012-03-27 09:55:08 UTC
i've disabled transparent windows support in core-main 9245b61ea09a
Comment 9 Tomas Danek 2012-03-29 12:49:02 UTC
verified in core-main

Product Version: NetBeans IDE Dev (Build 20120329-d043f946333a)
Java: 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b18
System: Mac OS X version 10.7.3 running on amd64; UTF-8; en_US (nb)
User directory: /tmp/new
Cache directory: /tmp/new/var/cache

please proceed with integration into release71_fixes branch
(http://wiki.netbeans.org/NetBeansPatchesProcess)
Comment 10 Stanislav Aubrecht 2012-03-29 14:40:35 UTC
transplanted to release71_fixes branch as 21de8ae3f633
Comment 11 Quality Engineering 2012-03-30 01:33:15 UTC
Integrated into 'releases', will be available in build *201203292206* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/21de8ae3f633
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #208513 - disable transparent windows on Mac with JDK 1.7
Comment 12 Tomas Danek 2012-04-10 13:36:50 UTC
thanks, v. in

Product Version: NetBeans IDE 7.1.2 (Build 201204092205)
Java: 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b20
System: Mac OS X version 10.7.3 running on amd64; UTF-8; en_US (nb)
User directory: /Users/tomas/.netbeans/7.1.2
Cache directory: /Users/tomas/.netbeans/7.1.2/var/cache