Bug 46953 - IDE hang while doing findusages
IDE hang while doing findusages
Status: RESOLVED INVALID
Product: editor
Classification: Unclassified
Component: Refactoring
4.x
PC Linux
: P3 (vote)
: 4.x
Assigned To: issues@java
issues@java
: RANDOM, THREAD
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-06 02:01 UTC by Sreenivasa Viswanadha
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sreenivasa Viswanadha 2004-08-06 02:01:27 UTC
I have been using the IDE to browse some source
code. At some point when I did a 'find usages' on
a class, it just hung. Thread dump:

Full thread dump Java HotSpot(TM) Client VM
(1.4.2_05-b04 mixed mode):

"Inactive RequestProcessor thread
[Was:TimedSoftReference/org.openide.util.TimedSoftReference]"
daemon prio=1 tid=0x0818d530 nid=0x6305 in
Object.wait() [57bb7000..57bb7854]
        at java.lang.Object.wait(Native Method)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:657)
        - locked <0x483f4410> (a java.lang.Object)

"OpenIDE-request-processor-0" daemon prio=1
tid=0x08192148 nid=0x6305 waiting for monitor
entry [58199000..58199854]
        at
javax.swing.TimerQueue.addTimer(TimerQueue.java:98)
        - waiting to lock <0x45744a88> (a
javax.swing.TimerQueue)
        at javax.swing.Timer.start(Timer.java:486)
        at
org.netbeans.modules.java.JavaNode$StateUpdater.updateNode(JavaNode.java:827)
        - locked <0x458815e8> (a
org.netbeans.modules.java.JavaNode$StateUpdater)
        at
org.netbeans.modules.java.JavaNode$IconResolver.run(JavaNode.java:324)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)

"Text-Layout" prio=1 tid=0x0890b2b0 nid=0x6305 in
Object.wait() [582c9000..582c9854]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x466aaba0> (a
org.netbeans.editor.view.spi.ViewLayoutQueue)
        at java.lang.Object.wait(Object.java:429)
        at
org.netbeans.editor.view.spi.ViewLayoutQueue.waitForTask(ViewLayoutQueue.java:128)
        - locked <0x466aaba0> (a
org.netbeans.editor.view.spi.ViewLayoutQueue)
        at
org.netbeans.editor.view.spi.ViewLayoutQueue$LayoutThread.run(ViewLayoutQueue.java:182)

"MDR event dispatcher" daemon prio=1
tid=0x080b6460 nid=0x6305 in Object.wait()
[57e3c000..57e3c854]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x458a7e90> (a
java.util.LinkedList)
        at java.lang.Object.wait(Object.java:429)
        at
org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier.java:256)
        - locked <0x458a7e90> (a java.util.LinkedList)
        at java.lang.Thread.run(Thread.java:534)

"DestroyJavaVM" prio=1 tid=0x0805b208 nid=0x6305
waiting on condition [0..bfffbf54]

"TimerQueue" daemon prio=1 tid=0x08077a28
nid=0x6305 waiting for monitor entry
[57d3a000..57d3a854]
        at sun.awt.AppContext.get(AppContext.java:542)
        - waiting to lock <0x454265d0> (a
java.util.HashMap)
        at
sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:543)
        at
sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:537)
        at
java.awt.Toolkit.getEventQueue(Toolkit.java:1519)
        at
java.awt.EventQueue.invokeLater(EventQueue.java:792)
        at
javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1170)
        at javax.swing.Timer.post(Timer.java:538)
        - locked <0x4743e3f8> (a javax.swing.Timer)
        at
javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:193)
        - locked <0x45744a88> (a
javax.swing.TimerQueue)
        at
javax.swing.TimerQueue.run(TimerQueue.java:229)
        - locked <0x45744a88> (a
javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:534)

"AWT-EventQueue-1" prio=1 tid=0x08340aa0
nid=0x6305 waiting for monitor entry
[54648000..54649854]
        at
javax.swing.TimerQueue.addTimer(TimerQueue.java:98)
        - waiting to lock <0x45744a88> (a
javax.swing.TimerQueue)
        at javax.swing.Timer.start(Timer.java:486)
        at
javax.swing.plaf.basic.BasicProgressBarUI$Animator.start(BasicProgressBarUI.java:1233)
        at
javax.swing.plaf.basic.BasicProgressBarUI$Animator.access$200(BasicProgressBarUI.java:1207)
        at
javax.swing.plaf.basic.BasicProgressBarUI.startAnimationTimer(BasicProgressBarUI.java:190)
        at
javax.swing.plaf.basic.BasicProgressBarUI$PropertyChangeHandler.propertyChange(BasicProgressBarUI.java:1297)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
        at
javax.swing.JComponent.firePropertyChange(JComponent.java:3954)
        at
javax.swing.JProgressBar.setIndeterminate(JProgressBar.java:875)
        at
org.netbeans.modules.refactoring.api.ui.ParametersPanel$12.run(ParametersPanel.java:535)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
        at java.awt.Dialog$1.run(Dialog.java:540)
        at java.awt.Dialog.show(Dialog.java:561)
        at
java.awt.Component.show(Component.java:1133)
        at
