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 207903 - close all freezes netbeans
Summary: close all freezes netbeans
Status: RESOLVED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 209202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-30 09:52 UTC by bazo
Modified: 2013-06-06 15:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message Log (46.11 KB, text/x-log)
2012-03-06 13:52 UTC, maxevron
Details
Message Log (continued) (34.69 KB, application/octet-stream)
2012-03-06 13:52 UTC, maxevron
Details
Message Log (continued and ending) (34.18 KB, application/octet-stream)
2012-03-06 13:53 UTC, maxevron
Details
Thread dump in netbeans 7.1.2 with opened PHP project (17.65 KB, text/plain)
2012-05-24 12:25 UTC, geza83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bazo 2012-01-30 09:52:37 UTC
When doing close all on opened file tabs, the whole netbeans becomes unresponsive and the process javaw.exe consumes around 30% of the processor. When i do close other and the close the last window manually, everything is ok. This happens only when a multitude of tabs is open.

java is 6.30 and 6.27 on another machine.

i wanted to attach the dump, but this behaviour did not occur when netbeans was started from console.
Comment 1 Petr Somol 2012-01-30 11:55:14 UTC
Dusan, please evaluate (sorry if this out of your scope)
Comment 2 Azania 2012-01-31 09:35:19 UTC
Confirmed for Linux with Java 7
Comment 3 Miloslav Metelka 2012-01-31 10:10:25 UTC
Could you please attach your messages.log? Thanks.
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 4 Petr Somol 2012-03-06 13:40:05 UTC
*** Bug 209202 has been marked as a duplicate of this bug. ***
Comment 5 maxevron 2012-03-06 13:52:18 UTC
Created attachment 116398 [details]
Message Log
Comment 6 maxevron 2012-03-06 13:52:46 UTC
Created attachment 116399 [details]
Message Log (continued)
Comment 7 maxevron 2012-03-06 13:53:02 UTC
Created attachment 116400 [details]
Message Log (continued and ending)
Comment 8 Miloslav Metelka 2012-03-07 08:40:18 UTC
There does not appear to be anything wrong in the logs.
Could you please run jps followed by jstack for the given java process in order to get thread dumps during the freeze? Thanks.
Comment 9 maxevron 2012-03-07 08:43:32 UTC
Miloslav Metelka, I'll do it on next freeze.
Comment 10 maxevron 2012-03-07 14:04:41 UTC
New freeze but jps was not installed. I installed openjdk-6-jdk as suggested by Ubuntu. To be continued...
Comment 11 maxevron 2012-03-07 14:10:17 UTC
Got it, finaly.


Full thread dump OpenJDK Client VM (20.0-b11 mixed mode, sharing):

"Attach Listener" daemon prio=10 tid=0x0887f800 nid=0x379a waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"logger-awt" daemon prio=10 tid=0x08de9400 nid=0x3724 in Object.wait() [0xac88e000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.util.TimerThread.mainLoop(Timer.java:531)
	- locked <0x61a46cb8> (a java.util.TaskQueue)
	at java.util.TimerThread.run(Timer.java:484)

"Connect thread 192.168.8.100 session" daemon prio=10 tid=0xabee1c00 nid=0x1b80 runnable [0xb08fe000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:146)
	at com.jcraft.jsch.IO.getByte(IO.java:82)
	at com.jcraft.jsch.Session.read(Session.java:821)
	at com.jcraft.jsch.Session.run(Session.java:1241)
	at java.lang.Thread.run(Thread.java:679)

"Parsing & Indexing Loop (201201101530)" daemon prio=10 tid=0x08397400 nid=0x1970 waiting on condition [0xb31ef000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x5b776b88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
	at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:248)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:715)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)

"DestroyJavaVM" prio=10 tid=0xb099a400 nid=0x1913 waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"AWT-EventQueue-1" prio=10 tid=0x08359400 nid=0x1932 runnable [0xaca8f000]
   java.lang.Thread.State: RUNNABLE
	at sun.reflect.Reflection.getClassAccessFlags(Native Method)
	at sun.reflect.Reflection.quickCheckMemberAccess(Reflection.java:81)
	at java.lang.reflect.Method.invoke(Method.java:595)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:451)
	at $Proxy8.equals(Unknown Source)
	at javax.swing.event.EventListenerList.remove(EventListenerList.java:224)
	- locked <0x5b4bf750> (a javax.swing.event.EventListenerList)
	at org.openide.nodes.Node.removeNodeListener(Node.java:904)
	at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:319)
	- locked <0x5b51afa8> (a java.lang.Object)
	at org.netbeans.modules.navigator.NavigatorController.run(NavigatorController.java:595)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
	at java.awt.EventQueue.access$000(EventQueue.java:96)
	at java.awt.EventQueue$1.run(EventQueue.java:608)
	at java.awt.EventQueue$1.run(EventQueue.java:606)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:162)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

