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.
This bug was originally marked as duplicate of bug 183741, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.9 Beta (Build 201004200117) VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: sidthesloth: saving .java file in mobility Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 11841 at org.netbeans.lib.editor.view.GapObjectArray.getItem(GapObjectArray.java:106) at org.netbeans.lib.editor.view.GapBoxViewChildren.getChild(GapBoxViewChildren.java:217) at org.netbeans.lib.editor.view.GapBoxView.getChild(GapBoxView.java:1605) at org.netbeans.lib.editor.view.GapBoxView.getView(GapBoxView.java:480) at org.netbeans.modules.versioning.diff.DiffSidebar.paintComponentUnderLock(DiffSidebar.java:656) at org.netbeans.modules.versioning.diff.DiffSidebar.access$100(DiffSidebar.java:99)
Created attachment 99289 [details] stacktrace
Created attachment 101813 [details] stacktrace
milo, this one is probably caused by a parallel access to view hierarchy from different threads. Could you please provide a way that we can access the hierarchy and rely upon the fact that the hierarchy does not change meanwhile? Other similar issues are bug #193362 or bug #194476.
I've made some more tracing by DocumentView.LOG and added o.n.editor.Utilities.runViewHierarchyTransaction(). http://hg.netbeans.org/jet-main/rev/5891049904a6
*** Bug 193362 has been marked as a duplicate of this bug. ***
*** Bug 194476 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201101220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5891049904a6 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #186474 - ArrayIndexOutOfBoundsException: 11841 - unlocked access to view hierarchy fixed.