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 210133 - scanning a grails project never finishes, roasts CPU
Summary: scanning a grails project never finishes, roasts CPU
Status: RESOLVED DUPLICATE of bug 180230
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 16:32 UTC by athompson
Modified: 2012-04-02 07:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE won't allow you to cancel scanning process (34.33 KB, image/png)
2012-03-26 16:32 UTC, athompson
Details
thread dump while indexing (25.65 KB, application/octet-stream)
2012-03-26 21:11 UTC, athompson
Details
stuck at 29% for an hour (27.55 KB, application/octet-stream)
2012-03-26 21:52 UTC, athompson
Details
console output when opening a project (took a little over an hour) (35.08 KB, application/octet-stream)
2012-03-26 22:01 UTC, athompson
Details
scanning at 30%, using IDE at the same time (1.37 MB, application/octet-stream)
2012-03-30 17:40 UTC, athompson
Details
74-86%, moving much faster here; left IDE alone (216.56 KB, application/octet-stream)
2012-03-30 17:40 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2012-03-26 16:32:38 UTC
Created attachment 117274 [details]
IDE won't allow you to cancel scanning process

Scanning some grails projects (even small ones) results in the scanning process never finishing and CPU usage being pegged at 100%.  Attempting to stop the scanning process by clicking the "x" in the status bar fail, and the only way to stop it is to exit the IDE (after a long pause).  When you restart the IDE, the process begins anew (unless you close the offending project).

Let me know if you need any additional information.  Unfortunately, I can't add any of the projects here but I'll see if I can create an example project that does the same thing.

Many of the over 100 duplicates of issue #207991 are actually this issue and are incorrectly added there.
Comment 1 athompson 2012-03-26 16:36:27 UTC
Product Version: NetBeans IDE Dev (Build 201203230400)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-411
System: Mac OS X version 10.8 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/alvin/Library/Application Support/NetBeans/dev
Cache directory: /Users/alvin/Library/Caches/NetBeans/dev

Grails version: 2.0.0
Comment 2 Martin Janicek 2012-03-26 19:21:12 UTC
I'll need some thread dumps to see what's happening. Thanks in advance
Comment 3 athompson 2012-03-26 21:08:15 UTC
It looks like it's not deadlocked; it's just taking a *really* long time.  note the time to index:


WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.jdesktop.layout in /Applications/NetBeans/NetBeans Dev 201203260401.app/Contents/Resources/NetBeans/platform does not own docs/swing-layout-1.0.4-src.zip at org.netbeans.core.startup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:110)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /Users/alvin/Projects/RainKing/vegas/ResearchApp/grails-app/controllers took: 492914 ms (New or modified files: 15, Deleted files: 0) [Adding listeners took: 5 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /Users/alvin/Projects/RainKing/vegas/ResearchApp/out took: 2924 ms (New or modified files: 701, Deleted files: 0) [Adding listeners took: 55 ms]
Comment 4 athompson 2012-03-26 21:11:15 UTC
Created attachment 117286 [details]
thread dump while indexing
Comment 5 athompson 2012-03-26 21:52:19 UTC
Created attachment 117288 [details]
stuck at 29% for an hour
Comment 6 athompson 2012-03-26 22:01:00 UTC
Created attachment 117289 [details]
console output when opening a project (took a little over an hour)
Comment 7 athompson 2012-03-26 22:03:42 UTC
Once the initial scan is complete reopening a project (by restarting the IDE) takes only a few seconds.
Comment 8 Martin Janicek 2012-03-28 04:39:08 UTC
If it's not deadlocked, could you please provide also nps snapshot? Unfortunately it's most probably duplicate of issue 180230 but will see.
Comment 9 athompson 2012-03-30 17:40:02 UTC
Created attachment 117574 [details]
scanning at 30%, using IDE at the same time
Comment 10 athompson 2012-03-30 17:40:52 UTC
Created attachment 117575 [details]
74-86%, moving much faster here; left IDE alone
Comment 11 Martin Janicek 2012-04-02 07:06:36 UTC
From the .nps screenshots it's another duplicate of issue 180230 :(

*** This bug has been marked as a duplicate of bug 180230 ***