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 237743 - Scan maven project never ending
Summary: Scan maven project never ending
Status: RESOLVED INCOMPLETE
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal with 7 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 10:06 UTC by lforet
Modified: 2015-03-13 15:02 UTC (History)
52 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202283


Attachments
stacktrace (2.19 KB, text/plain)
2013-10-29 10:06 UTC, lforet
Details
messages.log (28.01 KB, application/octet-stream)
2015-03-12 13:06 UTC, bandpay
Details
The messages.log from the unUpdated installation (28.00 KB, application/octet-stream)
2015-03-12 15:17 UTC, bandpay
Details
Update dialog box (15.43 KB, image/jpeg)
2015-03-12 15:24 UTC, bandpay
Details
SnapShot of the Updated NB (309.39 KB, application/octet-stream)
2015-03-13 15:02 UTC, bandpay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lforet 2013-10-29 10:06:05 UTC
Build: NetBeans IDE 7.4 (Build 201310012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 7

User Comments:
GUEST: start netbeans - nothing more

GUEST: file scanning never end & CPU always 100%.

GUEST: NetBeans hangs while doing a background scanning of projects. There is only one project in the projects view and it is a Maven-based web app project that was created via NetBeans.

lforet: I have a gwt maven project for which classpath background scanning never ending and stop at 97%.

 It is a project that I can not use in Netbeans

GUEST: a

GUEST: With an java war projet, background scanning is too long.... after 30min i kill IDE and start netbeas 7.4 beta

GUEST: Just open any project.  Background scanning will stall at 37%, 50% or 100% and never terminate.  It may be that whenver the Netbeans window is given focus, the entire process begins again.  Meanwhile, Task manager shows that Netbeans is doing almost no activity (very little CPU and very list Disk I/O)

GUEST: Net beans is getting hang while running Background scanning process

GUEST: <Please provide a description of the problem or the steps to reproduce>
Background scanning of projects is auto on and just stalls at 25% at startup
Causes IDE to become slug like to input

GUEST: The Scan Background Projects netver finished and got stuck at 75%. The same happened yesterday.

GUEST: Just opened netbeans and the background scanning started. Netbeans slowed significantly, waited several minutes but scanning never made any progress, just tied up processes on my cpu. 

I have cloased several projects already to limit the pages it needs to scan, still the scanning takes a long time and slows everything down. Telling it to stop stop, doesnt stop scan, just becomes unresponsive. I will need to restart netbeans to fix the lockup. 

This is a common occurance. This is an awesome program with lots of features, but this scanning issue maybe a game killer.

GUEST: df

GUEST: Error background scaning project when I use yeoman project

abjerkho: Background scanning reached 50%




Stacktrace: 
org.netbeans.modules.parsing.impl.indexing.ScanCancelledException: Slow scanning in js
   at java.lang.Thread.getStackTrace(Thread.java:1568)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:131)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:124)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.scheduleFirer(PathRegistry.java:829)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.resetCacheAndFire(PathRegistry.java:822)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.access$500(PathRegistry.java:86)
Comment 1 lforet 2013-10-29 10:06:08 UTC
Created attachment 141622 [details]
stacktrace
Comment 2 _ gtzabari 2015-01-22 05:42:00 UTC
100% reproducible on:

