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.
Summary: | Netbeans 6.1 hangs during code navigation | ||
---|---|---|---|
Product: | java | Reporter: | sbtourist <sbtourist> |
Component: | Navigation | Assignee: | Tomas Zezula <tzezula> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Netbeans 6.1 thread dump during code navigation hanging
Netbeans 6.1 thread dump during code navigation hanging Netbeans 6.1 thread dump during code navigation hanging Netbeans 6.1 thread dump during code navigation hanging |
Description
sbtourist
2008-05-26 13:30:37 UTC
>It's the unique (meaningful) runnable thread during the hanging period, and it uses the
>org.openide.filesystems.FileUtil.normalizeFile(..) method, which should be rather resource wasteful
The call is expensive in times of milliseconds - needs to read the inode (no seconds).
The navigator needs to call it on Mac because of case insensitive but preserving filesystem.
Both path A.java and a.java point to file containing public class A {} but the first is valid the second is an error.
On Mac (HFS) unlike other UNIX FSs you need to get the FS normalized path to distinguish these two cases.
Can you attach more thread dumps? This may happen when you have broken NFS disks or removeable media.
Hi, thanks for your explanation: it's clearer now. However, I still have a question: why doesn't it happen on NB 6.0 (with same computer, same OS and same JDK)? It works great ... I have everything on my local hard drive, so it's not a network/removable fs problem: however, I'm attaching four thread dumps. Let me know. Thanks, Cheers, Sergio B. Created attachment 61919 [details]
Netbeans 6.1 thread dump during code navigation hanging
Created attachment 61920 [details]
Netbeans 6.1 thread dump during code navigation hanging
Created attachment 61921 [details]
Netbeans 6.1 thread dump during code navigation hanging
Created attachment 61922 [details]
Netbeans 6.1 thread dump during code navigation hanging
The normalization was added into NB 6.1 See issues #126392 and issue #118108 Can you list the mounted filesystems (mount)? Here is the output of the "mount" command: /dev/disk0s2 on / (local, journaled) devfs on /dev (local) fdesc on /dev (union) <volfs> on /.vol automount -nsl [176] on /Network (automounted) automount -fstab [181] on /automount/Servers (automounted) automount -static [181] on /automount/static (automounted) The delay is probably caused by the automounted network disk, the usage of disk is caused by the automount process. Are you still able to reproduce it? There is no clean solution of this problem since the app is blocked in native code in JDK which I cannot affect, but I may add an command line option which disables the normalization on Mac (not by default because of the issue #118108). It would be great if you could add such a command line option through a NetBeans 6.1 patch: I had to downgrade to 6.0, due to this problem. Thanks, Cheers, Sergio B. OK. I will add it into a dev build (NB 6.5) and tried to propagate it into the NB 6.1 in some patch set if possible. Fixed in: 8a018a522fad The command line option is: -J-DFolderArchive.noNormalize=true Integrated into 'main-golden', available in NB_Trunk_Production #268 build Changeset: http://hg.netbeans.org/main/rev/8a018a522fad User: Tomas Zezula <tzezula@netbeans.org> Log: #135807:Netbeans 6.1 hangs during code navigation Please note that NetBeans 6.1 Patch3 cut-off is going to happen on close of business August 5th. If you would like to have bugfix for this issue as part of NetBeans 6.1 Patch3, then this issue must have information about bugfix' trunk changeset and it's status must be "VERIFIED". verified I've transplanted the changeset http://hg.netbeans.org/main/rev/8a018a522fad into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/51f58cb231a1 |