lockup (100% cpu) when editing a specific file, plugin idea x 1190/115
dumps attached.
source:
package hstar.creole.syntaxtree
/**
* Developed with pleasure :)<br>
* User: HoD<br>
* Date: 25.09.2010<br>
* Time: 22:15:59<br>
*/
abstract class Element {
def children: List[Element]
}
case class WrappingElement(wrapped: Element) extends Element {
override def toString = "WrappingElement(" + wrapped + ")"
def children = List(wrapped)
}
case class ForkElement(first: Element, second: Element) extends Element {
override def toString = "ForkElement(" + first + ", " + second + ")"
def children = List(first, second)
}
case class SimpleText(text: String) extends Element {
override def toString = "SimpleText(" + text + ")"
def children = Nil
}
case class LineBreak extends Element {
override def toString = "LineBreak()"
def children = Nil
}
case class LinkAndDescription(text: Option[String], url: String) extends Element {
override def toString = "LinkAndDescription(" + url + ", " + text + ")"
def children = Nil
}
case class AttributedElement(_wrapped: Element, attribute: Attribute) extends WrappingElement(_wrapped) {
override def toString = {
"AttributedElement(" + wrapped + ", " + attribute + ")"
}
}
object AttributedElement {
def apply(s: String, attribute: Attribute) = {
new AttributedElement(new SimpleText(s), attribute)
}
}
Attachment(s):
20100928-220123.zip
Please sign in to leave a comment.
Do you able to edit code without freezings?
Best regards,
Alexander Podkhalyuzin.
at a (seemingly) random point, everything locks up and doesn't come back withing ~20 seconds, the gui is not responding. i never waited longer.
didn't have that problem in other files, but it's a very small project
It's puzzle for me. There is no infinite loop, or dead lock in thread dumps. Also there shouldn't be problem with freezing of UI thread as I see. Maybe you have possibility to give me full project? It can be helpful (however I'm not sure that it will be). Source of this file unfortunately is ok for me, and it doesn't contain anything unusual.
Best regards,
Alexander Podkhalyuzin.
it's not reproducible properly. once it happens, idea assumes its caches to be invalid and reindices my sources and libs. after that, i can do the same things without a lockup. if i figure out some more, i'll post it here.
I can get a reproducible lock on the AWT Event Thread by deactivating the IntelliJ frame while a large file is being analysed.
Stack trace here:
http://gist.github.com/609818
For others reading, you can get this stack trace during a lockup by running jstack, standard part of the JDK, from the command line:
jstack 2788 > stack.txt
2788 was the Process ID of the IntelliJ Java process, you can find this with top or Task Manager (after View -> Select Columns, PID).