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 237813 - Since 7.4 the "Find Usages" function ALWAYS hangs up Netbeans
Summary: Since 7.4 the "Find Usages" function ALWAYS hangs up Netbeans
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal with 5 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 14:21 UTC by luba
Modified: 2016-05-25 09:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (24.94 KB, image/png)
2013-10-30 14:46 UTC, luba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description luba 2013-10-30 14:21:06 UTC
Independant of scope (classname, functionname, local variable etc.) the "find usages" function in the right click context menu ALWAYS leads to Netbeans becoming completely unresponsive. Only a force quit can then let the user continue his work.
Oddly, the hanger always starts after all the usages have been found. So if I use the option on a single local variable, it finishes in a second, shows me the list of the found results and afterwards hangs up Netbeans.

This behaviour never occurred to me before 7.4 and sadly now makes this practical feature completely unusable.

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/lm/Library/Application Support/NetBeans/7.4
Cache directory: /Users/lm/Library/Caches/NetBeans/7.4
Comment 1 Ondrej Brejla 2013-10-30 14:24:29 UTC
Please, provide a thread dump and IDE log during freeze. Everything works properly on our machines. Thanks.
Comment 2 Ondrej Brejla 2013-10-30 14:25:11 UTC
And try the latest dev build [1] as well.

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 3 luba 2013-10-30 14:46:43 UTC
Created attachment 141700 [details]
IDE log
Comment 4 luba 2013-10-30 15:07:59 UTC
Alright I'll provide more details. Here are all the steps I have tried to resolve this issue:

1) Find usages on my project on 
---------
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/lm/Library/Application Support/NetBeans/7.4
Cache directory: /Users/lm/Library/Caches/NetBeans/7.4
----------

Result: Netbeans hangs forever. -> force quit

Thread dump:
http://pastebin.com/E6AG4uyA

IDE Log (started recording just before searching for the usages):
https://db.tt/JqL2k2a6

2) Reopened Netbeans and waited until background scanning was finished:
Reopen + Find Usages
Result: Netbeans hangs forever. -> force quit

3) Deleted caches under ~/Library/Caches/NetBeans
Reopen + Find Usages
Result: Netbeans hangs forever. -> force quit

4) Deleted settings folder under ~/Library/Application Support/NetBeans/7.4
Reopened Netbeans and imported NO settings from previous projects
Find Usages
Result: Netbeans hangs forever. -> force quit

5) Deleted settings folder again and created a completly new and empty php project
created a var like this:
1. https://db.tt/hHcSQh3X
2. https://db.tt/cLyJILZq
3. https://db.tt/otkQVoSk
Find Usages on the local variable
Result: Netbeans hangs forever. -> force quit

6) Downloaded nightly build
----------------
Product Version: NetBeans IDE Dev (Build 201310300001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/lm/Library/Application Support/NetBeans/dev
Cache directory: /Users/lm/Library/Caches/NetBeans/dev
----------------

Imported NO previous settings from any version
started a completely new project
Find Usages on the local variable mentioned above
Result: Netbeans hangs forever. -> force quit


And that's it. I've used up all my mana. Now it's up to you. Hope you find something in that thread dump.
Btw: My working collegue has exactly the same problem. Same java version, same Netbeans version, little newer OSX version.

I believe in you guys! Thanks for your help!

Regards Luba
Comment 5 Ondrej Brejla 2013-10-30 16:28:55 UTC
It's a bit strange, I just tested that on my home mac and it still works properly. No freeze in any time.

In thread dump, there is just parsing of PHP files running, in repository updater thread and AWT is waiting for something, but it's not clear for what.

I'll try to investigate it more, but it's hard if one can't reproduce it :/ It would be helpful to have more thread dumps probably... Maybe in some of them will be something suspicious.

Product Version: NetBeans IDE Dev (Build 20131024-00d2fafcf387)
Updates: Updates available
Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Mac OS X version 10.9 running on x86_64; UTF-8; cs_CZ (nb)
Comment 6 puce 2013-11-04 13:19:18 UTC
Similar issue here:

> 100 Maven projects

The Find Usages almost completes. Finds most (all?) references and the progression bar shows 100% but doesn't disappear.

The search tab is showing the spinning wheel.

Neither "stop search" (pressing the stop icon) nor canceling the running task (progress bar) stops the spinning wheel.

Here the IDE doesn't freeze, but calling "Find Usages" again just shows "Please Wait...".

Only a restart of the IDE helps.
Comment 7 puce 2013-11-04 13:21:23 UTC
Priority -> P1 (major loss of basic IDE functionality)
Comment 8 puce 2013-11-04 13:23:38 UTC
Note: I'm working on a Java EE 5 project (Maven 3.0.4 build).

Should I file a separate issue? Otherwise the "product" should be changed to something more generic than "php", I think.
Comment 9 puce 2013-11-04 13:29:20 UTC
The "Exit IDE" dialog shows "Usages" as running process.
Comment 10 puce 2013-11-04 13:35:40 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

running on a remote VM.
Comment 11 Ondrej Brejla 2013-11-04 13:39:58 UTC
Definitely file separate issue, it will be another problem. This one would probably be php specific (and just for some special setup). Thanks.
Comment 12 puce 2013-11-04 13:52:51 UTC
OK, I filed a separate issue here: https://netbeans.org/bugzilla/show_bug.cgi?id=237950
Comment 13 mgio 2013-11-12 22:38:15 UTC
I have this exact problem too. Netbeans runs the find usage command correctly and then promptly freezes requiring a force quit. This never happened before I upgraded to Mac OS X Mavericks and thus Java 1.7 (as Mavericks does not support 1.6). But once I upgraded it occurred in Netbeans 7.2 and after I upgraded Netbeans 7.4. It happens every single time which makes the "find usages" feature completely useless.
Comment 14 Ondrej Brejla 2013-11-13 08:07:49 UTC
Probably just mac (mavericks and java 1.7) related.

mgio: provide us some thread dumps made during frozen state...we can't reproduce that, so it is really needed. Thanks!
Comment 15 mgio 2013-11-19 20:26:40 UTC
Here is a thread dump after I do a "find usages" and Netbeans freezes. I hope this helps:

jstack 5878
2013-11-19 15:25:26
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode):

