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

Regression

com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot.testFocus02RobotFocus

Failing for the past 1 build (Since Unstable#1356 )
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:447)
	at com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot.testFocus01ProgrFocusImpl(TestParentingFocus01SwingAWTRobot.java:172)
	at com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot.testFocus02RobotFocus(TestParentingFocus01SwingAWTRobot.java:98)

Standard Error

Thread-1 - SISock: localhost/127.0.0.1:59999 - started
SLOCK [T main @ 1411367009416 ms +++ localhost/127.0.0.1:59999 - Locked within 1010 ms, 1 attempts
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot - testFocus01ProgrFocus
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.windows.WindowDriver, consumed false, when:1411367011071 d 0ms]]
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.init: tileRendererInUse null
RedSquareES2 init on Thread[main-Display-.windows_nil-1-EDT-1,5,main]
Chosen GLCapabilities: GLCaps[wgl vid 7 arb: rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
Swap Interval  -1
GL Profile     GLProfile[GL4bc/GL4bc.hw]
GL Version     4.4 (Compat profile, arb, ES2 compat, ES3 compat, FBO, hardware) - 4.4.0 [GL 4.4.0, vendor 0.0.0 (n/a)]
Quirks         [NoDoubleBufferedBitmap]
Impl. class    jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR      NVIDIA Corporation
GL_RENDERER    GeForce GTX 460/PCIe/SSE2
GL_VERSION     4.4.0
GLSL           true, has-compiler-func: true, version: 4.40 NVIDIA via Cg compiler / 4.40.0
GL FBO: basic true, full true
GL_EXTENSIONS  290
GLX_EXTENSIONS 26
-----------------------------------------------------------------------------------------------------
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-.windows_nil-1-EDT-1,5,main] RedSquareES2.init FIN
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.reshape 0/0 624x419 of 624x419, swapInterval 1, drawable 0x31010f07, tileRendererInUse null
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.reshape FIN
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape 0/0 624x419 of 624x419, swapInterval 1, drawable 0x31010f07, 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.windows.WindowDriver, consumed false, when:1411367011202 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,624x23,label=Click me ..]
******** clearAWTFocus.X
toFront: robot pos: 320/240
FOCUS AWT  LOST   PERM [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Button[button0,0,0,624x23,label=Click me ..]
Frames for initial setVisible(true): 5
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,0,640x480,layout=java.awt.BorderLayout,title=Swing AWT Parent Frame: testNewtChildFocus,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,8,30,624x442,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,624x23,label=Click me ..]
FOCUS AWT  Button sync
centerMouse: robot pos: 320x42, onTitleBarIfWindow: false
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot - testFocus01ProgrFocus
++++ UITestCase.setUp: com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot - testFocus02RobotFocus
FOCUS NEWT GAINED [fc 1]: GLWindow1, WindowEvent[EVENT_WINDOW_GAINED_FOCUS, NEWTEvent[source:jogamp.newt.driver.windows.WindowDriver, consumed false, when:1411367023803 d 0ms]]
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.init: tileRendererInUse null
RedSquareES2 init on Thread[main-Display-.windows_nil-1-EDT-1,5,main]
Chosen GLCapabilities: GLCaps[wgl vid 7 arb: rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
Swap Interval  -1
GL Profile     GLProfile[GL4bc/GL4bc.hw]
GL Version     4.4 (Compat profile, arb, ES2 compat, ES3 compat, FBO, hardware) - 4.4.0 [GL 4.4.0, vendor 0.0.0 (n/a)]
Quirks         [NoDoubleBufferedBitmap]
Impl. class    jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR      NVIDIA Corporation
GL_RENDERER    GeForce GTX 460/PCIe/SSE2
GL_VERSION     4.4.0
GLSL           true, has-compiler-func: true, version: 4.40 NVIDIA via Cg compiler / 4.40.0
GL FBO: basic true, full true
GL_EXTENSIONS  290
GLX_EXTENSIONS 26
-----------------------------------------------------------------------------------------------------
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-.windows_nil-1-EDT-1,5,main] RedSquareES2.init FIN
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.reshape 0/0 624x419 of 624x419, swapInterval 1, drawable 0x5e010f1b, tileRendererInUse null
Thread[main-Display-.windows_nil-1-EDT-1,5,main] RedSquareES2.reshape FIN
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape 0/0 624x419 of 624x419, swapInterval 1, drawable 0xffffffffab010f8a, tileRendererInUse null
Thread[AWT-EventQueue-0,6,main] RedSquareES2.reshape FIN
FOCUS AWT  LOST   TEMP [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button1,0,0,624x23,label=Click me ..],cause=ACTIVATION] on java.awt.Button[button0,0,0,624x23,label=Click me ..]
FOCUS NEWT LOST   [fc -1]: GLWindow1, WindowEvent[EVENT_WINDOW_LOST_FOCUS, NEWTEvent[source:jogamp.newt.driver.windows.WindowDriver, consumed false, when:1411367023940 d 0ms]]
******** clearAWTFocus.0
FOCUS AWT  GAINED PERM [fc 1]: Button, java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Button[button0,0,0,624x23,label=Click me ..],cause=ACTIVATION] on java.awt.Button[button1,0,0,624x23,label=Click me ..]
******** clearAWTFocus.X
toFront: robot pos: 320/240
FOCUS AWT  LOST   PERM [fc -1]: Button, java.awt.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on java.awt.Button[button1,0,0,624x23,label=Click me ..]
Frames for initial setVisible(true): 5
FOCUS AWT  Button request
centerMouse: robot pos: 320x42, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x42, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x42, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x42, onTitleBarIfWindow: true
requestFocus: click, d: 501 ms
centerMouse: robot pos: 320x42, 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 false]
*** lost: null
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1329)
	at com.jogamp.opengl.test.junit.util.AWTRobotUtil.assertRequestFocusAndWait(AWTRobotUtil.java:445)
	at com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot.testFocus01ProgrFocusImpl(TestParentingFocus01SwingAWTRobot.java:172)
	at com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot.testFocus02RobotFocus(TestParentingFocus01SwingAWTRobot.java:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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:532)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030)
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.newt.event.TestParentingFocus01SwingAWTRobot - testFocus02RobotFocus
SLOCK [T main @ 1411367038047 ms --- localhost/127.0.0.1:59999 - Unlock ok within 0 ms