History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-13875
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Eugene Zhuravlev
Reporter: Daniel Dyer
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

IDEA locks up editing Ant build files

Created: 12 Jan 07 03:28   Updated: 16 Apr 08 17:13
Component/s: Ant Integration, XML editing
Fix Version/s: Selena Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive Cr10979.zip (1.25 Mb)
2. Text File deadlockDump.txt (32 kb)
3. Text File dump.txt (61 kb)

Environment:
Mac OS X 10.4.8 / Windows XP SP2
Apple Java (1.5.0_06)

Build: 6,146
Severity: Extreme


 Description  « Hide
IDEA occasionally locks up when editing an Ant build.xml file. The IDE has to be forcibly killed.

I have only seen this problem on Mac OS X, not on Windows XP.



 All   Comments   Work Log   Change History      Sort Order:
Daniel Dyer - 12 Jan 07 13:47
I have just had the same problem on Windows, so it does not seem to be a platform-specific issue.

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.


Dmitry Jemerov - 12 Jan 07 17:27
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

Alexander Chernikov - 26 Jan 07 23:06
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.

Volker Bier - 06 Feb 07 10:43
Here is another thread dump showing a deadlock that looks slightly different. Maybe it helps in finding the problem.

Alexander Chernikov - 26 Sep 07 20:13
7304: did not see this deadlock for a several months. Does it still occur for anybody?

Daniel Dyer - 26 Oct 07 19:00
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.


Daniel Dyer - 07 Feb 08 12:55
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.

Alexander Chernikov - 07 Feb 08 18:12
Can it be the problem of large file sets: IDEADEV-19514 ?

Daniel Dyer - 12 Feb 08 14:05
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.


Daniel Dyer - 15 Apr 08 15:21
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).


Eugene Zhuravlev - 16 Apr 08 17:13
Daniel, please enable profiling in IDEA (see instructions here: http://support.jetbrains.com/kb/entry!default.jspa?categoryID=5&externalID=192) and take a CPU snapshot for the "lockup". Please use the lates available build of IDEA 7.