Bug 756

Summary: Spurious freeze and/or NullPointerException when running a JOGL NEWT application within Eclipse
Product: [JogAmp] Newt Reporter: Julien Gouesse <gouessej>
Component: x11Assignee: Sven Gothel <sgothel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: gouessej
Priority: ---    
Version: 2.3.0   
Hardware: All   
OS: linux   
Type: --- SCM Refs:
Workaround: ---

Description Julien Gouesse 2013-06-18 22:19:40 CEST
Hi

Several JOGL NEWT applications sometimes get frozen when NEWT tries to get the XRandR version number and I get (very rarely) this exception:
Exception in thread "main" java.lang.NullPointerException
	at jogamp.newt.MonitorModeProps.streamInMonitorDevice(MonitorModeProps.java:223)
	at jogamp.newt.ScreenImpl.getVirtualMonitorDevice(ScreenImpl.java:483)
	at jogamp.newt.ScreenImpl.initMonitorState(ScreenImpl.java:527)
	at jogamp.newt.ScreenImpl.createNative(ScreenImpl.java:184)
	at jogamp.newt.ScreenImpl.addReference(ScreenImpl.java:222)
	at engine.service.Ardor3DGameServiceProvider.<init>(Ardor3DGameServiceProvider.java:217)
	at engine.service.Ardor3DGameServiceProvider.main(Ardor3DGameServiceProvider.java:119)

This isn't always reproducible but it becomes very annoying and it happens more frequently in latest builds.
Comment 1 Julien Gouesse 2013-06-30 22:13:55 CEST
Hi

I obtain this with the RC12:
Exception in thread "main-Display-.x11_:0-1-EDT-1" java.lang.RuntimeException: Waited 5000ms for: <14627a, 4d41e2>[count 1, qsz 0, owner <main>] - <main-Display-.x11_:0-1-EDT-1>
	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
	at jogamp.nativewindow.ResourceToolkitLock.lock(ResourceToolkitLock.java:56)
	at javax.media.nativewindow.DefaultGraphicsDevice.lock(DefaultGraphicsDevice.java:136)
	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:101)
	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 2 Julien Gouesse 2013-08-04 21:38:58 CEST
I get this with JOGL 2.0.2:
[java] Exception in thread "main-Display-.x11_:0-1-EDT-1" java.lang.RuntimeException: Waited 5000ms for: <e06940, 11e0c13>[count 1, qsz 0, owner <main>] - <main-Display-.x11_:0-1-EDT-1>
     [java] 	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
     [java] 	at jogamp.nativewindow.ResourceToolkitLock.lock(ResourceToolkitLock.java:56)
     [java] 	at javax.media.nativewindow.DefaultGraphicsDevice.lock(DefaultGraphicsDevice.java:136)
     [java] 	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:101)
     [java] 	at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:535)
     [java] 	at jogamp.newt.DisplayImpl$5.run(DisplayImpl.java:458)
     [java] 	at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:317)
Comment 3 Julien Gouesse 2014-10-08 11:42:42 CEST
It's no longer reproducible with JOGL 2.2.1.