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 207214 - [71cat] Scanning projects never ends
Summary: [71cat] Scanning projects never ends
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.1
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 202195 206461 (view as bug list)
Depends on: 207189
Blocks:
  Show dependency tree
 
Reported: 2012-01-12 14:20 UTC by Exceptions Reporter
Modified: 2012-02-14 15:45 UTC (History)
25 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184351


Attachments
stacktrace (2.24 KB, text/plain)
2012-01-12 14:20 UTC, Exceptions Reporter
Details
Snapshot (24.70 KB, application/octet-stream)
2012-01-24 20:31 UTC, Petah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-01-12 14:20:41 UTC
This issue was reported manually by musilt2.
It already has 43 duplicates 


Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows 7

User Comments:
yardus: After startup the first scan had finished and the second one has been launched just few seconds after that.

GUEST: scanning projects progress shows 100% but still running

GUEST: "Scanning projects" takes over 20 min on some projects

GUEST: I have two projects with 20 external libraries JARs and one of them has an annotation processor (used by both projects). The scanning project task reaches 94% or 100% but never ends.

GUEST: moderate groovy project hung on 79% for too long

GUEST: LET ME DISABLE PROJECT SCANNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

DaveYoungOnline: Scanning Hangs at 55% on initial run of 7.1 (PHP only).

I had this same problem with 7.0. I had to un-install, then re-install but without importing projects from 6.9, then rebuild the projects. A real pain and time consuming.

vv159170: scanning in cnd project again

GUEST: Algo errado acontece quando abro o netbeans e tento carregar qualquer projeto.
A analise de projetos trava aos 33% e n
Comment 1 Exceptions Reporter 2012-01-12 14:20:44 UTC
Created attachment 114825 [details]
stacktrace
Comment 2 Tomas Danek 2012-01-16 10:21:00 UTC
lot of duplicates recently -> P2
Comment 3 Petr Pisl 2012-01-24 10:28:49 UTC
I would like to ask whether someone could take a snapshot of the situation. How to do it is described for example here: http://blogs.oracle.com/netbeansphp/entry/is_the_ide_slow_send
It would be great to have a snapshots of a few seconds. Thanks.
Comment 4 rrosebury 2012-01-24 10:38:09 UTC
Mine work eventually, just took a very very long time. I decided to open up a file and start coding after a while bnoticed it had finished. It may have something to do with subversioning, has anyone got a project setup in this manner?
Comment 5 Petr Pisl 2012-01-24 11:30:18 UTC
From the snapshot I can recognize what is going on. Please attach a snapshot:). Thanks.
Comment 6 rrosebury 2012-01-24 14:19:47 UTC
By snapshot, do you mean a screendump / print screen of the the IDE loading?
Comment 7 Petah 2012-01-24 20:31:54 UTC
Created attachment 115204 [details]
Snapshot
Comment 8 Petah 2012-01-24 20:32:46 UTC
This happens every time for one of my projects. I attached a snap shot as per requested.
Comment 9 Marian Mirilovic 2012-01-26 09:34:25 UTC
116 dups in couple weeks ... P1
Comment 10 Petr Pisl 2012-01-26 15:20:14 UTC
Thanks for the snapshot. According the attached snapshot, it looks like org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.addRecursiveListener() doesn't work correctly. It tries recursively add the listeners but never ends. 

Guys do you have recursive links in your sources? I'm asking, just to be sure that it can be the reason for this behavior.
Comment 11 Tomas Zezula 2012-01-26 16:05:42 UTC
*** Bug 202195 has been marked as a duplicate of this bug. ***
Comment 12 Tomas Zezula 2012-01-26 16:06:30 UTC
*** Bug 206461 has been marked as a duplicate of this bug. ***
Comment 13 Tomas Zezula 2012-01-26 16:09:25 UTC
The issue http://netbeans.org/bugzilla/show_bug.cgi?id=206461 has a reproduceable PHP test case (symlinks) which causes the recursive listener to hang.
Here is the example http://netbeans.org/bugzilla/attachment.cgi?id=114264

The parsing API detects sym links and does not follow them, FS should do something similar.
Comment 14 Petr Pisl 2012-01-26 16:13:02 UTC
Thanks to Tomas for pointing out the duplicates and the test case.
Comment 15 Petr Pisl 2012-01-26 16:15:03 UTC
Guys, you can switch off the recursive listener if you run NetBeans with property
-J-Dnetbeans.indexing.recursiveListeners=false .
Comment 16 Jaroslav Tulach 2012-01-27 13:05:10 UTC
Cyclic symlinks detected and ignored as of
http://hg.netbeans.org/ergonomics/rev/3997f88e67a1
Comment 17 Marian Mirilovic 2012-02-08 10:33:05 UTC
(In reply to comment #16)
> Cyclic symlinks detected and ignored as of
> http://hg.netbeans.org/ergonomics/rev/3997f88e67a1

Yarda, could you please integrate this also into releases ? Thanks in advance.
Comment 18 Petr Cyhelsky 2012-02-09 13:19:13 UTC
verified on testcase from #206461 mentioned by Tomas
Comment 19 Marian Mirilovic 2012-02-10 17:22:40 UTC
(In reply to comment #18)
> verified on testcase from #206461 mentioned by Tomas

Yarda, please ?  We will build RC1 during Sun/Mon night. Thanks in advance.
Comment 20 Antonin Nebuzelsky 2012-02-13 17:28:08 UTC
Jarda is on vacation. I did the backport:
http://hg.netbeans.org/releases/rev/db6e571452ee
Comment 21 Tomas Danek 2012-02-14 13:49:05 UTC
unfortunately this problem is fixed only on Linux, not on Mac FS. See issue 208392 .
Comment 22 Tomas Danek 2012-02-14 15:45:11 UTC
-> marking verified - we verified (with P.Cyhelsky) that on linux works fine in both trunk and 7.1.1 RC1 build.
For Mac problem is now separate issue 208392.