"TimerQueue" daemon prio=10 tid=0x08548c00 nid=0x1931 waiting on condition [0xaff4d000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x5b25d660> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
	at java.util.concurrent.DelayQueue.take(DelayQueue.java:189)
	at javax.swing.TimerQueue.run(TimerQueue.java:167)
	at java.lang.Thread.run(Thread.java:679)

"Worker-JM" prio=10 tid=0x08326400 nid=0x1930 in Object.wait() [0xacc90000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x5b25d730> (a java.util.ArrayList)
	at org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
	- locked <0x5b25d730> (a java.util.ArrayList)

"Framework Event Dispatcher" daemon prio=10 tid=0x0834b400 nid=0x192f in Object.wait() [0xace91000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x5b25d748> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
	at java.lang.Object.wait(Object.java:502)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
	- locked <0x5b25d748> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

"Thread-1" daemon prio=10 tid=0xae7f1000 nid=0x192d in Object.wait() [0xad293000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x5b18a330> (a java.util.LinkedList)
	at java.lang.Object.wait(Object.java:502)
	at java.util.prefs.AbstractPreferences$EventDispatchThread.run(AbstractPreferences.java:1478)
	- locked <0x5b18a330> (a java.util.LinkedList)

"File Watcher" prio=10 tid=0xae7e3000 nid=0x192c runnable [0xae6fe000]
   java.lang.Thread.State: RUNNABLE
	at com.sun.jna.Function.invokeInt(Native Method)
	at com.sun.jna.Function.invoke(Function.java:344)
	at com.sun.jna.Function.invoke(Function.java:276)
	at com.sun.jna.Library$Handler.invoke(Library.java:216)
	at org.netbeans.modules.masterfs.watcher.$Proxy6.read(Unknown Source)
	at org.netbeans.modules.masterfs.watcher.LinuxNotifier.nextEvent(LinuxNotifier.java:136)
	at org.netbeans.modules.masterfs.watcher.Watcher$Ext.run(Watcher.java:303)
	at java.lang.Thread.run(Thread.java:679)

"State Data Manager" daemon prio=10 tid=0xaf88ac00 nid=0x1929 waiting on condition [0xaf5fd000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
	at java.lang.Thread.sleep(Native Method)
	at org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:319)
	at java.lang.Thread.run(Thread.java:679)

"Framework Active Thread" prio=10 tid=0xaf88bc00 nid=0x1928 in Object.wait() [0xaf7fe000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1653)
	- locked <0x5afb2f60> (a org.eclipse.osgi.framework.internal.core.Framework)
	at java.lang.Thread.run(Thread.java:679)

"AWT-Shutdown" prio=10 tid=0x08548400 nid=0x1926 in Object.wait() [0xafd4c000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:281)
	- locked <0x5ac75068> (a java.lang.Object)
	at java.lang.Thread.run(Thread.java:679)

"AWT-XAWT" daemon prio=10 tid=0x0852ec00 nid=0x1921 runnable [0xb014e000]
   java.lang.Thread.State: RUNNABLE
	at sun.awt.X11.XToolkit.waitForEvents(Native Method)
	at sun.awt.X11.XToolkit.run(XToolkit.java:568)
	at sun.awt.X11.XToolkit.run(XToolkit.java:543)
	at java.lang.Thread.run(Thread.java:679)

"Java2D Disposer" daemon prio=10 tid=0x084eb800 nid=0x1920 in Object.wait() [0xb046e000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
	- locked <0x5ac751e0> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:149)
	at sun.java2d.Disposer.run(Disposer.java:143)
	at java.lang.Thread.run(Thread.java:679)

"CLI Requests Server" daemon prio=10 tid=0x084ac400 nid=0x191d runnable [0xb0eff000]
   java.lang.Thread.State: RUNNABLE
	at java.net.PlainSocketImpl.socketAccept(Native Method)
	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
	at java.net.ServerSocket.implAccept(ServerSocket.java:470)
	at java.net.ServerSocket.accept(ServerSocket.java:438)
	at org.netbeans.CLIHandler$Server.run(CLIHandler.java:1084)

"Active Reference Queue Daemon" daemon prio=10 tid=0x0849c000 nid=0x191c in Object.wait() [0xb3419000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
	- locked <0x5ac5a0c8> (a java.lang.ref.ReferenceQueue$Lock)
	at org.openide.util.lookup.implspi.ActiveQueue$Impl.run(ActiveQueue.java:101)
	at java.lang.Thread.run(Thread.java:679)

"RequestProcessor queue manager" daemon prio=10 tid=0x08392400 nid=0x191b in Object.wait() [0xb366e000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at org.openide.util.RequestProcessor$TickTac.obtainFirst(RequestProcessor.java:2219)
	- locked <0x5ac5a0f0> (a org.openide.util.RequestProcessor$TickTac)
	at org.openide.util.RequestProcessor$TickTac.run(RequestProcessor.java:2200)

"Low Memory Detector" daemon prio=10 tid=0x082f9c00 nid=0x1919 runnable [0x00000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread0" daemon prio=10 tid=0x082f8000 nid=0x1918 waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x082f6400 nid=0x1917 runnable [0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x082ef000 nid=0x1916 in Object.wait() [0xb4010000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
	- locked <0x5ac5a320> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:149)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177)

"Reference Handler" daemon prio=10 tid=0x082ed400 nid=0x1915 in Object.wait() [0xb4211000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
	- locked <0x5ac59cb8> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x082eb800 nid=0x1914 runnable 

"VM Periodic Task Thread" prio=10 tid=0x08305c00 nid=0x191a waiting on condition 

JNI global references: 4211
Comment 12 Miloslav Metelka 2012-03-07 14:32:39 UTC
Thanks, there is NavigatorController updating its context but not necessarily a culprit (please take as many thread dumps during the freeze as possible).
If the problem occurs fairly frequently could you please instead click "Profile the IDE" icon on the main toolbar before doing the close and then after the lengthy closing finishes click the icon again and then click "Export to" icon in the snapshot window and export it to a .nps file and attach that file to this issue? This will give us better info about all the processing that the IDE did. Thank you.
Comment 13 maxevron 2012-03-07 14:42:30 UTC
Thanks, there is NavigatorController updating its context but not necessarily a
culprit (please take as many thread dumps during the freeze as possible).
If the problem occurs fairly frequently could you please instead click "Profile
the IDE" icon on the main toolbar before doing the close and then after the
lengthy closing finishes click the icon again and then click "Export to" icon
in the snapshot window and export it to a .nps file and attach that file to
this issue? This will give us better info about all the processing that the IDE
did. Thank you.

I'll take as many thread dumps next time the problem occurs. However, I'm afraid I will not be able to click anything: NetBeans is entirely frozen, even menus does not respond. Click on windows close icon (X) managed by system is not responsive neither.

Nevertheless, could you tell me where could I find the "Profile the IDE" icon you are talking about? I cannot find it.
Comment 14 venimus 2012-05-09 13:26:07 UTC
I have the same problem since 7.1
hangs with 100% cpu usage i waited 10 minutes and didn't finish. have to kill java machine each time.
win7 x64 jre 7
Comment 15 Miloslav Metelka 2012-05-18 07:55:26 UTC
Please see http://wiki.netbeans.org/FaqProfileMeNow and possibly also http://wiki.netbeans.org/GenerateThreadDump for using jstack.
Comment 16 geza83 2012-05-24 12:25:07 UTC
Created attachment 119814 [details]
Thread dump in netbeans 7.1.2 with opened PHP project
Comment 17 Pekz0r 2012-07-05 15:10:18 UTC
I have the same issue Win 7 x64 with 7.1 och 7.1.2. It crashes almost every time when I ahve 10+ tabs and the IDe has been running for a while. After a fresh start there is no problem.
Has this been worked on or is it fixed in the 7.2 release?
Comment 18 HelmarH 2012-07-13 14:27:47 UTC
I have the same issue Netbeans 7.1, Windows Vista x64. I noticed that it always happens when I have an open Navigator and I am editing PHP documents. If I close the Navigator, it does not occur. Maybe that is a coincidence, maybe not.
Comment 19 Milutin Kristofic 2013-06-06 15:20:21 UTC
Without any snapshot, we can't find where a problem is. Can you profile freeze? http://wiki.netbeans.org/FaqProfileMeNow. Is it happening in Netbeans 7.3?