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 42360 - Deadlock during sanity-start
Summary: Deadlock during sanity-start
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: REGRESSION, THREAD
Depends on:
Blocks:
 
Reported: 2004-04-22 21:07 UTC by Jesse Glick
Modified: 2008-12-22 22:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (7.06 KB, text/plain)
2004-04-22 21:08 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-04-22 21:07:46 UTC
After your recent merge, ant sanity-start
consistently deadlocks for me.
Comment 1 Jesse Glick 2004-04-22 21:08:51 UTC
Created attachment 14529 [details]
Thread dump
Comment 2 Jesse Glick 2004-04-22 21:22:43 UTC
I am putting in a hotfix to revert a small, unexplained, but clearly
dangerous change made in your patch:

Index: core/src/org/netbeans/core/Main.java
===================================================================
RCS file: /cvs/core/src/org/netbeans/core/Main.java,v
retrieving revision 1.191
diff -u -r1.191 Main.java
--- core/src/org/netbeans/core/Main.java	22 Apr 2004 13:08:48 -0000	1.191
+++ core/src/org/netbeans/core/Main.java	22 Apr 2004 20:21:55 -0000
@@ -251,8 +251,7 @@
     // I.e. main window + current workspace components.
 
     // Access winsys from AWT thread only. In this case main thread
wouldn't harm, just to be kosher.
-      try {
-    SwingUtilities.invokeAndWait(new Runnable() {
+    SwingUtilities.invokeLater(new Runnable() {
         public void run() {
             StartLog.logProgress ("Window system initialization"); //
NOI18N
             NbTopManager.WindowSystem windowSystem =
(NbTopManager.WindowSystem)
@@ -276,7 +275,6 @@
             }
         }
     });
-      } catch (Exception e) { e.printStackTrace(); }
     StartLog.logEnd ("Main window initialization"); //NOI18N
   }
   
Comment 3 Jesse Glick 2004-04-23 00:00:01 UTC
I hope this takes care of it. Tim please review carefully.

committed     Up-To-Date  1.192       core/src/org/netbeans/core/Main.java
Comment 4 Marian Mirilovic 2004-06-30 09:02:15 UTC
verified