JUnit problem in 1128

Hi Jacques,

I am using the Junit plugin with 1128, IDEA often gets into deadlock when the plugin is installed. The thread dump of IDEA in that state gives the following... I am sorry I don't know how to reproduce this reliably...

Thanks,
Dash.

"Daemon code analyzer" prio=2 tid=0x2699d610 nid=0x184 waiting for monitor entry

at com.intellij.psi.impl.a.a.e.a(e.java:72)
- waiting to lock (a com.intellij.psi.impl.a.a.e) at com.intellij.psi.impl.a.a.e.a(e.java:74) at com.intellij.psi.util.InheritanceUtil.a(InheritanceUtil.java:50) at com.intellij.psi.util.InheritanceUtil.isInheritorOrSelf(InheritanceUt il.java:52) at com.intellij.psi.util.TypeConversionUtil.a(TypeConversionUtil.java:26 8) at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionU til.java:222) at com.intellij.psi.util.PsiUtil.isApplicable(PsiUtil.java:78) at com.intellij.psi.infos.b.b(b.java:1) at com.intellij.psi.scope.b.b.a(b.java:95) at com.intellij.psi.scope.a.b.g(b.java:10) at com.intellij.psi.impl.source.c.a.bf.b(bf.java:118) at com.intellij.psi.impl.source.c.a.bf.access$000(bf.java:149) at com.intellij.psi.impl.source.c.a.bf$a_.b(bf$a_.java:16) at com.intellij.psi.impl.source.c.a.bf$a_.a(bf$a_.java) at com.intellij.psi.impl.source.d.c.a(c.java:85) at com.intellij.psi.impl.source.c.a.bf.multiResolve(bf.java:113) at com.intellij.psi.impl.source.c.a.bf.advancedResolve(bf.java:131) at com.intellij.codeInsight.s.a(s.java:98) at com.intellij.codeInsight.s.a(s.java:52) at com.intellij.codeInsight.s.a(s.java:44) at com.intellij.codeInsight.s.a(s.java:44) at com.intellij.codeInsight.s.a(s.java:246) at com.intellij.codeInsight.g.a.a.i.a(i.java:252) at com.intellij.codeInsight.g.a.a.l.visitReferenceElement(l.java:247) at com.intellij.psi.impl.source.m.accept(m.java:2) at com.intellij.codeInsight.g.a.a.l.a(l.java:77) at com.intellij.codeInsight.g.a.h.a(h.java:151) at com.intellij.codeInsight.g.a.h.b(h.java:50) at com.intellij.codeInsight.g.a.bk$1.run(bk$1.java:0) at com.intellij.openapi.application.b.b.runReadAction(b.java:347) at com.intellij.codeInsight.g.a.bk.b(bk.java) at com.intellij.codeInsight.g.a.bk.access$100(bk.java:4) at com.intellij.codeInsight.g.a.bk$0.run(bk$0.java:0) at com.intellij.progress.ProgressManager.runProcess(ProgressManager.java :34) at com.intellij.codeInsight.g.a.bk.run(bk.java:24) "EditorCaretThread" prio=7 tid=0x250445c8 nid=0x900 waiting on condition [2edef0 00..2edefd88] at java.lang.Thread.sleep(Native Method) at com.intellij.openapi.editor.b.m$bh_.run(m$bh_.java:3) "Thread-3" daemon prio=7 tid=0x24d4a7d8 nid=0x644 in Object.wait() [2e67f000..2e 67fd88] at java.lang.Object.wait(Native Method) - waiting on <0x132a4a38> (a java.util.TaskQueue) at java.util.TimerThread.mainLoop(Timer.java:429) - locked <0x132a4a38> (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:382) "AWT-EventQueue-1" prio=7 tid=0x24e25228 nid=0x580 in Object.wait() [2778f000..2 778fd88] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:429) at com.intellij.util.f.d.b(d.java:62) - locked <0x115921f8> (a com.intellij.util.f.e) at com.intellij.util.f.e.b(e.java:5) at com.intellij.psi.impl.c.q.getTypeParameterList(q.java:296) at com.intellij.psi.util.PsiUtil$TypeParameterIterator.a(PsiUtil.java:19 ) at com.intellij.psi.util.PsiUtil$TypeParameterIterator.(PsiUtil.ja va:16) at com.intellij.psi.util.PsiUtil$TypeParameterIterator.(PsiUtil.ja va:14) at com.intellij.psi.util.PsiUtil.typeParametersIterator(PsiUtil.java:444 ) at com.intellij.psi.impl.c.f.resolve(f.java:115) at com.intellij.psi.impl.c.f.advancedResolve(f.java:96) at com.intellij.psi.impl.source.bn.resolveGenerics(bn.java:22) at com.intellij.psi.impl.source.bn.resolve(bn.java:32) at com.intellij.psi.impl.q.a(q.java:298) at com.intellij.psi.impl.q.g(q.java:141) at com.intellij.psi.impl.q.f(q.java) at com.intellij.psi.impl.c.q.getSupers(q.java:121) at com.intellij.psi.impl.a.a.e.a(e.java:66) - locked <0x13346c00>]]> (a com.intellij.psi.impl.a.a.e)
at com.intellij.psi.impl.a.a.e.a(e.java:74)
at com.intellij.psi.util.InheritanceUtil.a(InheritanceUtil.java:50)
at com.intellij.psi.util.InheritanceUtil.isInheritor(InheritanceUtil.jav
a:72)
at com.intellij.execution.junit.b.a(b.java:26)
at com.intellij.execution.junit.b.c(b.java:31)
at com.intellij.execution.junit.k.c(k.java:4)
at com.intellij.execution.junit.JUnitConfiguration.getConfigurationWarni
ng(JUnitConfiguration.java:60)
at com.intellij.execution.RunManager.getConfigurationIcon(RunManager.jav
a:20)
at com.intellij.execution.c.l.a(l.java:13)
at com.intellij.execution.c.l.a(l.java:40)
at com.intellij.execution.c.l.update(l.java:36)
at com.intellij.openapi.actionSystem.a.i.a(i.java:11)
at com.intellij.openapi.actionSystem.a.p.c(p.java:213)
at com.intellij.openapi.actionSystem.a.p$c_.c(p$c_.java:12)
at com.intellij.openapi.actionSystem.a.j.c(j.java:1)
at com.intellij.openapi.actionSystem.a.a$0.actionPerformed(a$0.java:2)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:43)
at com.intellij.ide.q.a(q.java:10)
at com.intellij.ide.q.dispatchEvent(q.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.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)

"Thread-2" prio=7 tid=0x24e26520 nid=0x8e8 waiting on condition [2768f000..2768f
d88]
at java.lang.Thread.sleep(Native Method)
at com.intellij.progress.ProgressManager$2.run(ProgressManager.java:1)

"com.jniwrapper.NativeResourceCollector" daemon prio=7 tid=0x24dcfd80 nid=0x344
in Object.wait()
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at com.jniwrapper.e.run(SourceFile:58) "TimerQueue" daemon prio=5 tid=0x26883db8 nid=0x614 runnable [2748f000..2748fd88 ] at java.lang.Object.wait(Native Method) at javax.swing.TimerQueue.run(TimerQueue.java:231) - locked <0x116b83b0>]]> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:534)

"StoreRefreshStatusThread" prio=2 tid=0x24abdd10 nid=0x57c waiting on condition

at java.lang.Thread.sleep(Native Method)
at com.intellij.openapi.vfs.a.a.g$b_.run(g$b_.java:5)

"WatchForChangesThread" prio=7 tid=0x24ab6c88 nid=0x8d8 runnable [2718f000..2718
fd88]
at com.intellij.vfs.local.win32.FileWatcher.waitForChangeImpl(Native Met
hod)
at com.intellij.vfs.local.win32.FileWatcher.c(FileWatcher.java:13)
at com.intellij.openapi.vfs.a.a.g$c_.run(g$c_.java:22)

"AlarmThread" prio=5 tid=0x24e67b38 nid=0x280 in Object.wait() [2660f000..2660fd
88]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:429)
at com.intellij.util.Alarm$MyThread.run(Alarm.java:54)
- locked (a java.lang.Object) "AlarmThread" prio=5 tid=0x24dae038 nid=0x758 in Object.wait() [2650f000..2650fd 88] at java.lang.Object.wait(Native Method) at com.intellij.util.Alarm$MyThread.run(Alarm.java:73) - locked <0x114bc668> (a java.lang.Object) "AWT-Shutdown" prio=5 tid=0x24b664a8 nid=0x784 in Object.wait() [2610f000..2610f d88] at java.lang.Object.wait(Native Method) - waiting on <0x113cf6f0> (a java.lang.Object) at java.lang.Object.wait(Object.java:429) at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259) - locked <0x113cf6f0> (a java.lang.Object) at java.lang.Thread.run(Thread.java:534) "SocketListenerThread" prio=5 tid=0x24a34398 nid=0x524 runnable [2600f000..2600f d88] at java.net.PlainDatagramSocketImpl.receive(Native Method) - locked <0x113e8458> (a java.net.PlainDatagramSocketImpl) at java.net.DatagramSocket.receive(DatagramSocket.java:711) - locked <0x113ed5b0> (a java.net.DatagramPacket) - locked <0x113e8420> (a java.net.MulticastSocket) at com.intellij.licensecommon.f.a.e.b(e.java:42) at com.intellij.licensecommon.f.a.f.run(f.java:5) "SocketListenerThread" prio=5 tid=0x24a341a8 nid=0x678 runnable [25f0f000..25f0f d88] at java.net.PlainDatagramSocketImpl.receive(Native Method) - locked <0x113e8320> (a java.net.PlainDatagramSocketImpl) at java.net.DatagramSocket.receive(DatagramSocket.java:711) - locked <0x113ed578> (a java.net.DatagramPacket) - locked <0x113e8190> (a java.net.DatagramSocket) at com.intellij.licensecommon.f.a.e.b(e.java:42) at com.intellij.licensecommon.f.a.f.run(f.java:5) "MessageDeliveryThread" prio=5 tid=0x24d6cd88 nid=0x5b8 in Object.wait() [25e0f0 00..25e0fd88] at java.lang.Object.wait(Native Method) - waiting on <0x113e85f0> (a java.lang.Object) at java.lang.Object.wait(Object.java:429) at com.intellij.licensecommon.f.r.run(r.java:6) - locked <0x113e85f0> (a java.lang.Object) "Java2D Disposer" daemon prio=10 tid=0x00a38ce8 nid=0x69c in Object.wait() [2579 f000..2579fd88] at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111) - locked <0x113e4c98>]]> (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-Windows" daemon prio=7 tid=0x24cf96a0 nid=0x748 runnable [2559f000..2559fd8
8]
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:262)
at java.lang.Thread.run(Thread.java:534)

"Lock thread" prio=5 tid=0x24cbb740 nid=0x664 runnable
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked ]]> (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.intellij.idea.d$b_.run(d$b_.java:3)
at java.lang.Thread.run(Thread.java:534)

"Signal Dispatcher" daemon prio=10 tid=0x009f0680 nid=0x4e8 waiting on condition


"Finalizer" daemon prio=9 tid=0x009ed7e8 nid=0x8fc in Object.wait() [2446f000..2
446fd88]
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked (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=10 tid=0x009ec360 nid=0x648 in Object.wait() [24 36f000..2436fd88] 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 <0x114bf1a8>]]> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x00865c70 nid=0x6f4 waiting on condition

"VM Thread" prio=5 tid=0x00a2d360 nid=0x7a4 runnable

"VM Periodic Task Thread" prio=10 tid=0x0086f140 nid=0x778 waiting on condition

"Suspend Checker Thread" prio=10 tid=0x009efb18 nid=0x738 runnable

2 comments
Comment actions Permalink

Dash,

If you look closely all the junit references point to IDEA code not the junit plugin. All my packages start with org.intellij. not com.intellij.

You should submit a bug for it.

(Boy am I relieved I don't have to trace that one ;)

Jacques

0
Comment actions Permalink

Aha... my fault.

sorry to scare you :)

-Dash.

"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:19416922.1075524181062.JavaMail.itn@is.intellij.net...

Dash,

>

If you look closely all the junit references point to IDEA code not the

junit plugin. All my packages start with org.intellij. not com.intellij.
>

You should submit a bug for it.

>

(Boy am I relieved I don't have to trace that one ;)

>

Jacques



0

Please sign in to leave a comment.