Re: Reshape Problem Using NewtCanvasSWT
Posted by rhatcher on Oct 05, 2012; 3:46pm
URL: https://forum.jogamp.org/Reshape-Problem-Using-NewtCanvasSWT-tp4026385p4026400.html
I did a build this morning and gave this a try. The trend is in the right direction:
- Reshape calls are being made for both window resizing and part-sash dragging;
- Display calls are being made for window exposures;
- Mouse and keyboard events are showing up.
Two Chuck Norris thumbs up.
However, at least one problem remains:
If I grab-and-hold the corner of the window and drag it around randomly stimulating piles of window resizes then after just a few seconds the overall window refresh will stall and something like this will pop out:
Exception in thread "main-SWTDisplay-.x11_:0.0-1-EDT-1" java.lang.RuntimeException: Waited 5000ms for: <14e5b0e, 13c0223>[count 1, qsz 0, owner <main>] - <main-SWTDisplay-.x11_:0.0-1-EDT-1>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:197)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:539)
at jogamp.opengl.GLAutoDrawableBase.defaultWindowResizedOp(GLAutoDrawableBase.java:128)
at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:94)
at com.jogamp.newt.opengl.GLWindow$1.windowResized(GLWindow.java:112)
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:2344)
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:2287)
at jogamp.newt.WindowImpl.sizeChanged(WindowImpl.java:2431)
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)
So... we are very close on this. I'm not sure I'm smart enough to fix this problem, but I will at least think about it.