Community
Participate
Working Groups
Build Identifier: Build id: I20100429-1549 In a plain Eclipse, one generic plugin that depends on the jdt debug plugins, I launch another workbench. I enable vm tracing by modifying the appropriate variables in VirtualMachineManagerImpl. Eventually I start to get several exceptions: !ENTRY org.eclipse.core.jobs 4 2 2010-05-06 12:08:44.125 !MESSAGE An internal error occurred during: "JDI Event Dispatch". !STACK 0 java.lang.IndexOutOfBoundsException: Index: 9, Size: 11 at java.util.ArrayList.get(ArrayList.java:343) at org.eclipse.jdi.internal.VerboseWriter.print(VerboseWriter.java:490) at org.eclipse.jdi.internal.VerboseWriter.printWidth(VerboseWriter.java:227) at org.eclipse.jdi.internal.VerboseWriter.printDescription(VerboseWriter.java:236) at org.eclipse.jdi.internal.VerboseWriter.println(VerboseWriter.java:134) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:180) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:192) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:222) at org.eclipse.jdi.internal.ReferenceTypeImpl.interfaces(ReferenceTypeImpl.java:600) at org.eclipse.jdi.internal.ReferenceTypeImpl.visibleFields(ReferenceTypeImpl.java:665) at org.eclipse.jdi.internal.ReferenceTypeImpl.fieldByName(ReferenceTypeImpl.java:816) at org.eclipse.jdt.internal.debug.core.model.JDIThread.determineIfDaemonThread(JDIThread.java:480) at org.eclipse.jdt.internal.debug.core.model.JDIThread.initialize(JDIThread.java:295) at org.eclipse.jdt.internal.debug.core.model.JDIThread.<init>(JDIThread.java:261) at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.newThread(JDIDebugTarget.java:525) at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.createThread(JDIDebugTarget.java:502).. I've seen this affect expressions and variables. The variables view will no longer contain any variables and it's title remains italicized as if it were still updating. I have to close the view and restart my debug session before I can use the view again. Reproducible: Sometimes
Created attachment 167346 [details] target workspace log.
Any comments on this bug, or information you would like gathered? It is problematic as it means I cannot relibably generate trace while using the debugger.
If you can easily replicate the problem, perhaps you could debug and attach a patch?
I have tried fixing this problem by synchronizing the fLineBuffer in the VerboseWriter to use a Vector so that list modifications are synchronized, but that has not helped the problem, I still run into this issue. I think the underlying problem is that, only some of the updates to fPosition are synchronized. These are pervasive enough in the code - I don't really understand the logic well enough to try to synchronize these accesses.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.