Login  Register

Re: Bug in resize of NEWT window on OSX?

Posted by jmaasing on Mar 30, 2013; 7:51am
URL: https://forum.jogamp.org/Bug-in-resize-of-NEWT-window-on-OSX-tp4028843p4028853.html

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