Skip to content

Failed

com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT.testWindowParentingAWTFocusTraversal02Offscreen

Failing for the past 1 build (Since Unstable#758 )
Took 0.63 sec.

Error Message

expected:<true> but was:<false>

Stacktrace

junit.framework.AssertionFailedError: expected:<true> but was:<false>
	at com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT.testWindowParentingAWTFocusTraversal(TestParentingFocusTraversal01AWT.java:197)
	at com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT.testWindowParentingAWTFocusTraversal02Offscreen(TestParentingFocusTraversal01AWT.java:86)

Standard Error

Thread-1 - SingletonInstanceServerSocket: localhost/127.0.0.1:59999 - started
SLOCK 1340053953914 +++ localhost/127.0.0.1:59999 - Locked 
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT - testWindowParentingAWTFocusTraversal01Onscreen
FTKL.fwd-keys: ctrl pressed TAB
FTKL.fwd-keys: pressed TAB
FTKL.bwd-keys: shift ctrl pressed TAB
FTKL.bwd-keys: pressed BACK_SPACE
FTKL.bwd-keys: shift pressed TAB
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053955718 d 0ms]]
Thread[main-AWTAnimator-1,5,main] GearsES2.init ...
Chosen GLCapabilities: GLCaps[on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce 320M OpenGL Engine
GL_VERSION: 2.1 NVIDIA-7.18.18
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053955748 d 0ms]]
gear1 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@602b6b
gear2 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@3e1bc8
gear3 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@120540c
Thread[main-AWTAnimator-1,5,main] GearsES2.init FIN
******** clearAWTFocus.0
FOCUS AWT  GAINED PERM [fc 1]: WEST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS AWT  LOST   TEMP [fc -1]: WEST, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,0,22,62x278,label=WEST]
******** clearAWTFocus.X
toFront: robot pos: java.awt.Point[x=150,y=172]
centerMouse: robot pos: java.awt.Point[x=31,y=183], onTitleBarIfWindow: true
FOCUS AWT  GAINED PERM [fc 1]: WEST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Frame[frame0,0,22,300x300,layout=java.awt.BorderLayout,title=AWT Parent Frame,resizable,normal],cause=NATIVE_SYSTEM] on java.awt.Button[button0,0,22,62x278,label=WEST]
requestFocus: click, d: 501 ms
FOCUS AWT  LOST   PERM [fc -1]: WEST, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=TRAVERSAL_FORWARD] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053956955 d 0ms]]
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053957254 d 0ms]]
FOCUS AWT  GAINED PERM [fc 1]: EAST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=TRAVERSAL_FORWARD] on java.awt.Button[button1,240,22,60x278,label=EAST]
FOCUS AWT  LOST   PERM [fc -1]: EAST, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=TRAVERSAL_BACKWARD] on java.awt.Button[button1,240,22,60x278,label=EAST]
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053957553 d 0ms]]
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053957862 d 0ms]]
FOCUS AWT  GAINED PERM [fc 1]: WEST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=TRAVERSAL_BACKWARD] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053958158 d 0ms]]
FOCUS AWT  LOST   PERM [fc -1]: WEST, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=UNKNOWN] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053958464 d 0ms]]
FOCUS AWT  GAINED PERM [fc 1]: WEST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=UNKNOWN] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS AWT  LOST   PERM [fc -1]: WEST, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=com.jogamp.newt.awt.NewtCanvasAWT[canvas0,62,22,178x278],cause=UNKNOWN] on java.awt.Button[button0,0,22,62x278,label=WEST]
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053958768 d 0ms]]
Thread[main-Display-MacOSX_nil-1-EDT-1,5,main] GearsES2.dispose ... 
Thread[main-Display-MacOSX_nil-1-EDT-1,5,main] GearsES2.dispose FIN
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT - testWindowParentingAWTFocusTraversal01Onscreen
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT - testWindowParentingAWTFocusTraversal02Offscreen
FTKL.fwd-keys: ctrl pressed TAB
FTKL.fwd-keys: pressed TAB
FTKL.bwd-keys: shift ctrl pressed TAB
FTKL.bwd-keys: pressed BACK_SPACE
FTKL.bwd-keys: shift pressed TAB
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053959146 d 0ms]]
******** clearAWTFocus.0
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053959270 d 0ms]]
Thread[main-AWTAnimator-2,5,main] GearsES2.init ...
Chosen GLCapabilities: GLCaps[offscr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pbuffer [r2t 0, r2tr 0, float 0]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce 320M OpenGL Engine
GL_VERSION: 2.1 NVIDIA-7.18.18
gear1 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@185ad79
gear2 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@1401d28
gear3 created: com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2@3a6e5c
Thread[main-AWTAnimator-2,5,main] GearsES2.init FIN
FOCUS AWT  GAINED PERM [fc 1]: WEST, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Button[button2,0,22,62x278,label=WEST]
FOCUS AWT  LOST   TEMP [fc -1]: WEST, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button2,0,22,62x278,label=WEST]
******** clearAWTFocus.X
toFront: robot pos: java.awt.Point[x=150,y=172]
Thread[main-Display-MacOSX_nil-2-EDT-1,5,main] GearsES2.dispose ... 
Thread[main-Display-MacOSX_nil-2-EDT-1,5,main] GearsES2.dispose FIN
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053959553 d 0ms]]
Exception in thread "main-AWTAnimator-2" javax.media.opengl.GLException: drawable has invalid handle: MacOSXPbufferCGLDrawable[Realized false,
	Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@14e0e90,
	handle    0x0,
	Window    jogamp.newt.driver.macosx.MacWindow[Config MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
	chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pbuffer [r2t 0, r2tr 0, float 0]],
	requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]]]