java.awt.Component.setVisible(Component.java:1088)
        at
org.netbeans.modules.refactoring.api.ui.ParametersPanel.showDialog(ParametersPanel.java:447)
        - locked <0x49459f78> (a
org.netbeans.modules.refactoring.api.ui.ParametersPanel)
        at
org.netbeans.modules.refactoring.ui.RefactoringPanel.refresh(RefactoringPanel.java:414)
        at
org.netbeans.modules.refactoring.ui.RefactoringPanel.<init>(RefactoringPanel.java:86)
        at
org.netbeans.modules.refactoring.api.ui.AbstractRefactoringAction.run(AbstractRefactoringAction.java:120)
        at
org.netbeans.modules.refactoring.api.ui.AbstractRefactoringAction.performAction(AbstractRefactoringAction.java:73)
        at
org.netbeans.modules.refactoring.ui.WhereUsedWrapAction.performAction(WhereUsedWrapAction.java:77)
        at
org.netbeans.modules.refactoring.ui.WhereUsedEditorAction.performAction(WhereUsedEditorAction.java:42)
        at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
        at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
        at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.AbstractButton.doClick(AbstractButton.java:289)
        at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
        at
java.awt.Component.processMouseEvent(Component.java:5100)
        at
java.awt.Component.processEvent(Component.java:4897)
        at
java.awt.Container.processEvent(Container.java:1569)
        at
java.awt.Component.dispatchEventImpl(Component.java:3615)
        at
java.awt.Container.dispatchEventImpl(Container.java:1627)
        at
java.awt.Component.dispatchEvent(Component.java:3477)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at
java.awt.Container.dispatchEventImpl(Container.java:1613)
        at
java.awt.Window.dispatchEventImpl(Window.java:1606)
        at
java.awt.Component.dispatchEvent(Component.java:3477)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

"Java2D Disposer" daemon prio=1 tid=0x0832c158
nid=0x6305 in Object.wait() [545c8000..545c8854]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x4544fdc0> (a
java.lang.ref.ReferenceQueue$Lock)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at sun.java2d.Disposer.run(Disposer.java:100)
        at java.lang.Thread.run(Thread.java:534)

"AWT-Motif" daemon prio=1 tid=0x0829a998
nid=0x6305 in Object.wait() [544c5000..544c6854]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x4eab81f0> (a java.lang.Class)
        at
sun.awt.motif.MToolkitThreadBlockedHandler.enter(Native
Method)
        at
sun.awt.datatransfer.DataTransferer.convertData(DataTransferer.java:2046)
        at sun.awt.motif.MToolkit.run(Native Method)
        at java.lang.Thread.run(Thread.java:534)

"AWT-Shutdown" prio=1 tid=0x0829a658 nid=0x6305 in
Object.wait() [54445000..54445854]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x453d4f70> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:429)
        at
sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
        - locked <0x453d4f70> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:534)

"Active Reference Queue Daemon" daemon prio=1
tid=0x082488c8 nid=0x6305 in Object.wait()
[53df2000..53df2854]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x453d4fe0> (a
java.lang.ref.ReferenceQueue$Lock)
        at
org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2377)
        at java.lang.Thread.run(Thread.java:534)

"Thread-0" daemon prio=1 tid=0x0820b030 nid=0x6305
in Object.wait() [53d71000..53d71854]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x4539aaf8> (a
java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:429)
        at
java.util.TimerThread.mainLoop(Timer.java:403)
        - locked <0x4539aaf8> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:382)

"CLI Requests Server" daemon prio=1 tid=0x0820e048
nid=0x6305 runnable [53c3a000..53c3a854]
        at
java.net.PlainSocketImpl.socketAccept(Native Method)
        at
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
        - locked <0x4539abd0> (a
java.net.PlainSocketImpl)
        at
java.net.ServerSocket.implAccept(ServerSocket.java:448)
        at
java.net.ServerSocket.accept(ServerSocket.java:419)
        at
org.netbeans.CLIHandler$Server.run(CLIHandler.java:741)

"Signal Dispatcher" daemon prio=1 tid=0x080a5f18
nid=0x6305 waiting on condition [0..0]

"Finalizer" daemon prio=1 tid=0x08091548
nid=0x6305 in Object.wait() [5299e000..5299e854]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x4539ad78> (a
java.lang.ref.ReferenceQueue$Lock)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=1 tid=0x080909a0
nid=0x6305 in Object.wait() [5291d000..5291d854]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:429)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
        - locked <0x4539ab08> (a
java.lang.ref.Reference$Lock)

"VM Thread" prio=1 tid=0x0808f740 nid=0x6305 runnable

"VM Periodic Task Thread" prio=1 tid=0x080a8710
nid=0x6305 waiting on condition
"Suspend Checker Thread" prio=1 tid=0x080a5590
nid=0x6305 runnable
Comment 1 Jan Becicka 2004-08-13 08:17:07 UTC
I don't know what is going on here. It looks like "AWT-EventQueue-1"
is waiting for "Timer Queue". Can anyone reproduce it?
Comment 2 Jan Becicka 2004-08-18 10:12:25 UTC
This is not a deadlock. Find usaqes sometimes simply takes a long time.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo