8890 : IDEA hung by maven plugin (it seems)

here is what I can see from a thread dump

"AWT-EventQueue-1" prio=6 tid=0x506f6800 nid=0x974 in Object.wait()
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.intellij.util.concurrency.Semaphore.waitFor(Semaphore.java:38)
- locked ]]> (a com.intellij.util.concurrency.Semaphore)
at org.jetbrains.idea.maven.project.MavenProcess$MavenTaskHandler.waitFor(MavenProcess.java:120)
at org.jetbrains.idea.maven.project.MavenProjectsManager.stopAllBackgroundTasks(MavenProjectsManager.java:233)
at org.jetbrains.idea.maven.project.MavenProjectsManager.doReimport(MavenProjectsManager.java:251)
at org.jetbrains.idea.maven.project.MavenProjectsManager.reimport(MavenProjectsManager.java:239)
at org.jetbrains.idea.maven.project.action.ReimportAction.perform(ReimportAction.java:7)
at org.jetbrains.idea.maven.project.action.MavenAction.actionPerformed(MavenAction.java:16)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:67)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:65)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:85)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:75)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:119)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:180)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

The full thread dump is attached



Attachment(s):
threaddump.txt
5 comments
Comment actions Permalink

update .... While I was writing this, it seems IDEA recovered, so I guess this can be safely ignored.

One thing though, as this maven activity occurs in the AWT dispatch thread, the whole IDEA window is frozen, this should probably be corrected ?

0
Comment actions Permalink

Yeah, I had same issues, but there's no deadlock. To reproduce, change your pom and
choose to sync it with project. Now, Idea runs few background tasks, and while it is running change your pom again and choose again to sync.
Now sit down, take a cigarette and wait 30/40 min(depends how big your pom is. )...oh wait I quit smoking,...

0
Comment actions Permalink

Well, I stopped smoking and starting drinking* because of this behaviour! ;)



tea, that is....

Edited by: Erik Pragt on Oct 20, 2008 9:59 PM

0
Comment actions Permalink

According to the stacktraces, this problem occurs when some repository stops to respond; and Idea had to wait for embedded Maven to exit from 'resolve' method.

I've made a workaround for this problem, though, and there shouldn't be such 'deadlock-like' behaviour.
Let me know if any similar problem arise in the next eap.

Thanks,
Anton Makeev

0

Please sign in to leave a comment.