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 244800 - org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: AWT-XAWT
Summary: org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: AW...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL: https://bugs.openjdk.java.net/browse/...
Keywords: 8.0.1_WAIVER_APPROVED
Depends on:
Blocks:
 
Reported: 2014-05-30 07:22 UTC by anton.vodyanoy
Modified: 2015-09-02 11:54 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208427


Attachments
stacktrace (2.94 KB, text/plain)
2014-05-30 07:22 UTC, anton.vodyanoy
Details
stacktrace (2.94 KB, text/plain)
2014-07-10 23:40 UTC, adithyank
Details
stacktrace (2.94 KB, text/plain)
2014-09-22 05:54 UTC, adithyank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anton.vodyanoy 2014-05-30 07:22:02 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-1698-on-20140521)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Linux

User Comments:
GUEST: Not sure what happened, left to get a coffee and came back to netbeans frozen

anton.vodyanoy: ?????

GUEST: <Please provide a description of the problem or the steps to reproduce>
The interface was frozen and had to kill -9

hup: Deadlock

GUEST: reboot necessary

GUEST: error on start-up, don't know why

GUEST: just startet a server app




Stacktrace: 
org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: AWT-XAWT
   at java.awt.datatransfer.SystemFlavorMap.getFlavorsForNative(SystemFlavorMap.java:796)
   at sun.awt.datatransfer.DataTransferer.getFlavorsForFormatsAsSet(DataTransferer.java:886)
   at sun.awt.datatransfer.SunClipboard.formatArrayAsDataFlavorSet(SunClipboard.java:349)
   at sun.awt.datatransfer.SunClipboard.checkChange(SunClipboard.java:426)
   at sun.awt.X11.XClipboard.checkChange(XClipboard.java:284)
   at sun.awt.X11.XClipboard.access$600(XClipboard.java:45)
Comment 1 anton.vodyanoy 2014-05-30 07:22:04 UTC
Created attachment 147507 [details]
stacktrace
Comment 2 David Strupl 2014-06-02 14:25:05 UTC
NbClipboard calls getContents()

sun.awt.X11.XClipboard.getContents(XClipboard.java:108)
   at org.netbeans.NbClipboard$GetContents.run(NbClipboard.java:437)

from non-AWT EDT. Not sure whether this is ok or not but it causes deadlock in 

java.awt.datatransfer.SystemFlavorMap.getFlavorsForNative(SystemFlavorMap.java:796)
vs
AWT lock.

Re-assigning to the platform component to evaluate.
Comment 3 Jaroslav Tulach 2014-06-10 08:33:56 UTC
Why assigned to me? Btw. yesterday I saw a change in OpenJDK bugs related to clipboard, but I have not taken closer look and now I can't find the bug anymore
Comment 4 adithyank 2014-07-10 23:40:19 UTC
Created attachment 147985 [details]
stacktrace

nb ide has frozed during previous startup... The UI was unresponsive... Attaching the thread dump taken during last time
Comment 5 Stanislav Aubrecht 2014-08-08 14:27:39 UTC
Possibly related JDK issue: https://bugs.openjdk.java.net/browse/JDK-7155963
Comment 6 adithyank 2014-09-22 05:54:29 UTC
Created attachment 149402 [details]
stacktrace

in the previous run of netbeans ide, the window has totally frozen.
Comment 7 Stanislav Aubrecht 2014-12-12 09:36:59 UTC
This is a JDK bug (manifests on Linux OS only), see https://bugs.openjdk.java.net/browse/JDK-7155963

A possible workaround could be running NetBeans with -J-Dnetbeans.slow.system.clipboard.hack=false command line switch.