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 186474 - ArrayIndexOutOfBoundsException: 11841
Summary: ArrayIndexOutOfBoundsException: 11841
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 193362 194476 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-21 07:40 UTC by sidthesloth
Modified: 2011-01-22 06:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169920


Attachments
stacktrace (5.27 KB, text/plain)
2010-05-21 07:40 UTC, sidthesloth
Details
stacktrace (2.37 KB, text/plain)
2010-09-01 19:54 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sidthesloth 2010-05-21 07:40:29 UTC
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)
Comment 1 sidthesloth 2010-05-21 07:40:33 UTC
Created attachment 99289 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-09-01 19:54:49 UTC
Created attachment 101813 [details]
stacktrace
Comment 3 Ondrej Vrabec 2011-01-19 13:46:44 UTC
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.
Comment 4 Miloslav Metelka 2011-01-21 16:11:58 UTC
I've made some more tracing by DocumentView.LOG and added o.n.editor.Utilities.runViewHierarchyTransaction().

http://hg.netbeans.org/jet-main/rev/5891049904a6
Comment 5 Ondrej Vrabec 2011-01-21 17:52:58 UTC
*** Bug 193362 has been marked as a duplicate of this bug. ***
Comment 6 Ondrej Vrabec 2011-01-21 17:53:19 UTC
*** Bug 194476 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2011-01-22 06:14:32 UTC
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.