Re: NativeWindowException: Unable to lock surface
Posted by
sranger on
May 23, 2013; 9:16pm
URL: https://forum.jogamp.org/NativeWindowException-Unable-to-lock-surface-tp4029205p4029225.html
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).
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=372560Though, 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.
Thanks for the response.
- Stephen