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 33144 - Several nasty editor-related exceptions
Summary: Several nasty editor-related exceptions
Status: VERIFIED DUPLICATE of bug 27773
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 22:55 UTC by gthb
Modified: 2008-12-22 19:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log from a session that ended in data loss (19.61 KB, text/plain)
2003-04-22 22:56 UTC, gthb
Details
ide.log from a session that ended in a hang (14.67 KB, text/plain)
2003-04-22 22:56 UTC, gthb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gthb 2003-04-22 22:55:48 UTC
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).
Comment 1 gthb 2003-04-22 22:56:21 UTC
Created attachment 10092 [details]
ide.log from a session that ended in data loss
Comment 2 gthb 2003-04-22 22:56:35 UTC
Created attachment 10093 [details]
ide.log from a session that ended in a hang
Comment 3 Miloslav Metelka 2003-04-23 13:16:04 UTC
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.
Comment 4 Martin Roskanin 2003-08-08 13:52:25 UTC
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.
Comment 5 David Konecny 2003-09-01 13:29:44 UTC
Remaining CCE is dupl of issue 27773.

*** This issue has been marked as a duplicate of 27773 ***
Comment 6 Marian Mirilovic 2003-09-02 18:15:05 UTC
verifying duplication