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.
Summary: | Deadlock between PostEventQueue.noEvents, EventQueue.isDispatchThread and SwingUtilities.invokeLater | ||
---|---|---|---|
Product: | platform | Reporter: | Erno Mononen <emononen> |
Component: | JDK Problems | Assignee: | Antonin Nebuzelsky <anebuzelsky> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | 280Z28, aldobrucale, alexvsimon, cyhelsky, dstrupl, emcmanus, everflux, jglick, jlahoda, jskrivanek, jungi, mkleint, mkristofic, mmirilovic, musilt2, peterhull90, phejl, pjiricka, ralphbenjamin, rptmaestro, soldatov, stezeb, tanyehzheng, tboudreau, tdanard |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | thread dump |
Martin, can you please investigate? Cc'ing also Petr H as he knows a lot about the copy-on-save support. From the thread dump it seems that the deadlock comes from AWT itself. "Indexer Cache" thread and the org.netbeans.modules.maven.j2ee.web.WebCopyOnSave call is present only because it's using SwingUtilities.isEventDispatchThread() which is trying to access blocked "AWT-EventQueue-1". "AWT-EventQueue-1" is waiting for the lock help by "TimerQueue" and vice versa.. The weird thing is that the "AWT-EventQueue-1" log isn't complete and doesn't contain any information about locking something Erno do you have a reproducible test case? And could you try to use another JVM? (based on PHejl and TMysik comments it's possible that the problem can be caused by a JVM specific issue) Unfortunately I can't reproduce this reliably - the IDE has hanged twice during the startup within two weeks, but I didn't take a thread dump the first time, so can't say for sure whether it was caused by the same issue. I had the same set of Maven projects (6 altogether) opened both times, but most of the time the IDE starts up fine with those projects open. I'll post another thread dump if this happens again and then try with JDK 6. Erno, since we are after code freeze I'm closing this one for now. Please, reopen it again once you'll find some other information (unfortunately can't do anything until then). Thanks! > The weird thing is that the "AWT-EventQueue-1" log isn't complete
Right, this looks suspicious. Reassigning to JDK problems - Tondo do you know if we had a situation like this before?
Erno, which exact update release of JDK 7 are you using, please?
The following bug has been filed to Java: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7177040 (In reply to comment #5) > > Erno, which exact update release of JDK 7 are you using, please? Here's the exact version info: Product Version: NetBeans IDE 7.2 Beta (Build 201205031832) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) FYI, I've been restarting the IDE a lot lately in an effort to reproduce this, but this hasn't happened again. *** Bug 214436 has been marked as a duplicate of this bug. *** *** Bug 214853 has been marked as a duplicate of this bug. *** *** Bug 215683 has been marked as a duplicate of this bug. *** *** Bug 215721 has been marked as a duplicate of this bug. *** *** Bug 210752 has been marked as a duplicate of this bug. *** JDK bug #7177040 should be fixed in the latest promoted build of 7u8. If you are encountering regularly, try 7u8 b03 or newer. http://jdk7.java.net/download.html *** Bug 217246 has been marked as a duplicate of this bug. *** *** Bug 217941 has been marked as a duplicate of this bug. *** *** Bug 217404 has been marked as a duplicate of this bug. *** *** Bug 218326 has been marked as a duplicate of this bug. *** Saw again with Product Version: NetBeans IDE Dev (Build 201209170001) Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) in bug# 217873. > Saw again with Java: 1.7.0_07 As noted above, this bug is fixed in promoted builds of JDK 7u10 (previously versioned as 7u8): http://jdk7.java.net/download.html *** Bug 218678 has been marked as a duplicate of this bug. *** *** Bug 218483 has been marked as a duplicate of this bug. *** *** Bug 216500 has been marked as a duplicate of this bug. *** *** Bug 220734 has been marked as a duplicate of this bug. *** *** Bug 221007 has been marked as a duplicate of this bug. *** *** Bug 221155 has been marked as a duplicate of this bug. *** *** Bug 221400 has been marked as a duplicate of this bug. *** *** Bug 221387 has been marked as a duplicate of this bug. *** *** Bug 222673 has been marked as a duplicate of this bug. *** *** Bug 223817 has been marked as a duplicate of this bug. *** JDK 7u10 fixing the deadlock has been released as final last week. http://www.oracle.com/technetwork/java/javase/downloads/index.html *** Bug 224266 has been marked as a duplicate of this bug. *** *** Bug 224643 has been marked as a duplicate of this bug. *** |
Created attachment 120633 [details] thread dump 7.2 beta, JDK 7 The IDE hanged while starting up, attaching a thread dump that shows the deadlock.