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.
I had this issue where Netbeans background scanning hangs at every project I open. I use Netbeans for PHP/HTML/Javascript projects. When I first encountered the issue I was using version 8.0.2. Netbeans would work fine, but the background scanning task would hang at 50% and consume a LOT of CPU. Manually stopping the background scan crashes Netbeans. I then updated to version 8.1 just now and the same thing happens with the one difference that it hangs at 25% instead of 50%. Product Version = NetBeans IDE 8.1 (Build 201510222201) Operating System = Mac OS X version 10.7.5 running on x86_64 Java; VM; Vendor = 1.8.0_60 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Reproducibility: Happens every time STEPS: * Open dialog Foo * Click on button "Click me" ACTUAL: nothing happens EXPECTED: message pops u
Created attachment 157757 [details] IDE log
Try deleting cache dir. You can find its location in the About dialog. If it does not help, please capture several thread dump while the scanning is stuck and attach is here. Thanks
Hi, I replied with all the requested info on 2015-12-11. Can you please confirm that you received it as I don't see it here? Tx
From the reporter: I deleted the cache. I didn't fix the issue but it did change it a bit. Now it sometimes hangs at 100% and sometimes at 25%. I created a few dumps. The dumps from process 89504 were hanging at 25% and those of 88879 were hanging at 100%.
Created attachment 157998 [details] dumps
sadly the dumps do not seem useful: they show repo update working/running, reading files as it is supposed to do. Please try to stop the background scan; it should capture some info in the log showing why indexer runs or re-runs and how long individual indexers take to process source roots.
No response -> incomplete.
I think this comes when we have large projects (many tree levels, especially when we have node_modules), for smaller projects I don't have the problem.
I no more have this problem when I added node_modules to file ignore pattern
Created attachment 164752 [details] The process Background scanning of projects" never completes The process Background scanning of projects" never completes in netbean 8.2
#Comment 10 Hi, Please help me out to solve the problem (see Comment 10)
Hi rajeev840@netbeans.org ! I don't know if this is also your case but I just managed to solve a very similar scanning project hang by setting a manual proxy server (host and port) in the IDE options. Netbeans probably doesn't support proxy auto configuration scripts (.pac) which we happened to be using in our network.
I too was suffering from a hanging background process. I even resorted to deleting NetBeans and re-installing. I also unchecked the Preference to avoid scanning but every time it hung on 100%. Turns out I just needed to be patient. The CPU was maxed out spinning for a very long time, but eventually it did complete. On brand new installation it took over 11 min CPU time to complete a scan of a project folder that a contained a single WordPress Theme. Not full WordPress installation, no plugins. Just a single Theme. That was on a MacBook with solid state disk etc. [I'm off to demo/debug on client site - scared to close NetBeans and re-start]