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 - AssertionError: Invalid lineIdx=204, lineStartOffsets.length=203
Summary: AssertionError: Invalid lineIdx=204, lineStartOffsets.length=203
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 09:35 UTC by Jiri Kovalsky
Modified: 2012-10-25 10:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184060


Attachments
stacktrace (2.21 KB, text/plain)
2012-10-02 09:35 UTC, Jiri Kovalsky
Details
stacktrace (2.06 KB, text/plain)
2012-10-03 16:32 UTC, aquaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
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.