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

Key: IDEABKL-1280
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Maxim Shafirov
Votes: 2
Watchers: 2
Available Workflow Actions

Mark as Stalled
Operations

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

OutOfMemoryError on project open or compilation with recursive symbolic links

Created: 07 Feb 05 19:41   Updated: 11 Oct 05 17:30
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEABKL-984 IDEA crashes with recursive symlinks ... Resolved


 Description  « Hide
http://www.intellij.net/tracker/idea/viewSCR?publicId=24203
The simplest way to reproduce this is to add a folder to the project path and inside put a symlink to it (eg foo -> .) Granted, not the best idea, but it happens. With this or any type of more complicated circular reference, IDEA will (it seems) try to traverse the whole tree and get caught on an infinite loop consuming memory, until it runs out.

This also seems to happen with compilation, even if all the folders that have recursive directories in the project path have been excluded. In this case classes will be compiled, but then IDEA will use up all the memory anyway.

It would be nice if it realized when there was a circular reference and stopped. Maybe this could be done by keeping track of all the canonical names for the (sub)folders visited, and not visiting a folder more than once.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.