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.
Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253) VM: Java HotSpot(TM) Client VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05 OS: Windows XP User Comments: GUEST: no idea what happened... but I think it's just this thing's response to my computer being too slow because of other stuff running. Stacktrace: java.lang.IllegalStateException: Annotation not added: CallSiteCall Stack Line at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:256) at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:533) at org.openide.text.DocumentLine$2.run(DocumentLine.java:381) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1330) at org.openide.text.DocumentLine.removeAnnotation(DocumentLine.java:376) at org.openide.text.Annotation.detach(Annotation.java:136)
Created attachment 130371 [details] stacktrace
Martin, can you evaluate if debugger is not calling removeAnnotation before addAnnotation?
Created attachment 130765 [details] stacktrace hit breakpoint
Created attachment 130935 [details] stacktrace
The annotation attach/detach is synchronized, therefore it should not happen that we try to remove the annotation before attach. It would be valuable to have steps to reproduce.
Created attachment 138911 [details] stacktrace .
Created attachment 138995 [details] stacktrace during jpda remote debugging, just after connection
Created attachment 139006 [details] stacktrace .
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181006
Created attachment 139008 [details] stacktrace .
Created attachment 139010 [details] stacktrace .
Created attachment 139011 [details] stacktrace .
janario, can you please provide some steps how can we reproduce this? Thanks.
Created attachment 139019 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139020 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139028 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139029 [details] stacktrace Had Thread-1 and Thread-2 suspended. Clicked on Suspend Thread-3 button when this occurred. The thread was suspended correctly though and UI was updated fine too.
Plus I forgot to mention that after I suspended all 3 threads I invoked "Make Current" from the popup menu of the 3rd thread. Then the exception poped up.
Created attachment 139032 [details] stacktrace Just invoked "Debug File" on ThreadSuspending1.java file with 3 breakpoints at i++; lines.
Thanks Jiri, I was finally able to reproduce it in build #201308212300 after a while of fast switching of current threads.
Created attachment 139086 [details] stacktrace Debugging
Created attachment 139105 [details] stacktrace Editing code
Created attachment 139113 [details] stacktrace debug an app
Fixed by changeset: 262374:bce8a8ccb74e http://hg.netbeans.org/core-main/rev/bce8a8ccb74e