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 193732

Summary: [70cat] StackOverflowError at FileObjectFactory.refreshFromGetter
Product: platform Reporter: Chiana
Component: FilesystemsAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: normal CC: aldobrucale, crosati, dafreels, fzamboj, jlahoda, mmirilovic, nicoliniyo, paolosca, rkamradt
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 56356
Attachments: stacktrace
stacktrace
stacktrace

Description Chiana 2010-12-22 12:17:31 UTC
This bug was originally marked as duplicate of bug 133078, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201012150001)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows Vista

User Comments:
GUEST: Refreshed webservice reference.

Chiana: Was fixing some TODO's, mostly by removing them since they were already fixed.
Using double-click to jump to source position, not saving for every file...

dafreels: Opening a Maven pom file.

GUEST: strg + shift + i to organise imports. Projects are large > 2000 Classes




Stacktrace: 
java.lang.StackOverflowError
   at java.lang.Character.toLowerCase(Character.java:4175)
   at java.lang.String.toLowerCase(String.java:2408)
   at java.io.Win32FileSystem.hashCode(Win32FileSystem.java:581)
   at java.io.File.hashCode(File.java:1891)
   at java.util.HashMap.get(HashMap.java:300)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.getInstance(FileObjectFactory.java:110)
Comment 1 Chiana 2010-12-22 12:17:36 UTC
Created attachment 104391 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-01-01 17:34:11 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=56356
Comment 3 Filip Zamboj 2011-01-03 00:34:16 UTC
Created attachment 104654 [details]
stacktrace

writing in a file ...
Comment 4 Jaroslav Tulach 2011-01-04 09:51:33 UTC
The repeating loop is:

fs.FileObject.refresh(FileObject.java:1052)
masterfs.fbfs.fo.FileObjectFactory$AsyncRefreshAtomicAction.run(:814)
fs.EventControl.runAtomicAction(EventControl.java:125)
fs.FileSystem.runAtomicAction(FileSystem.java:566)
fs.FileUtil.runAtomicAction(FileUtil.java:566)
masterfs.fbfs.fo.FileObjectFactory.refreshFromGetter(FileObjectFactory.java:822)
masterfs.fbfs.fo.FileObjectFactory.issueIfExist(FileObjectFactory.java:293)
masterfs.fbfs.fo.FileObjectFactory.getFileObject(FileObjectFactory.java:195)
masterfs.fbfs.fo.FileObjectFactory.getValidFileObject(FileObjectFactory.java:697)
masterfs.fbfs.fo.FileObjectKeeper.init(FileObjectKeeper.java:119)
masterfs.fbfs.fo.FolderObj.refreshImpl(FolderObj.java:478)
masterfs.fbfs.fo.BaseFileObj.refresh(BaseFileObj.java:744)
masterfs.fbfs.fo.FolderObj.refresh(FolderObj.java:484)
fs.FileObject.refresh(FileObject.java:1052)
masterfs.fbfs.fo.FileObjectFactory$AsyncRefreshAtomicAction.run(:814)

I am struggling to simulate this in a testing environment.
Comment 5 Jaroslav Tulach 2011-01-04 09:52:00 UTC
*** Bug 193995 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Tulach 2011-01-05 10:10:48 UTC
*** Bug 193900 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Tulach 2011-01-05 10:11:29 UTC
*** Bug 193910 has been marked as a duplicate of this bug. ***
Comment 8 Jaroslav Tulach 2011-01-06 22:07:21 UTC
*** Bug 194001 has been marked as a duplicate of this bug. ***
Comment 9 Jaroslav Tulach 2011-01-07 09:40:28 UTC
*** Bug 193701 has been marked as a duplicate of this bug. ***
Comment 10 Jan Lahoda 2011-01-07 11:31:51 UTC
Created attachment 104784 [details]
stacktrace
Comment 11 Jaroslav Tulach 2011-01-07 12:17:29 UTC
Attempting to fix the problem in: ergonomics#e57a955c39bf
Comment 12 Jaroslav Tulach 2011-01-08 16:06:39 UTC
*** Bug 194004 has been marked as a duplicate of this bug. ***
Comment 13 Jaroslav Tulach 2011-01-08 16:10:03 UTC
*** Bug 193700 has been marked as a duplicate of this bug. ***
Comment 14 Quality Engineering 2011-01-09 06:21:18 UTC
Integrated into 'main-golden', will be available in build *201101090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e57a955c39bf
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #193732: Attempt to prevent StackOverFlow by marking each 'keeper' when it is already inside a refresh and skipping the event delivery and check in such situation
Comment 15 Jaroslav Tulach 2011-01-11 17:43:35 UTC
*** Bug 194194 has been marked as a duplicate of this bug. ***
Comment 16 Jaroslav Tulach 2011-01-12 13:54:03 UTC
*** Bug 194191 has been marked as a duplicate of this bug. ***
Comment 17 Chiana 2011-01-13 01:12:39 UTC
Doubleclicked myself thru the entire tasklist, didn't fail at all...
Comment 18 Jaroslav Tulach 2011-01-14 12:30:35 UTC
*** Bug 194260 has been marked as a duplicate of this bug. ***
Comment 19 mmikeyy 2011-02-08 03:01:09 UTC
I have reported tens of defects lately. The IDE was reporting problems every few minutes. It was driving me crazy.

Now, I've been able to work more than a full day with hardly anything to report.
I changed only one thing in my computer just before the program started behaving normally. It seems so unrelated that perhaps I should'nt even mention it. But here it is anyway.

My mouse was driving me crazy lately with the cursor freezing  momentarily while an application was busy, and jumping to another side of the screen when it started moving again.

I finally had the intuition to go check the mouse settings and there was the problem: the mouse was set to jump automatically to the default button of a new window that opens. I don't know how that's implemented, but it seems that there is a lot (too much) going on between the mouse driver and the operating system and running apps to constantly look for windows popping up with  default buttons to jump to. I just unchecked that setting.

No more mouse cursor freezing and jumping around the screen. And strangely, Netbeans 7.0 no longer has problems. Go figure...