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.
This one is very easy to reproduce. I started with todays build off of the NetBeans web site. ----------------------------------------------------------- -------------------- >Log Session: Monday, October 21, 2002 4:36:53 PM PDT >System Info: Product Version = NetBeans IDE Dev (Build 200210210100) IDE Versioning = IDE/1 spec=3.15 impl=200210210100 Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.4.1; Java HotSpot(TM) Client VM 1.4.1-b21; Sun Microsystems Inc. Java Home = C:\java\j2sdk1.4.1\jre System Locale; Encod. = en_US; Cp1252 Starting with this kit, I performed the following steps. 1: Startup the IDE into a new user directory. 2: Went into tools/options and opened up the Object Types tab. 3: Shutdown the IDE 4: Startup the IDE into the same userdir from step 1. When I do this I get the deadlock which I will attach to this issue. Note that I am running a 2 processor machine. If this can not be reproduced on a single processor machine, you might want to try it on a 2 processor machine.
Created attachment 7728 [details] Full stack trace of deadlock
Radek I am not sure, but it seems like filesystems, feel free to reassigne.
In stack trace is no lock, that comes from filesystems. Problem seems to be access to NbTopManager. See main and FolderChildren_refresher thread and its (newValue call of org.netbeans.core.ui.ModuleNode.<clinit>)
Fix should be trivial. I already fixed a very similar bug a few days ago. Workaround: rm -rfv $userdir/system/Windows/ $userdir/system/Projects/*/system/Windows/ or just don't leave Options dialog open with module node(s) selected when shutting down.
Have probable fix, will try to test.
Hopefully fixed - not sure if the problem was reproducible. committed * Up-To-Date 1.4 core/compiler/src/org/netbeans/core/compiler/CompilationEngineImpl.java committed * Up-To-Date 1.71 core/src/org/netbeans/core/NbPresenter.java committed * Up-To-Date 1.67 core/src/org/netbeans/core/execution/ExecutionEngine.java committed * Up-To-Date 1.21 core/src/org/netbeans/core/ui/ModuleBean.java The ModuleBean patch was the part actually required for this bug; other patches are prophylactic.
verified in [nb_dev](20021030)