Product Version: NetBeans IDE Dev (Build 201501210001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

To reproduce, install node.js into src/test/resources directory. The Background scan operation will never complete.
Comment 3 Marian Mirilovic 2015-02-04 10:23:30 UTC
161 duplicates -> P1
Comment 4 Exceptions Reporter 2015-03-06 00:01:47 UTC
This bug already has 200 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202283
Comment 5 conceptme 2015-03-10 10:49:08 UTC
Update from yesterday hangs netbeans now completely :( also it seems not possible to launch an older version on mac even after deleting all files it still starts up as 8.0.2
Comment 6 Tomas Zezula 2015-03-10 18:57:54 UTC
I've opened more than 1/4 of reports and all of them was:
org.netbeans.modules.parsing.impl.indexing.ScanCancelledException: Slow scanning in js.
If you find any non javascript indexer please create a new issue from it and assign to correct module.
Comment 7 Vladimir Riha 2015-03-11 08:05:47 UTC
conceptme: Would it be possible to share the project (if it contains javascript) either by attaching here sending privately to my email address? Or could you please share more details about it how big it is (number of files, approx file sizes...)? Thank you
Comment 8 Petr Pisl 2015-03-12 10:22:35 UTC
For NetBeans 8.0.2 try to install the latest update. Check for the update via Help -> Check for Update
Comment 9 brilsergei 2015-03-12 10:42:03 UTC
(In reply to Petr Pisl from comment #8)
> For NetBeans 8.0.2 try to install the latest update. Check for the update
> via Help -> Check for Update

I've tried this. It updated HTML-editor Knockout and after restart it works fine. But I don't use knockout in my project.
Comment 10 bandpay 2015-03-12 11:14:16 UTC
Hi

I use the latest version but I had the same problem.

I had this problem until few minutes ago and it managed to drive me mad for some days. I have just updated the NetBeans + I have tweaked the conf settings and changed the memory settings too.

I have set the same amount for the small size and the max size. Try this and the project scanning might finish after all.

netbeans_default_options="-J-Xverify:none -J-Xss2m -J-Xms512m -J-Xmx512m -J-XX:PermSize=256m -J-XX:MaxPermSize=256m -J-Dplugin.manager.check.updates=true -J-XX:+UseCompressedOops -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"


Sincerely,
Babak
Comment 11 Petr Pisl 2015-03-12 12:40:51 UTC
@bandpay: Could you attach the message.log file? 
http://wiki.netbeans.org/FaqLogMessagesFile

Thanks.
Comment 12 bandpay 2015-03-12 13:06:10 UTC
Created attachment 152578 [details]
messages.log
Comment 13 Petr Pisl 2015-03-12 13:36:31 UTC
@bandpay: According your message.log you have still the old version of javascript editor. So you don't have installed the patch. Please download the latest update. 

Anyway, how much js files has your project? If there is bunch of files, then it can takes a few minutes to scan all the files.
Comment 14 bandpay 2015-03-12 14:00:41 UTC
(In reply to bandpay from comment #10)
> Hi
> 
> I use the latest version but I had the same problem.
> 
> I had this problem until few minutes ago and it managed to drive me mad for
> some days. I have just updated the NetBeans + I have tweaked the conf
> settings and changed the memory settings too.
> 
> I have set the same amount for the small size and the max size. Try this and
> the project scanning might finish after all.
> 
> netbeans_default_options="-J-Xverify:none -J-Xss2m -J-Xms512m -J-Xmx512m
> -J-XX:PermSize=256m -J-XX:MaxPermSize=256m
> -J-Dplugin.manager.check.updates=true -J-XX:+UseCompressedOops
> -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true
> -J-Dsun.zip.disableMemoryMapping=true"
> 
> 
> Sincerely,
> Babak

(In reply to Petr Pisl from comment #13)
> @bandpay: According your message.log you have still the old version of
> javascript editor. So you don't have installed the patch. Please download
> the latest update. 
> 
> Anyway, how much js files has your project? If there is bunch of files, then
> it can takes a few minutes to scan all the files.

It is updated and it says that there are no updates available :), and I have experienced that too large heap will slow down the NB in all manners and not just the scanning part.
Comment 15 bandpay 2015-03-12 14:18:27 UTC
But I'm telling you guys. This NB hasn't been performing faster than how it is doing now. It has grown wings suddenly and I only see flashes of things while back then "Please wait.." was killing my brain.
Comment 16 Petr Pisl 2015-03-12 14:58:26 UTC
@bandpay: The problem is that many reports of the slownest was added after publishing patch for NB 8.0.2 which brings javascript editor with version 0.44.3 (i think) and there was a regression that is fixed in javascript editor that has version 0.44.4. According your message log you have 0.44.2. So definitely is not the last one. We are now trying to be sure that the regression is fixed in 0.44.4. Probably you are not affected by the regression and the reason in your case can be different.
Comment 17 bandpay 2015-03-12 15:10:33 UTC
Believe me that I had this problem so much that I bought a new machine and it became slow and problematic until today too. The NB on the new machine was updated to the last version today and 0.44.4 was seen during the update. I have no idea why it is not mentioned in that messages.log.
Comment 18 bandpay 2015-03-12 15:17:51 UTC
Created attachment 152580 [details]
The messages.log from the unUpdated installation

Hi,
This is the messages.log from the installation which has JavaScriptEditor 0.44.3
Comment 19 bandpay 2015-03-12 15:24:34 UTC
Created attachment 152581 [details]
Update dialog box

This is the screen shot from the unUpdated installation and you can see that the scanning project is around 50% and it will reach 100% but never stops until the NB becomes none responsive and transparent and more than 1,5 GB of Mem is consumed.
Comment 20 Petr Pisl 2015-03-12 16:37:11 UTC
@bandpay: Could you attach a few thread dumps? http://wiki.netbeans.org/GenerateThreadDump 
It can be helpful. Thanks
Comment 21 darrenoh 2015-03-12 18:59:29 UTC
This is finally resolved for me, either because I updated Knockout HTML Editor or because the scanning actually finished.
Comment 22 bandpay 2015-03-13 08:54:47 UTC
(In reply to Petr Pisl from comment #20)
> @bandpay: Could you attach a few thread dumps?
> http://wiki.netbeans.org/GenerateThreadDump 
> It can be helpful. Thanks

Hi,

The instruction is not good enough :). I cant produce the dump, even that the console window is open. Is there a command I have to run or some buttons I should click on?
Thanks,
Babak
Comment 23 bandpay 2015-03-13 15:02:07 UTC
Created attachment 152604 [details]
SnapShot of the Updated NB

Hi,
This is the snapshot of the updated NB which does not indicate that it was updated in it's messages.log.

Have a nice weekend,
Babak