Bug 783

Summary: Null pointer on frame disposal
Product: [JogAmp] Newt Reporter: Johann Sorel <sorel.johann>
Component: windowsAssignee: Sven Gothel <sgothel>
Status: RESOLVED INVALID    
Severity: normal    
Priority: ---    
Version: 1   
Hardware: pc_x86_64   
OS: linux   
Type: --- SCM Refs:
Workaround: ---

Description Johann Sorel 2013-07-14 17:39:09 CEST
When the frame is destroyed, this exception occurs.

version : 2.0.2 rc12
System : Ubuntu 12.04 x64
Desktop : LXDE
Graphic card : GTX 460
driver nvidia : 304.88


FPSAnimator P5: false, Thread[Thread-8-FPSAWTAnimator-Timer3,5,main]: Task[thread Thread[Thread-8-FPSAWTAnimator-Timer3,5,main], stopped false, paused false shouldRun false, shouldStop false -- started true, animating true, paused true, drawable 1, drawablesEmpty false]
Exception in thread "main-Display-.x11_:0.0-1-EDT-1" java.lang.NullPointerException
	at jogamp.newt.WindowImpl$DestroyAction.run(WindowImpl.java:993)
	at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:223)
	at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:1724)
	at jogamp.newt.WindowImpl.destroy(WindowImpl.java:1053)
	at com.jogamp.newt.opengl.GLWindow.destroy(GLWindow.java:407)
	at un.engine.opengl.widget.NewtFrame.dispose(NewtFrame.java:71)
	at un.engine.ui.widget.Widget$2.receiveEvent(Widget.java:511)
	at un.api.event.EventManager.sendEvent(EventManager.java:67)
	at un.engine.ui.widget.Widget.receiveEventParent(Widget.java:569)
	at un.engine.ui.widget.Widget.receiveEvent(Widget.java:555)
	at un.engine.ui.widget.Widgets.forwardEvent(Widgets.java:71)
	at un.engine.ui.widget.WContainer.receiveEventParent(WContainer.java:186)
	at un.engine.ui.widget.Widget.receiveEvent(Widget.java:555)
	at un.api.event.EventManager.sendEvent(EventManager.java:67)
	at un.engine.opengl.widget.WPlan.transposeToWidget(WPlan.java:207)
	at un.engine.opengl.widget.WPlan.receiveEvent(WPlan.java:249)
	at un.engine.opengl.widget.GLFrame.propagate(GLFrame.java:259)
	at un.engine.opengl.widget.GLFrame.propagate(GLFrame.java:298)
	at un.engine.opengl.widget.GLFrame.mouseMoved(GLFrame.java:207)
	at jogamp.newt.WindowImpl.consumeMouseEvent(WindowImpl.java:2391)
	at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:2157)
	at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:2099)
	at jogamp.newt.WindowImpl.doMouseEvent(WindowImpl.java:2314)
	at jogamp.newt.driver.x11.WindowDriver.doMouseEvent(WindowDriver.java:271)
	at jogamp.newt.WindowImpl.doMouseEvent(WindowImpl.java:2200)
	at jogamp.newt.WindowImpl.sendMouseEvent(WindowImpl.java:2192)
	at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:105)
	at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:496)
	at jogamp.newt.DisplayImpl$5.run(DisplayImpl.java:419)
	at jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:308)
Comment 1 Sven Gothel 2013-07-15 20:44:07 CEST
How to reproduce ? Unit test ?
Comment 2 Sven Gothel 2013-07-17 03:38:35 CEST
git tip doesn't match stack trace, hence I don't know where it happens - no git sha1 given!

also: pls add reproduction test case etc.

pls reopen if bug still exists and you are willing/able to provide details,
see wiki/jogl/faq/bugreport.