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 159374 - IndexOutOfBoundsException when user is opening Disassembly tab
Summary: IndexOutOfBoundsException when user is opening Disassembly tab
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-28 22:31 UTC by soldatov
Modified: 2009-03-18 22:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-02-28 22:31:56 UTC
Platform : OpenSolaris 2008.11
Compiler: GCC

Scenario:
- Create empty project
- Create assembler file
- Add such simplest code:

.global main

main:
  push   %ebp
  mov    %esp,%ebp
  sub    $0x8,%esp
  mov    $0x0,%eax
  leave
  ret
- Build project
- Load project to debugger
- Open Disassembly tab
==> exception

java.lang.IndexOutOfBoundsException: Invalid line index=-1 < 0
	at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:108)
	at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1366)
	at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644)
	at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176)
	at org.openide.text.DocumentLine$Set.offset(DocumentLine.java:1033)
	at org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:1028)
	at org.netbeans.modules.cnd.debugger.gdb.disassembly.Disassembly.update(Disassembly.java:169)
	at org.netbeans.modules.cnd.debugger.gdb.GdbDebugger.resultRecord(GdbDebugger.java:1003)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.processMessage(GdbProxyEngine.java:345)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.access$200(GdbProxyEngine.java:81)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine$2.run(GdbProxyEngine.java:227)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Vladimir Voskresensky 2009-03-13 15:35:36 UTC
fixed
http://hg.netbeans.org/main?cmd=changeset;node=869471f86955
Comment 2 Egor Ushakov 2009-03-16 18:01:10 UTC
extra fix:
http://hg.netbeans.org/main/rev/c9a93c988a7a
Comment 3 Quality Engineering 2009-03-18 22:42:36 UTC
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/869471f86955
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#159374: IndexOutOfBoundsException when user is opening Disassembly tab