Login  Register

Re: NativeWindowException: Unable to lock surface

Posted by sranger on May 22, 2013; 2:01pm
URL: https://forum.jogamp.org/NativeWindowException-Unable-to-lock-surface-tp4029205p4029215.html

sun.awt.noerasebackground didn't fix the issue with the original test. I also created a NewtCanvasSWT/GLWindow test application and had the same issue but with the following fatal error when closing the application:

Warning: NEWT X11 DisplayDispatch 0x7f098078c4f0, Couldn't handle event 17 for X11 window 0x3c00002
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 2/2, reusable (open, marked uncloseable): 1, pending (open in creation order): 3)
X11Util: Open X11 Display Connections: 2
X11Util: Open[0]: NamedX11Display[:0, 0x7f098078c4f0, refCount 1, unCloseable true]
X11Util: Open[1]: NamedX11Display[:0, 0x7f09805bb340, refCount 1, unCloseable true]
Nativewindow X11 IOError: Display 0x7f098078c4f0 (:0): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x7f098078c4f0 (:0): Resource temporarily unavailable
FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x7f098078c4f0 (:0): Resource temporarily unavailable
	at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:106)
	at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:442)
	at com.jogamp.newt.swt.SWTEDTUtil$1.run(SWTEDTUtil.java:57)
	at com.jogamp.newt.swt.SWTEDTUtil$NewtEventDispatchThread.run(SWTEDTUtil.java:239)


 - Stephen