Before I write a bug report I just wanted to see if this was known already?
Running RC 11 on OSX 10.8.1 (Java 7). My app opens a NEWT window. If I resize the window by clicking and dragging with the mouse the window jumps around all over the screen and sets (what appears) to be random sizes and positions. It's like it can't decide from frame to frame where it should be and what size it should have. The same application runs fine on linux. |
Administrator
|
On 03/27/2013 10:45 PM, jmaasing [via jogamp] wrote:
> Before I write a bug report I just wanted to see if this was known already? > Running RC 11 on OSX 10.8.1 (Java 7). My app opens a NEWT window. If I resize > the window by clicking and dragging with the mouse the window jumps around all > over the screen and sets (what appears) to be random sizes and positions. It's > like it can't decide from frame to frame where it should be and what size it > should have. > The same application runs fine on linux. Pls test w/ latest aggregated build, see http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Latest_Aggregated_Autobuild OSX implementation has changed .. and pls post your results. In case your app still doesn't work, pls post a bug report and a unit test to reproduce. Thx. ~Sven signature.asc (911 bytes) Download Attachment |
Took a while to find a working 7-zip for OSX but finally managed to get everything running. The resize works better now, thank you I used gluegen_652-joal_417-jogl_943-jocl_767
Here are the issues I've found so far with the aggregated build, let me know if you need more details: * While resizing the window content flickers, every once in a while it gets filled with what looks like VRAM garbage for 1 frame. Still, this is a lot better than having the window jump around the screen :-) * Keyboard input does not work. Exception in thread "main-Display-.macosx_nil-1-EDT-1" java.lang.RuntimeException: java.lang.NoSuchMethodError: com.jogamp.newt.event.KeyEvent.getKeyCode()I at jogamp.newt.DisplayImpl.dispatchMessage(DisplayImpl.java:390) at jogamp.newt.DisplayImpl.dispatchMessage(DisplayImpl.java:405) at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:441) at jogamp.newt.DisplayImpl$3.run(DisplayImpl.java:370) at jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:308) Caused by: java.lang.NoSuchMethodError: com.jogamp.newt.event.KeyEvent.getKeyCode()I at nu.zoom.corridors.client.input.newt.NewtInputMapper.keyPressed(NewtInputMapper.java:92) * When I quit the application I get a JVM crash. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000104d9c250, pid=6467, tid=1799 # # JRE version: 7.0_17-b02 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libobjc.A.dylib+0x6250] objc_msgSend+0x10 Stack: [0x00007fff560f5000,0x00007fff568f5000], sp=0x00007fff568efb80, free space=8170k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libobjc.A.dylib+0x6250] objc_msgSend+0x10 j jogamp.newt.driver.macosx.WindowDriver.close0(J)V+0 j jogamp.newt.driver.macosx.WindowDriver.access$000(Ljogamp/newt/driver/macosx/WindowDriver;J)V+2 j jogamp.newt.driver.macosx.WindowDriver$1.run()V+8 j com.jogamp.common.util.RunnableTask.run()V+24 v ~StubRoutines::call_stub V [libjvm.dylib+0x28852f] V [libjvm.dylib+0x2882fc] V [libjvm.dylib+0x2a3df3] V [libjvm.dylib+0x297b5b] C [libnativewindow_macosx.jnilib+0x4a2d] Java_jogamp_nativewindow_jawt_macosx_MacOSXJAWTWindow_UnsetJAWTRootSurfaceLayer0+0x3ed C [Foundation+0x92d3a] __NSThreadPerformPerform+0xe1 C [CoreFoundation+0x12b31] __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11 C [CoreFoundation+0x12455] __CFRunLoopDoSources0+0xf5 C [CoreFoundation+0x357f5] __CFRunLoopRun+0x315 C [CoreFoundation+0x350e2] CFRunLoopRunSpecific+0x122 C [HIToolbox+0x5feb4] RunCurrentEventLoopInMode+0xd1 C [HIToolbox+0x5fb94] ReceiveNextEventCommon+0xa6 C [HIToolbox+0x5fae3] BlockUntilNextEventMatchingListInMode+0x3e C [AppKit+0x155563] _DPSNextEvent+0x2ad C [AppKit+0x154e22] -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]+0x80 C [libosxapp.dylib+0x1b56] -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:]+0x7c C [AppKit+0x14c1d3] -[NSApplication run]+0x205 C [libosxapp.dylib+0x19b9] +[NSApplicationAWT runAWTLoopWithApp:]+0x9c C [liblwawt.dylib+0xd81a] -[AWTStarter starter:]+0x637 C [Foundation+0x92d3a] __NSThreadPerformPerform+0xe1 C [CoreFoundation+0x12b31] __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11 C [CoreFoundation+0x12455] __CFRunLoopDoSources0+0xf5 C [CoreFoundation+0x357f5] __CFRunLoopRun+0x315 C [CoreFoundation+0x350e2] CFRunLoopRunSpecific+0x122 C [java+0x742d] CreateExecutionEnvironment+0x367 C [java+0x1bdc] JLI_Launch+0x7a0 C [java+0x778a] main+0x65 C [java+0x1434] start+0x34 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j jogamp.newt.driver.macosx.WindowDriver.close0(J)V+0 j jogamp.newt.driver.macosx.WindowDriver.access$000(Ljogamp/newt/driver/macosx/WindowDriver;J)V+2 j jogamp.newt.driver.macosx.WindowDriver$1.run()V+8 j com.jogamp.common.util.RunnableTask.run()V+24 v ~StubRoutines::call_stub |
Administrator
|
com.jogamp.newt.event.KeyEvent.getKeyCode() returns a short now, please recompile and relaunch your application.
Julien Gouesse | Personal blog | Website
|
Thanks for the tip about the keycodes. Strange thing is that when I run the application I get runtime errors:
com.jogamp.newt.event.KeyEvent.getKeyCode()I but if I get into the debugger and execute getKeyCode in the debugger I get the correct value back. I must have some weird thing going on in eclipse with some caching of JAR/class files. |
Administrator
|
I had the same problem with Eclipse and Ardor3D. I had to clean my projects to ensure it works.
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |