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 132563 - IDE hangs in disassembler view on solaris sparc
Summary: IDE hangs in disassembler view on solaris sparc
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
: 133253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-10 17:47 UTC by Alexander Pepin
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack dump when assert happened (16.69 KB, text/plain)
2008-04-10 18:05 UTC, Alexander Pepin
Details
ide hang java stack dump (21.13 KB, text/plain)
2008-04-10 18:23 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2008-04-10 17:47:42 UTC
Steps to reproduce:
- run NB6.1RC1
- create Quote sample
- compile the project
- do step into
- open Disassembler view
Result: IDE hangs.

in previous build from 6.1 branch these steps caused Assertion Error:
java.lang.AssertionError: Token length=0 <= 0
	at org.netbeans.lib.lexer.token.DefaultToken.<init>(DefaultToken.java:71)
	at org.netbeans.spi.lexer.TokenFactory.createToken(TokenFactory.java:122)
	at org.netbeans.modules.asm.core.editor.AsmLexer.nextToken(AsmLexer.java:88)
	at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:274)
	at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingContainerImpl(IncTokenList.java:197)
	at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingContainer(IncTokenList.java:192)
	at org.netbeans.api.lexer.TokenSequence.move(TokenSequence.java:595)
	at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:271)
	at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:587)
	at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:182)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:300)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:169)
	at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:565)
	at org.netbeans.editor.HighlightingDrawLayer.isActive(HighlightingDrawLayer.java:292)
	at org.netbeans.editor.DrawEngine.drawArea(DrawEngine.java:883)
	at org.netbeans.editor.DrawEngine.drawInternal(DrawEngine.java:1167)
	at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1073)
	at org.netbeans.editor.DrawEngineLineView.getModel2ViewRect(DrawEngineLineView.java:413)
	at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:482)
	at org.netbeans.editor.DrawEngineLineView.getPreferredSpan(DrawEngineLineView.java:305)
	at org.netbeans.editor.DrawEngineLineView.minorAxisUpdateLayout(DrawEngineLineView.java:802)
	at org.netbeans.editor.DrawEngineLineView.updateLayout(DrawEngineLineView.java:757)
	at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:900)
	at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:905)
	at org.netbeans.lib.editor.view.GapBoxView.updateLayout(GapBoxView.java:750)
	at org.netbeans.lib.editor.view.GapBoxView.directUpdateLayout(GapBoxView.java:898)
	at org.netbeans.lib.editor.view.GapDocumentView.directUpdateLayout(GapDocumentView.java:187)
	at org.netbeans.lib.editor.view.GapBoxView.markLayoutInvalid(GapBoxView.java:885)
	at org.netbeans.lib.editor.view.GapBoxViewChildren.markLayoutInvalid(GapBoxViewChildren.java:859)
	at org.netbeans.lib.editor.view.GapBoxView.preferenceChanged(GapBoxView.java:1273)
	at org.netbeans.editor.DrawEngineLineView.setEstimatedSpan(DrawEngineLineView.java:184)
	at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:454)
	at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:441)
	at org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1501)
	at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:420)
	at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1496)
	at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1034)
	at org.netbeans.editor.BaseCaret.updateCaretBounds(BaseCaret.java:346)
	at org.netbeans.editor.BaseCaret.update(BaseCaret.java:635)
	at org.netbeans.editor.BaseCaret$3.run(BaseCaret.java:599)
	at org.netbeans.editor.Utilities.runInEventDispatchThread(Utilities.java:1071)
	at org.netbeans.editor.BaseCaret.dispatchUpdate(BaseCaret.java:590)
	at org.netbeans.editor.BaseCaret.modifiedUpdate(BaseCaret.java:1158)
	at org.netbeans.editor.BaseCaret.atomicUnlock(BaseCaret.java:1173)
	at org.netbeans.editor.BaseDocument.fireAtomicUnlock(BaseDocument.java:1596)
	at org.netbeans.editor.BaseDocument.atomicUnlock(BaseDocument.java:1481)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:260)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:384)
[catch] at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2597)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Alexander Pepin 2008-04-10 18:05:05 UTC
Created attachment 60008 [details]
stack dump when assert happened
Comment 2 Alexander Pepin 2008-04-10 18:23:29 UTC
Created attachment 60011 [details]
ide hang java stack dump
Comment 3 Egor Ushakov 2008-04-14 11:05:10 UTC
fixed in the changeset:
http://hg.netbeans.org/main/rev/e0a0536d6360
Comment 4 Vladimir Voskresensky 2008-04-14 11:59:36 UTC
I reviewed the proposed workaround and changes in code are safe and correct.
Comment 5 Alexander Pepin 2008-04-14 13:03:03 UTC
verified in NB6.1RC1 with two provided jar files:
org-netbeans-modules-asm.jar
org-netbeans-modules-cnd-debugger-gdb.jar 
Comment 6 Egor Ushakov 2008-04-14 13:10:01 UTC
Integrated into 6.1 with:
http://hg.netbeans.org/release61/rev/2f3b08bd504f
Comment 7 Alexander Pepin 2008-04-17 10:43:05 UTC
verified in NB6.1RC2 build
Comment 8 Peter Pis 2008-04-19 12:55:57 UTC
*** Issue 133253 has been marked as a duplicate of this issue. ***