This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197800 - Rename Dialog freezes IDE for 5 Minutes (Indexing after copying Dirctory with 6 Files)
Summary: Rename Dialog freezes IDE for 5 Minutes (Indexing after copying Dirctory with...
Status: RESOLVED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-04-15 17:52 UTC by bht
Modified: 2011-04-18 14:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log files (112.74 KB, application/octet-stream)
2011-04-15 17:52 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2011-04-15 17:52:01 UTC
Created attachment 107780 [details]
Log files

Please refer to attached log files. Build 201104070400

Reporting because indexing never took THIS long in the same projects configuration.

Happened when I was copying a directory.

The directory got its name automatically as usual, "tree_1" from the original "tree"

Then I renamed it (as usual also) and got a refactor rename dialog.

After this, the the rename dialog froze the IDE for 5 minutes while it was scanning.

An interesting part is that the IDE spent 500ms TWICE trying to read the non-existing old directory I renamed:
WARNING [org.openide.filesystems.FileUtil]: FileUtil.normalizeFile(...\tree_1\data) took 532 ms. Result is ...\tree_1\data

Otherwise no problems, I keep working in the same session as usual.
Comment 1 Tomas Zezula 2011-04-18 14:02:06 UTC
It's hard to say (the log is quite long and there is no mark where you did the refactoring as the refactoring does not log anything). So I am looking at the "DojoExamples\web"


FileUtil.normalizeFile(C:\bt\javascr\frameworks\dojo\samples\DojoExamples\web\tree_1\data) took 578 ms. Result is C:\bt\javascr\frameworks\dojo\samples\DojoExamples\web\tree_1\data
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: file:/C:/bt/javascr/frameworks/dojo/samples/DojoExamples/web/ took: 305219 ms (New or modified files: 0, Deleted files: 5844) [Adding listeners took: 3312 ms]

There is 5844 removed file in this transaction.
If you are able to reproduce it can you attach the IDE self profile (nps) + corresponding log file.
Please turn on the self profiling before you do the refactoring and stop it after the scan finishes.
Thanks