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 206671 - java.lang.Exception: Scan canceled.
Summary: java.lang.Exception: Scan canceled.
Status: RESOLVED DUPLICATE of bug 194810
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 15:07 UTC by Vladimir Voskresensky
Modified: 2012-10-11 06:04 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183991


Attachments
stacktrace (980 bytes, text/plain)
2011-12-23 15:07 UTC, Vladimir Voskresensky
Details
stacktrace (1.03 KB, text/plain)
2012-03-19 19:50 UTC, Brian3030
Details
stacktrace (1.04 KB, text/plain)
2012-03-26 09:07 UTC, aws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2011-12-23 15:07:13 UTC
Build: NetBeans IDE Dev (Build 20111223-cab5f5297b7e)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
vv159170: Scanning is unrelated to pure CND project, isn't it?




Stacktrace: 
java.lang.Exception: Scan canceled.
   at java.lang.Thread.getStackTrace(Thread.java:1479)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:74)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:67)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.stateChanged(RepositoryUpdater.java:510)
   at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133)
   at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119)
Comment 1 Vladimir Voskresensky 2011-12-23 15:07:16 UTC
Created attachment 114433 [details]
stacktrace
Comment 2 Tomas Zezula 2012-01-02 08:12:48 UTC
The scan was triggered by change in VisibilityQuery.
As far as I remember the CND registers (if enabled) the CP into GlobalPathRegistry to have file index for non CND files. Isn't it this case?
Thanks
Comment 3 Vladimir Voskresensky 2012-01-10 14:47:06 UTC
Tomas, that was not the case. I cancelled scan, because in pure CND installation I've opened editor and saw scanning activity which I know is not used by default in CND environment.
Comment 4 David Strupl 2012-01-18 15:00:21 UTC
org.netbeans.modules.masterfs.GlobalVisibilityQueryImpl fires when ignored files list has been changed. Vladimir, did you change the list of ignored files before canceling the scan?
Comment 5 Vladimir Voskresensky 2012-01-18 15:46:52 UTC
David,
No, I did nothing, only opened the first time a file in editor.
You can see it yourself if get cnd-only distro and open any file first time => scanning will be started. I think it is allstubs.zip which is scanned
Comment 6 Tomas Zezula 2012-01-19 15:39:18 UTC
Yes, the javascript register the allstubs.zip even no javascript exists.
I don't know much the reason so I will try to reproduce and if it the allstubs.zip I will reassign.
Comment 7 Svata Dedic 2012-02-28 11:47:57 UTC
Confirmed on Build 201202270400 (#81cafa2674cb); the scanned thing is the allstubs.zip thing.


Running RootsWork@10094be0[followUpJob=false, checkEditor=false, useInitialState=true on 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$DependenciesContext@4bb59910: {
  useInitialState=true
  initialRoots2Deps(0)=
  initialBinaries(0)=
  initialRoots2Peers(0)=
  oldRoots(0)=
  oldBinaries(0)=
  newRootsToScan(1)=
  jar:file:/space/apps/nb/cppdev/ide/jsstubs/allstubs.zip!/
  newBinariesToScan(0)=
  scannedRoots(0)=
  scannedBinaries(0)=
  newRoots2Deps(1)=
  jar:file:/space/apps/nb/cppdev/ide/jsstubs/allstubs.zip!/:
  newBinaries2InvDeps(0)=
  newRoots2Peers(1)=
  jar:file:/space/apps/nb/cppdev/ide/jsstubs/allstubs.zip!/:
} ----


Reassigning...
Comment 8 Exceptions Reporter 2012-03-13 17:02:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183991
Comment 9 Brian3030 2012-03-19 19:50:17 UTC
Created attachment 116884 [details]
stacktrace

I installed the Clearcase plugin via the Tools > Plugins menu. Now, Netbeans is reporting a lack of memory error while performing "Scanning projects". It is very sluggish. Memory is up to 659 MB. Appears to be thrashing. This is a very large baseline.
Comment 10 aws 2012-03-26 09:07:56 UTC
Created attachment 117228 [details]
stacktrace
Comment 11 Martin Fousek 2012-10-11 06:04:13 UTC
Marking as duplicate of issue #194810 - Opening C/C++ file starts parsing of 188 js files. This should be already resolved in trunk so Vladimir feel free to check that. Parsing of JavaScript's signature files shouldn't be called earlier until any editor with possible JS is opened (JS lexer is called).

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