"Inactive RequestProcessor thread [Was:TimedSoftReference/org.openide.util.TimedSoftReference]" daemon prio=5 tid=0x00007fb1b1157000 nid=0x12513 in Object.wait() [0x00000001179e1000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbc4c120> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbc4c120> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:org.netbeans.modules.refactoring.spi.impl.ParametersPanel/org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare$2]" daemon prio=5 tid=0x00007fb1b1eb7800 nid=0xec0b in Object.wait() [0x00000001177de000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbdb8710> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbdb8710> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Project UI/org.netbeans.modules.project.ui.ProjectsRootNode$BadgingNode]" daemon prio=5 tid=0x00007fb1abcbd000 nid=0xee0b in Object.wait() [0x00000001129e2000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbf2ee78> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbf2ee78> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:VersioningAnnotator.annotationRefresh/org.netbeans.modules.versioning.core.VersioningAnnotationProvider$Cache$AnnotationRefreshTask]" daemon prio=5 tid=0x00007fb1b2858800 nid=0x12707 in Object.wait() [0x000000010d918000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fc29cd38> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fc29cd38> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:Diffsidebar long tasks/org.netbeans.modules.versioning.ui.diff.DiffSidebar$RefreshDiffTask]" daemon prio=5 tid=0x00007fb1b1bd2000 nid=0x11f07 in Object.wait() [0x000000010d715000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbfb25c0> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbfb25c0> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:AnnotationHolder/org.netbeans.modules.editor.hints.AnnotationHolder$4$2]" daemon prio=5 tid=0x00007fb1abe87000 nid=0x11b07 in Object.wait() [0x000000010d2d9000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbc2fa08> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbc2fa08> (a java.lang.Object)

