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 200070 - Solaris "Scanning projects" process impedes IDE shutdown - project status lost
Summary: Solaris "Scanning projects" process impedes IDE shutdown - project status lost
Status: RESOLVED DUPLICATE of bug 199497
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: Sun Solaris
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
: 200067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-12 09:22 UTC by rrohm
Modified: 2011-08-18 14:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiling Snapshot, taken while the IDE scanned projects (10.37 KB, application/octet-stream)
2011-07-14 13:05 UTC, rrohm
Details
Profiling snapshot from NB 7.0.1RC1, while scanning projects (9.17 KB, application/octet-stream)
2011-07-16 20:01 UTC, rrohm
Details
Core Dump taken while scanning, from NB 7.0.1RC1 - for comparison, (HTH) (14.12 KB, text/plain)
2011-07-16 20:03 UTC, rrohm
Details
Core Dump (2) taken while scanning, from NB 7.0.1RC1 - for comparison, (HTH) (18.32 KB, text/plain)
2011-07-16 20:04 UTC, rrohm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rrohm 2011-07-12 09:22:37 UTC
Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = SunOS version 5.11 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

I get hanging "Scanning projects" processes every time I start the IDE with a medium size PHP project. Every time the "scanning projects" progress bar freezes somewhere, either while scanning my own code or while scanning IDE libraries. 

Very annoying: I cannot stop this process, it looks like I have to shut down the IDE and restart - since a hanging scan process still hampers valuable features like code completion in XML, HTML, PHP etc.
I even cannot shut down the IDE cleanly, it is not able to quit the project scan. I have to kill the IDE process on system level - loosing all information about recently used files etc ...
That's not only annoying, that is bad.

BTW: I really apreciate the "report issues" feature inside the IDE!
Comment 1 Tomas Mysik 2011-07-14 09:34:42 UTC
Please, reopen this issue and attach profiler snapshot [1] for the scanning (~30sec should be fine) so we can help you.

Thanks.
[1] http://wiki.netbeans.org/GenerateThreadDump#Profile_Me_Now
Comment 2 rrohm 2011-07-14 13:05:03 UTC
Created attachment 109435 [details]
Profiling Snapshot, taken while the IDE scanned projects

I hope, that helps!
Comment 3 Tomas Mysik 2011-07-14 13:40:34 UTC
Looking at the snapshot, all the time is spend in adding of filesystem listener - so:
a) don't you have any recursive symlinks in your project? or,
b) don't you have your project on mounted network disc?

For a), you can try RC of NB 7.0.1 or development version of NB - both can be found here [1]. For b), unfortunately there's no fix or work around since network drives are known to be slow (usually _very_ slow).

Again, just reopen this issue and provide your comment.

Thanks.
[1] http://netbeans.org/downloads/index.html
Comment 4 Tomas Mysik 2011-07-14 13:43:59 UTC
*** Bug 200067 has been marked as a duplicate of this bug. ***
Comment 5 rrohm 2011-07-16 20:01:33 UTC
Created attachment 109475 [details]
Profiling snapshot from NB 7.0.1RC1, while scanning projects

Thank you for your hints on symlinks and network FS. 
Neither is the case - AFAIK the project folder does not contain any symlinks, it's all just files and folders on a local file system. 

The only special about the project is: it is a subversion working copy.

I also checked out NB 7.0.1RC1 on this machine, with the same results. 
Please see the attached snapshot. Core dumps will follow. 

I also checked out the project on a OpenSuSE 11.4 machine and opened it with NB 7.0 there. Until now, it seems to work on OpenSUSE 11.4. Since it happens nearly every time I start NB 7.0.1RC on OpenSolaris, I will keep on trying/testing NB 7.0 on OpenSuSE.
Comment 6 rrohm 2011-07-16 20:03:32 UTC
Created attachment 109476 [details]
Core Dump taken while scanning, from NB 7.0.1RC1 - for comparison, (HTH)
Comment 7 rrohm 2011-07-16 20:04:02 UTC
Created attachment 109477 [details]
Core Dump (2) taken while scanning, from NB 7.0.1RC1 - for comparison, (HTH)
Comment 8 Tomas Mysik 2011-07-18 08:41:42 UTC
It seems to me that native filesystem listeners are not supported on Solaris - or am I wrong? Reassigning to the proper component, please evaluate.

@reporter: Do not change the "Assigned To" field to yourself (responsible developer is assigned there).

Thanks.
Comment 9 rrohm 2011-07-18 14:45:49 UTC
> @reporter: Do not change the "Assigned To" field to yourself (responsible
> developer is assigned there).

Ooops?! Sorry, I was not aware I did something like this. Must have been a mistake. The meaning of this field is well known to me ...  :-(
Comment 10 Jaroslav Tulach 2011-07-29 06:58:15 UTC
Native Listeners were implemented by gorrus and as following line in the NPS files shows
org.netbeans.modules.masterfs.watcher.FAMNotifier.addWatch()
they are on.
Comment 11 Egor Ushakov 2011-08-11 12:19:57 UTC
investigating, as a workaround please restart the IDE with -J-Dorg.netbeans.modules.masterfs.watcher.disable=true
Comment 12 Egor Ushakov 2011-08-18 14:40:22 UTC

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