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 211392

Summary: [72cat] The IDE hangs when shutting down
Product: ide Reporter: Michel Graciano <hmichel>
Component: LoggerAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P1    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump
Log file
Updated log file

Description Michel Graciano 2012-04-18 12:41:19 UTC
[ JDK VERSION : 1.7.3 ]

The IDe is frozen when I shut it down. I need to kill the process to finish it.
Comment 1 Michel Graciano 2012-04-18 12:41:48 UTC
Product Version: NetBeans IDE Dev (Build 20120418-e1c95119b726)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 Michel Graciano 2012-04-18 12:42:25 UTC
Created attachment 118454 [details]
Thread dump
Comment 3 Michel Graciano 2012-04-18 12:44:31 UTC
This problem is happens after some restarts of the IDE. I have imported the 7.1 settings successfully and everything was OK, but after some restarts it started to freeze. Restart the OS does not help.
Comment 4 Michel Graciano 2012-04-18 12:45:24 UTC
Created attachment 118455 [details]
Log file
Comment 5 Michel Graciano 2012-04-18 12:49:12 UTC
Created attachment 118456 [details]
Updated log file

Both log file are from session which had frozen.
Comment 6 Marian Mirilovic 2012-04-19 08:55:31 UTC
Feel free to reassigne ...
Comment 7 Martin Entlicher 2012-04-19 09:15:14 UTC
UIHandler.waitFlushed(UIHandler.java:180) seems to wait indefinitely for a task, which does not finish for some reason...
Comment 8 Martin Entlicher 2012-04-20 09:39:59 UTC
"Flush UI Logs" thread is waiting until "UI Gestures" finishes, but "UI Gestures" is waiting back on "Flush UI Logs".

writeOut() must not wait for a task, that wants to have all messages written out.
Comment 9 Martin Entlicher 2012-04-22 20:06:33 UTC
Fixed by changeset:   219786:9128fbed24af
http://hg.netbeans.org/main/rev/9128fbed24af
Comment 10 Michel Graciano 2012-04-23 15:01:25 UTC
v. Build 20120423-87c35c55c776
Comment 11 Quality Engineering 2012-04-24 10:01:11 UTC
Integrated into 'main-golden', will be available in build *201204240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9128fbed24af
User: mentlicher@netbeans.org
Log: #211392: Prevent from submit process waiting on flush tasks, which is causing deadlocks. A test is written to verify the correct functionality.