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 192996 - IDE crashes after NPE in Disassembly
Summary: IDE crashes after NPE in Disassembly
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
: 193032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-07 16:25 UTC by Alexander Pepin
Modified: 2017-04-08 03:09 UTC (History)
1 user (show)

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 Alexander Pepin 2010-12-07 16:25:43 UTC
Steps to reproduce:
- create Welcome sample
- do step into
- open Disassembly, Disassembly(main) tab appears
- do several steps then step into "std:cout" system call, a new Disassembly tab appears
- switch to newly appeared Disassembly tab
Result: NPE window appears cyclically and blocks IDE and other windows (it's impossible to switch focus to any other window).

java.lang.NullPointerException
	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:886)
	at javax.swing.text.BoxView.checkRequests(BoxView.java:918)
	at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:326)
	at javax.swing.text.BoxView.layout(BoxView.java:691)
	at javax.swing.text.BoxView.setSize(BoxView.java:380)
	at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1702)
	at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1088)
	at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1062)
	at javax.swing.text.JTextComponent.viewToModel(JTextComponent.java:1418)
	at org.netbeans.modules.cnd.debugger.common2.debugger.assembly.DisView$1$1.scanLine(DisView.java:565)
	at org.netbeans.modules.cnd.debugger.common2.debugger.assembly.DisView$ViewScanner.scan(DisView.java:434)
	at org.netbeans.modules.cnd.debugger.common2.debugger.assembly.DisView$1.paintComponent(DisView.java:641)
	at javax.swing.JComponent.paint(JComponent.java:1029)
	at javax.swing.JComponent.paintChildren(JComponent.java:864)
	at javax.swing.JComponent.paint(JComponent.java:1038)
	at javax.swing.JViewport.paint(JViewport.java:747)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1475)
	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1406)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:294)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
	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:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Egor Ushakov 2010-12-08 11:36:37 UTC
old disassembly window causes these exceptions
Comment 2 Egor Ushakov 2010-12-09 20:23:48 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/c169205786b4
there should be only new disassembly in gdb
Comment 3 Egor Ushakov 2010-12-09 20:34:05 UTC
*** Bug 193032 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2010-12-11 06:34:37 UTC
Integrated into 'main-golden', will be available in build *201012110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c169205786b4
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #192996 (IDE crashes after NPE in Disassembly)
Comment 5 Quality Engineering 2017-04-08 03:09:28 UTC
Integrated into 'main-silver', will be available in build *201704080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cfd60174882e
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #192996 (IDE crashes after NPE in Disassembly) - removed old disassembly initialization from common