Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.

Failed

com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot.testFocus02RobotFocus

Failing for the past 10 builds (Since Unstable#1082 )
Took 14 sec.

Error Message

Did not gain focus

Stacktrace

junit.framework.AssertionFailedError: Did not gain focus
	at com.jogamp.opengl.test.junit.util.AWTRobotUtil.assertRequestFocusAndWait(AWTRobotUtil.java:449)
	at com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot.testFocus01ProgrFocusImpl(TestFocus01SwingAWTRobot.java:172)
	at com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot.testFocus02RobotFocus(TestFocus01SwingAWTRobot.java:98)

Standard Error

SLOCK [T main @ 1380356312360 ms III localhost/127.0.0.1:59999 - Wait for lock
Thread-2 - SISock: localhost/127.0.0.1:59999 - started
SLOCK [T main @ 1380356315366 ms +++ localhost/127.0.0.1:59999 - Locked within 3037 ms, 4 attempts
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot - testFocus01ProgrFocus
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356317701 d 1ms]]
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.init: tileRendererInUse null
RedSquareES2 init on Thread[main-Display-.macosx_nil-1-EDT-1,5,main]
Chosen GLCapabilities: GLCaps[rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
Swap Interval  -1
GL Profile     GLProfile[GL2/GL2.hw]
GL Version     2.1 (Compat profile, arb, FBO, hardware) - 2.1 NVIDIA-7.32.12 [GL 2.1.0, vendor 7.32.12 (NVIDIA-7.32.12)]
Quirks         [NoOffscreenBitmap]
Impl. class    jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR      NVIDIA Corporation
GL_RENDERER    NVIDIA GeForce 320M OpenGL Engine
GL_VERSION     2.1 NVIDIA-7.32.12
GLSL           true, has-compiler-func: true, version: 1.20 / 1.20.0
GL FBO: basic true, full true
GL_EXTENSIONS  134
GLX_EXTENSIONS 0
-----------------------------------------------------------------------------------------------------
ShaderState: attachShaderProgram: -1 -> 1 (enable: true)
	null
	ShaderProgram[id=1, linked=false, inUse=false, program: 1,
   ShaderCode[id=1, type=VERTEX_SHADER, valid=true, shader:  2, source]
   ShaderCode[id=2, type=FRAGMENT_SHADER, valid=true, shader:  3, source]]
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.init FIN
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.reshape 0/0 640x430 of 640x430, swapInterval 1, drawable 0x7ff409cb67f0, tileRendererInUse null
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.reshape FIN
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape 0/0 640x430 of 640x430, swapInterval 1, drawable 0x7ff409cb67f0, tileRendererInUse null
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape FIN
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356317799 d 0ms]]
******** clearAWTFocus.0
FOCUS AWT  GAINED PERM [fc 1]: Button, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,0,0,640x28,label=Click me ..]
FOCUS AWT  LOST   TEMP [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,0,0,640x28,label=Click me ..]
******** clearAWTFocus.X
toFront: robot pos: 320x262
Frames for initial setVisible(true): 4
FOCUS AWT  Button request
requestFocus: AWT Component
FOCUS AWT  GAINED PERM [fc 1]: Button, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=javax.swing.JFrame[frame0,0,22,640x480,layout=java.awt.BorderLayout,title=Swing AWT Parent Frame: testNewtChildFocus,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,640x458,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true],cause=UNKNOWN] on java.awt.Button[button0,0,0,640x28,label=Click me ..]
FOCUS AWT  Button sync
centerMouse: robot pos: 320x58, onTitleBarIfWindow: false
KEY AWT PRESSED [true]: Button, java.awt.event.KeyEvent[KEY_PRESSED,keyCode=65,keyText=A,keyChar='a',keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on button0
KEY AWT RELEASED [false]: Button, java.awt.event.KeyEvent[KEY_RELEASED,keyCode=65,keyText=A,keyChar='a',keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on button0
KEY AWT PRESSED [true]: Button, java.awt.event.KeyEvent[KEY_PRESSED,keyCode=65,keyText=A,keyChar='a',keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on button0
KEY AWT RELEASED [false]: Button, java.awt.event.KeyEvent[KEY_RELEASED,keyCode=65,keyText=A,keyChar='a',keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on button0
centerMouse: robot pos: 320x58, onTitleBarIfWindow: false
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356319577 d 0ms]]
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot - testFocus01ProgrFocus
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot - testFocus02RobotFocus
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356330035 d 0ms]]
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356330036 d 0ms]]
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.init: tileRendererInUse null
RedSquareES2 init on Thread[main-Display-.macosx_nil-1-EDT-1,5,main]
Chosen GLCapabilities: GLCaps[rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
Swap Interval  -1
GL Profile     GLProfile[GL2/GL2.hw]
GL Version     2.1 (Compat profile, arb, FBO, hardware) - 2.1 NVIDIA-7.32.12 [GL 2.1.0, vendor 7.32.12 (NVIDIA-7.32.12)]
Quirks         [NoOffscreenBitmap]
Impl. class    jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR      NVIDIA Corporation
GL_RENDERER    NVIDIA GeForce 320M OpenGL Engine
GL_VERSION     2.1 NVIDIA-7.32.12
GLSL           true, has-compiler-func: true, version: 1.20 / 1.20.0
GL FBO: basic true, full true
GL_EXTENSIONS  134
GLX_EXTENSIONS 0
-----------------------------------------------------------------------------------------------------
ShaderState: attachShaderProgram: -1 -> 2 (enable: true)
	null
	ShaderProgram[id=2, linked=false, inUse=false, program: 1,
   ShaderCode[id=3, type=VERTEX_SHADER, valid=true, shader:  2, source]
   ShaderCode[id=4, type=FRAGMENT_SHADER, valid=true, shader:  3, source]]
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.init FIN
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.reshape 0/0 640x430 of 640x430, swapInterval 1, drawable 0x7ff409ce4640, tileRendererInUse null
Thread[main-Display-.macosx_nil-1-EDT-1,5,main] RedSquareES2.reshape FIN
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape 0/0 640x430 of 640x430, swapInterval 1, drawable 0x7ff409ce4640, tileRendererInUse null
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape FIN
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356330092 d 0ms]]
FOCUS AWT  LOST   TEMP [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button1,0,0,640x28,label=Click me ..],cause=ACTIVATION] on java.awt.Button[button0,0,0,640x28,label=Click me ..]
******** clearAWTFocus.0
FOCUS AWT  GAINED PERM [fc 1]: Button, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Button[button0,0,0,640x28,label=Click me ..],cause=ACTIVATION] on java.awt.Button[button1,0,0,640x28,label=Click me ..]
FOCUS AWT  LOST   TEMP [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button1,0,0,640x28,label=Click me ..]
******** clearAWTFocus.X
toFront: robot pos: 320x262
Frames for initial setVisible(true): 4
FOCUS AWT  Button request
centerMouse: robot pos: 320x58, onTitleBarIfWindow: true
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.macosx.WindowDriver, consumed false, when:1380356330978 d 1ms]]
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x58, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x58, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x58, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x58, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
*** AWTRobotUtil.assertRequestFocusAndWait() major UI failure
*** requestFocus.hasFocus() - AWT: false
*** waitForFocus.hasFocus() - AWT: false
*** gain: Button[focusCount -1, temp true]
*** lost: null
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1273)
	at com.jogamp.opengl.test.junit.util.AWTRobotUtil.assertRequestFocusAndWait(AWTRobotUtil.java:447)
	at com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot.testFocus01ProgrFocusImpl(TestFocus01SwingAWTRobot.java:172)
	at com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot.testFocus02RobotFocus(TestFocus01SwingAWTRobot.java:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.TestFocus01SwingAWTRobot - testFocus02RobotFocus
SLOCK [T main @ 1380356344284 ms --- localhost/127.0.0.1:59999 - Unlock ok within 8 ms