|
|
|
Could you please take a thread dump at the moment of the hang and attach it to this request? You can use the following tool for that:
http://www.adaptj.com/root/main/stacktrace Observed some deadlock in ant in Selena 6667. Please, see attached dump.txt.
I have a big project with cases to reproduce various ant bugs. The attached Cr10979.zip contains just one case I edited when saw the deadlock (other cases have no relationships to this case, there are just a lot of ant files). I stably observe the deadlock in big project, though do not observe it in this small extract. Actions I made are the following. In file build.xml deleted <path/> and <taskdef/> elements completely, then uncommented &AladdinProperties; token. Then quite quickly undo all actions. Then repeat them again, then undo. After 3-4 iterations the deadlock happens. Here is another thread dump showing a deadlock that looks slightly different. Maybe it helps in finding the problem.
7304: did not see this deadlock for a several months. Does it still occur for anybody?
This problem still occurs for me in both 6.0.6 and 7.0.1. Please re-open.
I've only just installed the evaluation of 7.0.1 and the problem occurred as soon as I tried to edit the build file that has caused this problem before. The CPU is pegged at 50% according to Windows task manager (machine is Hyper-Threaded, IDEA never uses more than 50%). It seems that most of the time (in 6.0.6 at least) IDEA is not attempting to perform any inspections on the Ant file (there is nothing on the error bar). It's only when it does attempt inspections that this problem happens. I'm going back to 6.0.6 for now. Please re-open. I'm still seeing this problem, so are my colleagues (on version 6.0.6). We have evaluated version 7 and it is not fixed. We cannot purchase any upgrades until this issue is fixed.
Can it be the problem of large file sets: IDEADEV-19514 ?
Alexander, it may be related. I don't think it only happens with filesets and/or taskdefs though. We have completely given up on using IDEA to edit build.xml files (we use Vim instead). About 50% of the time IDEA will lock up within 30 seconds of changing anything. But on the other occasions you can make big changes without any problems.
For what it's worth, I have all of the Ant inspections turned off and the problem still happens. Please re-open. This bug is driving me nuts.
I don't know if this is just coincidence, but it seems to happen more frequently when I am editing comments in the file. It also seems to be triggered by some background event (perhaps auto-save). Daniel, please enable profiling in IDEA (see instructions here: http://support.jetbrains.com/kb/entry!default.jspa?categoryID=5&externalID=192
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The build file in question is quite complex with macros imported from another file.
At the time of the lock-up, I was trying to add a failonerror attribute to a <java> task. It froze once I had got this far:
failonerror=""
The cursor was between the quotes and I couldn't type anymore, the IDE had to be killed from Task Manager.
It doesn't always lock-up at the same place and I can usually go back in and complete what I was trying to do.