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.
I got several nasty editor-related exceptions in a short period while editing in NB 3.5 beta 1. In one case it ended with the whole IDE hanging (I neglected to get a thread dump, sorry! Will get one if it happens agains), and in another case the file I was editing ended up being cleared and saved, so all of its contents were lost. I can't pinpoint anything unusual that I might have been doing. I've been testing only briefly in this build. I hope you get enough info from the stack traces in the logs I will attach. One of the exceptions looks like Bug 32810, but there are others here that are not mentioned in that bug. There are SuggestionManagerImpl NPEs in the beginnings of these logs; Tor Norbye believes that these editor exceptions are not related to that (see Bug 33142).
Created attachment 10092 [details] ide.log from a session that ended in data loss
Created attachment 10093 [details] ide.log from a session that ended in a hang
It seems that the lineNumber in NbDocument.findLineOffset() is too high - past the last line of the document. This is likely a synchronization problem and IMO we need to review the thread model of the whole org.openide.text package including annotations for NB4.0 and add Document.render() where appropriate.
java.lang.ArrayIndexOutOfBoundsException from ide.log in first attachment is duplicate of the issue #33040. NPE from Annotations.removeAnnotation in the second attachement is duplicate of the issue #14803 There is java.lang.ClassCastException in PositionRef yet. Reassigning to openide for further investigation.
Remaining CCE is dupl of issue 27773. *** This issue has been marked as a duplicate of 27773 ***
verifying duplication