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 219317

Summary: AssertionError: Invalid lineIdx=204, lineStartOffsets.length=203
Product: debugger Reporter: Jiri Kovalsky <jkovalsky>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: aquaglia, tzezula
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 184060
Attachments: stacktrace
stacktrace

Description Jiri Kovalsky 2012-10-02 09:35:49 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

User Comments:
jkovalsky: Was standing on a MemoryView > LineBreakpoints.java @ line 200 breakpoint. Invoked "New Watch" from editor's popup menu, typed "str" and pressed Ctrl+Space to invoke code completion.




Stacktrace: 
java.lang.AssertionError: Invalid lineIdx=204, lineStartOffsets.length=203
   at org.netbeans.modules.parsing.api.Source$MySourceAccessor.getLineStartOffset(Source.java:721)
   at org.netbeans.modules.parsing.impl.DialogBindingEmbeddingProvider.getEmbeddings(DialogBindingEmbeddingProvider.java:88)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callEmbeddingProvider(TaskProcessor.java:573)
   at org.netbeans.modules.parsing.impl.SourceCache.getAllEmbeddings(SourceCache.java:306)
   at org.netbeans.modules.parsing.api.ResultIterator.getEmbeddings(ResultIterator.java:163)
   at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:149)
Comment 1 Jiri Kovalsky 2012-10-02 09:35:56 UTC
Created attachment 125198 [details]
stacktrace
Comment 2 Tomas Zezula 2012-10-02 13:24:45 UTC
The dbg wants to create DialogBinding on non existent line.

Jirko cant you describe the
"Was standing on a MemoryView > LineBreakpoints.java @ line 200 breakpoint."
in more details.
Thanks
Comment 3 Jiri Kovalsky 2012-10-02 13:34:29 UTC
Yes, sure. I was debugging tests.LineBreakpoints.java file in Memory View project [1]. The debugger just stopped at my breakpoint at line 200 and I wanted to create new watch "string" using Editor's popup menu. Don't hesitate to ask further if something is not clear.

[1] http://wiki.netbeans.org/wiki/images/0/03/MemoryView.zip
Comment 4 aquaglia 2012-10-03 16:32:14 UTC
Created attachment 125317 [details]
stacktrace
Comment 5 Martin Entlicher 2012-10-19 13:13:23 UTC
Fixed by changeset:   237261:926fc6cd31f0
http://hg.netbeans.org/core-main/rev/926fc6cd31f0
Comment 6 Quality Engineering 2012-10-25 10:54:23 UTC
Integrated into 'main-golden', will be available in build *201210250921* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/926fc6cd31f0
User: mentlicher@netbeans.org
Log: #219317: Set a zero-based line number.