Login  Register

Re: NativeWindowException: Unable to lock surface

Posted by gouessej on May 24, 2013; 8:30am
URL: https://forum.jogamp.org/NativeWindowException-Unable-to-lock-surface-tp4029205p4029226.html

sranger wrote
I made a quick demo by creating a Canvas in place of the GLCanvas and updating the fill color every 5-10 milliseconds. It doesn't have the same issues (no NativeWindowExceptions) but it does have issues filling a solid color (it sometimes has white blocks looking like coarse static).
Then, you should write a bug report against SWT with this simple java.awt.Canvas as this part of your bug doesn't concern JOGL.

sranger wrote
Thanks for posting the SWT bug for multiple monitors on the bug report I posted for JOGL; for those seeing this here, this is the link:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=372560

Though, I'm using the most recent version of SWT (that bug states resolved as of last august) and even so, the error message occurs only when I close the application; the issues stated happen well before that (resizing the frame, moving to secondary screen and maximizing the window). It still could be an SWT/GTK issue but I have no idea.

If I disable one of my displays the flickering issue still occurs but the JavaEmbeddedFrame only disconnects when moving the application to the secondary display and maximizing it.
I think that there might be a similar bug, not exactly the same. Please can you compare the version number of GTK on the different machines you used? Does the problem with the embedded frame occur with a plan AWT Canvas too?

sranger wrote
Thanks for the response.
You're welcome.
Julien Gouesse | Personal blog | Website