"Inactive RequestProcessor thread [Was:org.openide.text Document Processing/org.openide.text.DocumentOpenClose$DocumentClose]" daemon prio=5 tid=0x00007fb1abac5800 nid=0xba0b in Object.wait() [0x000000010d037000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007fbc38528> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007fbc38528> (a java.lang.Object)

"Editor Parsing Loop (201310111528)" daemon prio=5 tid=0x00007fb1b1bb6800 nid=0x1195f waiting on condition [0x000000010cdb1000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000007fc482760> (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:539)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:665)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

"Attach Listener" daemon prio=5 tid=0x00007fb1abca4000 nid=0xe207 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"DestroyJavaVM" prio=5 tid=0x00007fb1ac313800 nid=0x1903 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"TimerQueue" daemon prio=5 tid=0x00007fb1ac194800 nid=0x10503 waiting on condition [0x000000011a47a000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000007d22e8098> (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:209)
	at javax.swing.TimerQueue.run(TimerQueue.java:171)
	at java.lang.Thread.run(Thread.java:744)

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

"Framework Event Dispatcher" daemon prio=5 tid=0x00007fb1ad069000 nid=0x10107 in Object.wait() [0x0000000116dcb000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d2377370> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
	at java.lang.Object.wait(Object.java:503)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
	- locked <0x00000007d2377370> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

"Thread-4" daemon prio=5 tid=0x00007fb1abd08000 nid=0xfb27 in Object.wait() [0x000000011a277000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d0d01018> (a java.util.LinkedList)
	at java.lang.Object.wait(Object.java:503)
	at java.util.prefs.AbstractPreferences$EventDispatchThread.run(AbstractPreferences.java:1476)
	- locked <0x00000007d0d01018> (a java.util.LinkedList)

"File Watcher" daemon prio=5 tid=0x00007fb1ab8b8800 nid=0xf903 waiting on condition [0x000000011a074000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000007d07b92a8> (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.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
	at org.netbeans.modules.masterfs.watcher.macosx.OSXNotifier.nextEvent(OSXNotifier.java:105)
	at org.netbeans.modules.masterfs.providers.Notifier$1.nextEvent(Notifier.java:119)
	at org.netbeans.modules.masterfs.watcher.Watcher$Ext.run(Watcher.java:304)
	at java.lang.Thread.run(Thread.java:744)

"Thread-2" daemon prio=5 tid=0x00007fb1acaf1800 nid=0xf003 runnable [0x0000000119e71000]
   java.lang.Thread.State: RUNNABLE
	at com.sun.jna.Native.invokeVoid(Native Method)
	at com.sun.jna.Function.invoke(Function.java:328)
	at com.sun.jna.Function.invoke(Function.java:276)
	at com.sun.jna.Library$Handler.invoke(Library.java:216)
	at com.sun.proxy.$Proxy2.CFRunLoopRun(Unknown Source)
	at org.netbeans.modules.masterfs.watcher.macosx.OSXNotifier$1.run(OSXNotifier.java:126)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)

"Inactive RequestProcessor thread [Was:TimedWeakReference/org.netbeans.modules.projectapi.TimedWeakReference]" daemon prio=5 tid=0x00007fb1abac5000 nid=0xe803 in Object.wait() [0x00000001175db000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d0ca0168> (a java.lang.Object)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1987)
	- locked <0x00000007d0ca0168> (a java.lang.Object)

"State Data Manager" daemon prio=5 tid=0x00007fb1ac190000 nid=0xe603 waiting on condition [0x00000001173d8000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
	at java.lang.Thread.sleep(Native Method)
	at org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:297)
	at java.lang.Thread.run(Thread.java:744)

"Framework Active Thread" prio=5 tid=0x00007fb1ac1e4000 nid=0xe403 in Object.wait() [0x00000001171d5000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d075e5e8> (a org.eclipse.osgi.framework.internal.core.Framework)
	at org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1863)
	- locked <0x00000007d075e5e8> (a org.eclipse.osgi.framework.internal.core.Framework)
	at java.lang.Thread.run(Thread.java:744)

"AWT-EventQueue-0" prio=5 tid=0x00007fb1ac918800 nid=0xcf07 waiting on condition [0x00000001145a3000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000007d05b3af0> (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.awt.EventQueue.getNextEvent(EventQueue.java:543)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

"Java2D Disposer" daemon prio=5 tid=0x00007fb1ab9b9800 nid=0xc833 in Object.wait() [0x0000000113e8d000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d029f370> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
	- locked <0x00000007d029f370> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
	at sun.java2d.Disposer.run(Disposer.java:145)
	at java.lang.Thread.run(Thread.java:744)

"Java2D Queue Flusher" daemon prio=5 tid=0x00007fb1ad0e0000 nid=0xc007 in Object.wait() [0x000000011301b000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d05b6918> (a sun.java2d.opengl.OGLRenderQueue$QueueFlusher)
	at sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:208)
	- locked <0x00000007d05b6918> (a sun.java2d.opengl.OGLRenderQueue$QueueFlusher)

"RequestProcessor queue manager" daemon prio=5 tid=0x00007fb1ad129000 nid=0xbd03 in Object.wait() [0x0000000112e18000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d0275c78> (a java.lang.Class for org.openide.util.RequestProcessor$TickTac)
	at org.openide.util.RequestProcessor$TickTac.obtainFirst(RequestProcessor.java:2265)
	- locked <0x00000007d0275c78> (a java.lang.Class for org.openide.util.RequestProcessor$TickTac)
	at org.openide.util.RequestProcessor$TickTac.run(RequestProcessor.java:2241)

"AWT-Shutdown" prio=5 tid=0x00007fb1ad0bc000 nid=0x7307 in Object.wait() [0x0000000110246000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d05b5ea8> (a java.lang.Object)
	at java.lang.Object.wait(Object.java:503)
	at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:287)
	- locked <0x00000007d05b5ea8> (a java.lang.Object)
	at java.lang.Thread.run(Thread.java:744)

"AppKit Thread" daemon prio=5 tid=0x00007fb1ac0df000 nid=0x507 runnable [0x00007fff5d148000]
   java.lang.Thread.State: RUNNABLE
	at sun.lwawt.macosx.LWCToolkit.doAWTRunLoop(Native Method)
	at sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:549)
	at sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:489)
	at sun.lwawt.macosx.CAccessibility.invokeAndWait(CAccessibility.java:75)
	at sun.lwawt.macosx.CAccessibility.getAccessibleIndexInParent(CAccessibility.java:282)

"CLI Requests Server" daemon prio=5 tid=0x00007fb1ac84f800 nid=0x5103 runnable [0x000000010e6b3000]
   java.lang.Thread.State: RUNNABLE
	at java.net.PlainSocketImpl.socketAccept(Native Method)
	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
	at java.net.ServerSocket.implAccept(ServerSocket.java:530)
	at java.net.ServerSocket.accept(ServerSocket.java:498)
	at org.netbeans.CLIHandler$Server.run(CLIHandler.java:1100)

"Active Reference Queue Daemon" daemon prio=5 tid=0x00007fb1ac843000 nid=0x4f03 in Object.wait() [0x000000010c34e000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d0588a18> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
	- locked <0x00000007d0588a18> (a java.lang.ref.ReferenceQueue$Lock)
	at org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:180)
	- locked <0x00000007d0588a18> (a java.lang.ref.ReferenceQueue$Lock)

"Service Thread" daemon prio=5 tid=0x00007fb1ab823800 nid=0x4b03 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" daemon prio=5 tid=0x00007fb1ab822800 nid=0x4903 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" daemon prio=5 tid=0x00007fb1ab821000 nid=0x4703 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=5 tid=0x00007fb1ad01e800 nid=0x4503 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=5 tid=0x00007fb1ab819800 nid=0x3103 in Object.wait() [0x000000010b74e000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d0261318> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
	- locked <0x00000007d0261318> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)

"Reference Handler" daemon prio=5 tid=0x00007fb1ab80f000 nid=0x2f03 in Object.wait() [0x000000010b54b000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d02791c0> (a java.lang.ref.Reference$Lock)
	at java.lang.Object.wait(Object.java:503)
	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
	- locked <0x00000007d02791c0> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=5 tid=0x00007fb1ad008800 nid=0x2d03 runnable 

"GC task thread#0 (ParallelGC)" prio=5 tid=0x00007fb1ac80d000 nid=0x2503 runnable 

"GC task thread#1 (ParallelGC)" prio=5 tid=0x00007fb1ac80e000 nid=0x2703 runnable 

"GC task thread#2 (ParallelGC)" prio=5 tid=0x00007fb1ac002800 nid=0x2903 runnable 

"GC task thread#3 (ParallelGC)" prio=5 tid=0x00007fb1ac003000 nid=0x2b03 runnable 

"VM Periodic Task Thread" prio=5 tid=0x00007fb1ab824000 nid=0x4d03 waiting on condition 

JNI global references: 3412
Comment 16 JiDai 2014-03-19 17:56:34 UTC
Hi, I have a similar problem. Here is my story :
- Netbeans 7.4 installed on Mountain Lion (10.8.last). All worked well
- Update to Mavericks (10.9.1) and got JDK v7u45
- Then the problems appears. The spinning wheel appears at differents times (find usages, search in whole project, canceling prefs panel, changing some prefs...). Very annoying.
- I tried to install 7.3.1. Same problems.
- I tried to update JDK to v7u51. Same problems.
- I tried to update JDK to v8. Same problems.
- Delete all Netbeans prefs files. Same problems.
- And after reading that should fix the problem on a similar issue (I forgot the number), I tried to downgrade to v7u25. And it worked. I guess I lost the retina compatibility but I tried all things which could generate the problems and the wheel never appears, for now :).

Hope that helps.
Comment 17 Ondrej Brejla 2014-03-19 19:41:44 UTC
Try it in NB 8.0, thanks.
Comment 18 JiDai 2014-03-20 11:51:30 UTC
As I said before I tried in Netbeans v8. I retried today with the last version just downloaded (Build 20140310170), then I reinstalled JDK 7u51 and the problems reappears.
I am on OSX 10.8.2.
Comment 19 bfanger 2014-03-20 14:21:55 UTC
"Find usages" now works as excepted on my machine.

I'm running  the latest stable versions of java sdk, netbeans and osx:

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.9.2 running on x86_64; UTF-8; nl_NL (nb)
Comment 20 JiDai 2014-03-20 21:17:38 UTC
I did not tried this combination : 

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132

After installing that, and 30 minutes coding, it seems to work well.

Very, very, happy! Thanks :)
Comment 21 Tomas Mysik 2016-05-25 09:18:17 UTC
Guys is this issue still valid? Please, try NetBeans 8.1 or better NetBeans dev version [1]. I do not have a MAC so I cannot test it, sorry.

Feel free to reopen this issue, thanks.
[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 22 luba 2016-05-25 09:44:24 UTC
@Tomas Mysik => Probably not valid anymore. Sorry I can't try it since I'm not using a Mac anymore.