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 26405

Summary: Deadlock w/ Cache.updateProviders
Product: projects Reporter: Svata Dedic <sdedic>
Component: Generic InfrastructureAssignee: Vitezslav Stejskal <vstejskal>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump after right-click root node in Projects tab, trying to reach New
Thread dump after clicking Finish in New Java Application wizard
Experimental patch

Description Svata Dedic 2002-08-09 09:52:18 UTC
I've spotted the deadlock in my debugging
installation, but it appeared on me in a clean
build, right after I attempted to creat a new Java
Application project.
I filled in project name, clicked Next, then
Finish. Deadlock.
I'm giving this a P1, since I cannot run the IDE
in debug mode at all, and only occasionally
without cleanin the userdir.
Will attach thread dumps
Comment 1 Svata Dedic 2002-08-09 09:56:05 UTC
Created attachment 7065 [details]
Thread dump after right-click root node in Projects tab, trying to reach New
Comment 2 Svata Dedic 2002-08-09 09:57:15 UTC
Created attachment 7066 [details]
Thread dump after clicking Finish in New Java Application wizard
Comment 3 Svata Dedic 2002-08-09 10:57:30 UTC
Created attachment 7069 [details]
Experimental patch
Comment 4 Svata Dedic 2002-08-09 12:48:34 UTC
Please delay initialization of the Cache, if it is possible. I have a
patch which (supposedly) solves the deadlock, but I don't know what
synchronization model is used in projects module, so there may be some
odd effects.
Comment 5 Vitezslav Stejskal 2002-08-09 16:52:40 UTC
Svato, thanks for the patch, although it is correct, I fixed it in a
bit different way. Could you please verify it, thanks.
Comment 6 Milan Kubec 2002-08-22 08:52:50 UTC
Verified.