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 231072 - Stopping background scanning of projects
Summary: Stopping background scanning of projects
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 09:52 UTC by marco_bresciani
Modified: 2013-06-11 15:41 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201311


Attachments
stacktrace (819 bytes, text/plain)
2013-06-11 09:52 UTC, marco_bresciani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marco_bresciani 2013-06-11 09:52:47 UTC
This issue was reported manually by sj-nb.
It already has 50 duplicates 


Build: NetBeans IDE 7.3 (Build 201302261559)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
GUEST: Netbeans started "background scanning" last night before I went home.  It's still scanning when I got in to work this morning.   I am trying to debug a RESTful server via glassfish.

GUEST: I have 3  Hashmaps
HashMap<String, SummaryStatistics> ...
which produce a compile error as they are later referred to as 
HashMap<String, s.th.else>
Sure, this produces a compile error which is okay.
But during refactoring, the IDE sometimes scans and pretty lags

samkar: did some code changes inside of netbeans;
applied the to the running code;
suddenly netbeans noticed my changes and started 'Scanning...'.
Scanning can not really be interrupted,
pending code change can not be applied,
debugging can not be continued...

ovrabec: running ant clean build on netbeans sources. The IDE did not have focus, commandline did.

marco_bresciani: Stopping background scanning of projects, from the "task list" in the IDE status bar, but received an error saying is not possible.

cyclopsihus: The problem only began when I updated to Netbeans 7.3 (from 7.2.1).
Each time a Clean & Build of the projects is done, netbeans triggers "Background scanning of projects". The scanning stops only when the build stops (either completed, or stopped).
This is taking a lot of CPU / IO. As consequence, the build takes 3-4 more time than a usual and build (or the old Netbeans 7.2.1 build).
Also all the applications (including Netbeans) "starve" in the process.

GUEST: ???? ??????? ??? ????? ?? ??????????? SVN, ????????? Drag & Drop ?? ???????? ???????. IDE ?????? ??????????? ?? ???????? ??????, ??? ?????? ????????? ??????.

GUEST: Updated some jars outside of NB, this triggered a classpath scan. Pressing Clean&Build during this scan caused this exception, whatever it is.

jglick: Various coupling errors and sundry javac exceptions; I just want the IDE to stop trying to rescan my projects, because it does not seem to be able to.

GUEST: scan

simon_orange: I am changing the inheritance of a class
(actually several)

NB just blocks me out scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning and scanning for ages

I have a big project of several thousand classes

Its such a pain - why can't I just turn scanning off.
It is always blocking me doing anything

it may scan for 5 mins at a time.
I often find it is better to close NB and restart NB than to wait for the scan.

I'm soon off to IntelleJ because of this.
It wastes so much time

nleck: NB usable :-(

GUEST: collapsed

GUEST: Apos ter mandado o computador reinicia, ligo ele, continuo o windows, e o processo de verificar projeto em segundo plano fica "pendurado" (n
Comment 1 marco_bresciani 2013-06-11 09:52:51 UTC
Created attachment 135627 [details]
stacktrace
Comment 2 Sergey Petrov 2013-06-11 09:55:40 UTC
#183779 was marked as P1, so this one to P1 also.
Comment 3 Svata Dedic 2013-06-11 15:41:16 UTC
I went through 7.2.1+ reports:

The following errors were distributed among module owners:

675901: OrganizeMember hints slows down the repository update. Low memory. Tracked as issue #228612
673195 - reported as 223087
673019 - j2ee/persistence, otherwise no specific issue except more memory may be needed
672992 - seems as a slow/networked filesystem issue; PHP project
639177 - checkstyle, cz.sickboy
638321 - 3rd party: hudson annotation processor broken
625636 - HTML/CSS hint rules running as part of task indexing; fixed as issue #218534

The following reports do not contain a clear indication of what was happening, sorry:
674692 - N/A
669513 - no specific issue, 22425 resources to scan
668321 - no specific issue, system overload suspected. 2 Ant builds (internal) are running in paralellel with scanning and hints computation.
662156 - no scanning data available
646644 - out of memory
634074 - cancelled early, no useful data.


-------
Other reports come from 7.2 and earlier versions and do not contain enough data to guess the slowness cause.

As all errors with relevant data were analyzed/distributed, I am marking the defect as FIXED.