, NEWT-Screen[MacOSX_nil-20, idx 0, refCount 1, 1920x1200, DefaultGraphicsScreen[MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0], idx 0], NEWT-Display[MacOSX_nil-2, refCount 1, hasEDT true, edtRunning true, MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0]]]
, ParentWindow JAWT-Window[windowHandle 0x189570, surfaceHandle 0x0, bounds [ 62 / 22  178 x 278 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer true, isOffscreenLayerSurface true, pos 62/22, size 178x278, visible true, lockedExt false,
	config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT, connection \Display0, unitID 0, awtDevice CGraphicsDevice[screen=0], handle 0x0], idx 0],
	chosen    GLCaps[offscr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pixmap],
	requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]],
	apple.awt.CGraphicsConfig@14acfcd[dev=CGraphicsDevice[screen=0],pixfmt=0],
	encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
	chosen    GLCaps[offscr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pixmap],
	requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]]]],
	awtComponent com.jogamp.newt.awt.NewtCanvasAWT[canvas1,62,22,178x278],
	surfaceLock <979f67, 62610b>[count 0, qsz 0, owner <NULL>]]
, ParentWindowHandle 0x189570 (true)
, WindowHandle 0x1558b0
, SurfaceHandle 0x14ef10 (lockedExt window false, surface false)
, Pos 0/0 (auto false), size 178x278
, Visible true, focus true
, Undecorated false (true)
, AlwaysOnTop false, Fullscreen false
, WrappedWindow null
, ChildWindows 0, SurfaceUpdatedListeners num 0 [], WindowListeners num 3 [com.jogamp.newt.opengl.GLWindow$1@d12eea, GLWindow1[focusCount 1], com.jogamp.newt.awt.NewtCanvasAWT$2@15f157b, ], MouseListeners num 0 [], KeyListeners num 3 [GLWindow1[pressed false, typed 0], com.jogamp.opengl.test.junit.newt.parenting.NewtAWTReparentingKeyAdapter@17b40fe, com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT$1@e7f6eb, ], surfaceLock <103de90, 108f8e0>[count 1, qsz 0, owner <main-AWTAnimator-2>], windowLock <b6ef8, a29c6e>[count 1, qsz 0, owner <main-AWTAnimator-2>]]]
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:400)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:415)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:559)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:142)
	at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:176)
	at java.lang.Thread.run(Thread.java:680)
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[sys:false, source:jogamp.newt.driver.macosx.MacWindow, when:1340053959576 d 0ms]]
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.parenting.TestParentingFocusTraversal01AWT - testWindowParentingAWTFocusTraversal02Offscreen
SLOCK 1340053959763 --- localhost/127.0.0.1:59999 - Unlock ok