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 219079 - breakpoints missing from editor; show up in breakpoints pane
Summary: breakpoints missing from editor; show up in breakpoints pane
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 228978 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-26 18:19 UTC by emiddio
Modified: 2014-06-30 14:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
shows missing breakpoint (337.76 KB, image/jpeg)
2012-10-23 22:08 UTC, emiddio
Details
another jpeg (343.70 KB, image/jpeg)
2012-11-12 21:04 UTC, emiddio
Details
another example (379.65 KB, image/jpeg)
2012-11-12 21:05 UTC, emiddio
Details
Shows multiple entries in breakpoint pane (581.64 KB, image/png)
2013-04-11 15:45 UTC, wcwilson1950
Details
Screenshot Netbeans does not shows breakpoints in editor (38.10 KB, image/png)
2014-06-26 11:48 UTC, elennaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2012-09-26 18:19:16 UTC

    
Comment 1 emiddio 2012-09-26 18:21:23 UTC
both nb 7.2 and 
Product Version: NetBeans IDE Dev (Build 201209240001)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\a-gbello\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\a-gbello\AppData\Local\NetBeans\Cache\dev

when debugging - a good half the time when hit a breakpoint it is not shown in the editor -- but cntl-f8 2 times shows it as set, the breakpoints pane also shows the line highlighted where the breakpoint is located, but no red square appears in the editor.
Comment 2 Jiri Kovalsky 2012-09-27 09:08:51 UTC
Any screenshot Gary?
Comment 3 Martin Entlicher 2012-10-19 12:02:13 UTC
Some steps to reproduce are welcome. I'm not able to reproduce...
Comment 4 emiddio 2012-10-19 14:36:53 UTC
i will later today when get to work attach some screen shots.

i am using nb7.2 currently - too many issues with 7.3beta or last couple of dev builds i was using.

99% of my debugging is remote attach to tomcat - where there are usually hundreds of files or perhaps a 1000+ of sources.

i still see this problem every day -- its not 100% of the time, and i dont know how to write steps to reproduce.
Comment 5 emiddio 2012-10-23 22:08:41 UTC
Created attachment 126415 [details]
shows missing breakpoint
Comment 6 emiddio 2012-10-23 22:09:58 UTC
line 96 is missing a break point indicator.
Comment 7 emiddio 2012-11-12 21:03:58 UTC
to add 2 more jpeg files; these from nb7.3beta2,


Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Updates: NetBeans IDE is updated to version , NetBeans 7.3 Beta 2
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_06-b24
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\a-gbello\AppData\Roaming\NetBeans\7.3beta2
Cache directory: C:\Users\a-gbello\AppData\Local\NetBeans\Cache\7.3beta2
Comment 8 emiddio 2012-11-12 21:04:50 UTC
Created attachment 127664 [details]
another jpeg
Comment 9 emiddio 2012-11-12 21:05:11 UTC
Created attachment 127665 [details]
another example
Comment 10 Martin Entlicher 2012-11-13 16:46:01 UTC
Some problem with breakpoint annotation.
It's hard to find the cause without being able to reproduce this...
Comment 11 wcwilson1950 2013-04-11 15:43:08 UTC
The debugger is also duplicating breakpoints in the breakpoint window. I'm using Windows XP. Attached is a screen print of the issue.
Comment 12 wcwilson1950 2013-04-11 15:45:34 UTC
Created attachment 133461 [details]
Shows multiple entries in breakpoint pane

Shows multiple entries in breakpoint pane and the editor does not show the line highlighted.
Comment 13 Martin Entlicher 2013-06-10 11:59:22 UTC
*** Bug 228978 has been marked as a duplicate of this bug. ***
Comment 14 Martin Entlicher 2013-08-29 09:50:55 UTC
IMHO this is fixed by http://hg.netbeans.org/core-main/rev/e31643bbec8c and http://hg.netbeans.org/core-main/rev/bce8a8ccb74e.
There was a race-condition in add/remove of annotations.
Comment 15 elennaro 2014-06-26 11:48:13 UTC
Created attachment 147786 [details]
Screenshot Netbeans does not shows breakpoints in editor

v 8.0
Comment 16 elennaro 2014-06-26 11:52:39 UTC
NB 8.0 Release
JDK 8.0_u5

INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:DisabledBreakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.modules.editor.NbEditorDocument$AnnotationDescDelegate.<init>(NbEditorDocument.java:320)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:238)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:DisabledBreakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.editor.AnnotationDesc.isVisible(AnnotationDesc.java:135)
	at org.netbeans.editor.Annotations$LineAnnotations.refreshAnnotations(Annotations.java:1301)
	at org.netbeans.editor.Annotations$LineAnnotations.addAnnotation(Annotations.java:982)
	at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:261)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:240)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:DisabledBreakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.editor.AnnotationDesc.isVisible(AnnotationDesc.java:135)
	at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:291)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:240)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:Breakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.modules.editor.NbEditorDocument$AnnotationDescDelegate.<init>(NbEditorDocument.java:320)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:238)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:Breakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.editor.AnnotationDesc.isVisible(AnnotationDesc.java:135)
	at org.netbeans.editor.Annotations$LineAnnotations.refreshAnnotations(Annotations.java:1301)
	at org.netbeans.editor.Annotations$LineAnnotations.addAnnotation(Annotations.java:982)
	at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:261)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:240)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.editor]
java.lang.NullPointerException: null AnnotationType for:Breakpoint
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.editor.AnnotationDesc.isVisible(AnnotationDesc.java:135)
	at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:291)
	at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:240)
	at org.openide.text.NbDocument.addAnnotation(NbDocument.java:518)
	at org.openide.text.DocumentLine$1.run(DocumentLine.java:349)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.DocumentLine.addAnnotation(DocumentLine.java:340)
	at org.openide.text.Annotation.attach(Annotation.java:120)
	at org.netbeans.modules.debugger.jpda.projects.DebuggerBreakpointAnnotation.<init>(DebuggerBreakpointAnnotation.java:76)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:443)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:417)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.access$500(BreakpointAnnotationProvider.java:93)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.refreshAnnotation(BreakpointAnnotationProvider.java:216)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider$AnnotationRefresh.run(BreakpointAnnotationProvider.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 17 Martin Entlicher 2014-06-30 14:53:33 UTC
I've submitted issue #245327 for that. I believe that on debugger side this is fixed. Providing full thread dump into issue #245327 might help.