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 214853 - Deadlock in EventQueue.invokeLater
Summary: Deadlock in EventQueue.invokeLater
Status: VERIFIED DUPLICATE of bug 213926
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 09:22 UTC by Jiri Skrivanek
Modified: 2012-07-12 10:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (27.47 KB, text/plain)
2012-06-27 09:22 UTC, Jiri Skrivanek
Details
Thread dump - JDK7u6-b18. (32.86 KB, text/plain)
2012-07-12 08:18 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-06-27 09:22:33 UTC
Created attachment 121434 [details]
Thread dump.

Deadlock was detected when I installed IDE from installer and started it for the first time.

Product Version: NetBeans IDE Dev (Build 201206270002)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b05
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Jaroslav Tulach 2012-06-27 17:37:33 UTC
This is clearly a JDK problem. No NetBeans code is in fact involved. Please try to prevent _06 to be released with a bug like this.

Java stack information for the threads listed above:
===================================================
"Folder Instance Processor":
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000000d06707c8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
	at java.awt.EventQueue.postEventPrivate(EventQueue.java:235)
	at java.awt.EventQueue.postEvent(EventQueue.java:221)
	at sun.awt.PostEventQueue.flush(SunToolkit.java:2116)
	- locked <0x00000000d034ee38> (a sun.awt.PostEventQueue)
	at sun.awt.SunToolkit.flushPendingEvents(SunToolkit.java:563)
	at java.awt.EventQueue.postEvent(EventQueue.java:220)
	at java.awt.EventQueue.invokeLater(EventQueue.java:1188)
	at org.openide.util.Mutex.doEvent(Mutex.java:1345)
	at org.openide.util.Mutex.readAccess(Mutex.java:350)
	at org.netbeans.modules.openide.loaders.AWTTask.<init>(AWTTask.java:71)
	at org.openide.awt.MenuBar$LazyMenu$MenuFolder.postCreationTask(MenuBar.java:855)
	at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:722)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
"AWT-EventQueue-1":
	at sun.awt.PostEventQueue.noEvents(SunToolkit.java:2104)
	- waiting to lock <0x00000000d034ee38> (a sun.awt.PostEventQueue)
	at sun.awt.SunToolkit.isPostEventQueueEmpty(SunToolkit.java:577)
	at java.awt.EventQueue.detachDispatchThread(EventQueue.java:1048)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:103)

Found 1 deadlock.
Comment 2 Vladimir Riha 2012-06-28 08:04:32 UTC
Btw this happens with JDK7_u5 as well (I can attach thread dump if needed but it is almost the same). On Ubuntu it causes that the system and all opened programs are irresponsible and solution is to switch to console mode (Ctrl+Alt+F2) i.e. reboot system. It is reproducible, but rarely, by opening IDE and quickly clicking on main menu or moving IDE window.



Product Version: NetBeans IDE 7.2 RC1 (Build 201206262201)
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Jiri Skrivanek 2012-07-12 08:18:06 UTC
Created attachment 121955 [details]
Thread dump - JDK7u6-b18.
Comment 4 Jiri Skrivanek 2012-07-12 08:20:06 UTC
Please, escalate to JDK team. Happened again with latest JDK7u6 build.

Java; VM = 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b08
Runtime = Java(TM) SE Runtime Environment 1.7.0_06-ea-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 5 Antonin Nebuzelsky 2012-07-12 10:39:43 UTC
Already filed as Java bug. See issue 213926.

I added this additional thread dump to that Java bug.

*** This bug has been marked as a duplicate of bug 213926 ***
Comment 6 Jiri Skrivanek 2012-07-12 10:47:19 UTC
Thank you.