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.
Netbeans 6.0 beta 1. Not sure about the subcomponent. Was just typing as usual, and this exception started occurring repeatedly. See attached log.
Created attachment 49958 [details] Log
I'm not sure what happened. The exception was thrown from OffsetsBag and indicates that it's intrenals got screwed up for some reason. Are you able to reproduce it (at least approximately)? Thanks
*** Issue 121761 has been marked as a duplicate of this issue. ***
*** Issue 121384 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 54130 [details] stacktrace
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows XP, 5.1, x86 User Comments: Tried to automatically format the code using key-combination [shift]+[alt]+[f].
Created attachment 54131 [details] stacktrace
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.6.0-rc-b104 OS: Windows XP, 5.1, x86 User Comments: Adding java doc using the new auto javadoc action.
Created attachment 54151 [details] stacktrace
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments:
Created attachment 54295 [details] stacktrace
THIS ISSUE HAS 5 MORE DUPLICATES
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.5.0_14-b03 OS: Linux, 2.6.20-16-generic, i386 User Comments:
Created attachment 55087 [details] stacktrace
Created attachment 55821 [details] stacktrace
Exception occured while i was editing code. I wasnt printing or painting. Code was // Дата последней ревизии $Date: 2008-01-18 12:36:05 +0300 (Пт, 18 янв 2008) $ // Дата последней проверки YYYY-MM-DD package foo; /** * TODO: требуется документирование */ public class Foo<A extends List<Integer>,B,C,D extends Set<>> { } This exception also occurs every time i press CTRL+A or change selection.
Created attachment 55904 [details] ide log
Created attachment 55905 [details] gestures
I was wrong. Exception occurs after press to any button! This blocks editing of file so P2.
Created attachment 55909 [details] screenshot
There are also some problems with selection or something. See screenshot.
*** Issue 126487 has been marked as a duplicate of this issue. ***
Please evaluate. Thanks
It seems random or at least I can't reproduce it. Do you know any (even approximate) way how to reproduce it? Thanks
*** Issue 126264 has been marked as a duplicate of this issue. ***
I've looked into OffsetsBag.removeHighlights() how could the problem happen and it seems that if the endOffset would be above all the present marks' offsets and the clip==false which would btw correspond to bag.removeHighlights(rowStart, rowEnd, false); in AnnotationHolder then int endIdx = indexBeforeOffset(endOffset, startIdx < 0 ? 0 : startIdx, marks.size() - 1); would be marks.size()-1 and if if (endIdx != -1 && marks.get(endIdx).getAttributes() != null) { endIdx++; } then endIdx==marks.size() which would correspond to failing if (changeEnd == Integer.MIN_VALUE) { changeEnd = marks.get(endIdx).getOffset(); } But I'm not familiar with the code much so I will study it more.
Created attachment 56414 [details] ide log
THIS ISSUE HAS ALREADY 100 DUPLICATES
I'm still unable to reproduce so I've decided to create a logging that would help us to investigate the problematic case. Besides the logging the problematic index gets corrected to point to the last Mark of the OffsetsBag so the issue should in fact be fixed. I would like to ask unr303 and others who are able to reproduce the problem to use a dev build containing this fix and attach messages.log to the issue for further analysis. Thanks. Fixed in hg: a50612b2f287
Milo, the messages reported by users are automaticaly attached to the exceptionreport (see URL). So far no older message than from 080211 build)
*** Issue 129131 has been marked as a duplicate of this issue. ***
*** Issue 128190 has been marked as a duplicate of this issue. ***