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

Key: IDEA-16663
Type: Bug Bug
Status: Open Open
Assignee: Eugene Zhuravlev
Reporter: Mark Scott
Votes: 0
Watchers: 0
Operations

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

Blank module-specific compilation output path is set to root directory on project re-load

Created: 11 Dec 07 23:35   Updated: 13 Dec 07 12:32
Component/s: Compiling Project

File Attachments: 1. Zip Archive 7584_mscott_11.12.2007_20.12.17.zip (1.64 Mb)
2. Text File idea.log (38 kb)

Environment: Linux, 2.6.22 kernel

Build: 7,584
Severity: Extreme


 Description  « Hide
A project which has performed fine for many months started behaving badly today. I pressed the toolbar 'make' button after modifying a couple of source files. One core of the CPU was pegged at 100% with the status bar showing the background task "Clearing output directories". This continued for many minutes.

I was able to close the project and shut down cleanly (confirming that I wanted to shut down even though background tasks were running). Restarting, loading the same project and attempting to make the project reported that the previous compilation hadn't completed and that a full rebuild was required. The process stuck again at Clearing output directories... Again, I could shut down cleanly. All output dirs were empty.

I've deleted the the content of IDEA's system directory and deleted my .iws file (the only project file to have changed in days). On startup my project libs are scanned (as expected after deleting caches) but things stick at Clearing output directories... whenever I perform any compilation.

Attached is a CPU snapshot. I deleted the system dir contents and .iws file, started IDEA, loaded my project, started the snapshot capture, started rebuilding the project, waited 3 minutes and stopped the snapshot capture.

The problem seems to be project-specific - another project rebuilds correctly - but none of the .iml and .ipr files has changed in days and I specifically deleted the .iws file.

IDEA log file attached (but it contains no exceptions).



 All   Comments   Work Log   Change History      Sort Order:
Mark Scott - 12 Dec 07 15:08
I've figured out the problem and it's a combination of two bugs, one very nasty indeed, assuming it's reproducible for others.

Steps to reproduce:

1. create a new module
2. configure the module to use a module-specific compilation output path
3. set a non-empty path for the "Output path" field but make the "Test output path" field completely blank
4. work for several days
5. close the project
6. re-open the project
7. the "Test output path" for the module will now have the path "/"

Because IDEA seems to completely ignore the compiler setting for "Clear output directory on rebuild" (I have it set to false), it tries to clear all output paths on rebuild. I guess this means, when it gets to the affected module, that it will try to delete starting in the root directory.

I'm glad I always stopped the process before it reached my home directory. If that's what is happening then the consequences would have been annoying (backups notwithstanding).