JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT Class Reference

BUG on OSX/CALayer w/ Java6: If frame.setTitle() is issued right after initialization the call hangs in. More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT:

Public Member Functions

void test00NoAnimator () throws InterruptedException, InvocationTargetException
 
void test01Animator () throws InterruptedException, InvocationTargetException
 
void test02FPSAnimator () throws InterruptedException, InvocationTargetException
 
void test02FPSAnimator_RestartOnAWTEDT () throws InterruptedException, InvocationTargetException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void main (final String args[])
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Detailed Description

BUG on OSX/CALayer w/ Java6: If frame.setTitle() is issued right after initialization the call hangs in.

at apple.awt.CWindow._setTitle(Native Method)
 at apple.awt.CWindow.setTitle(CWindow.java:765) [1.6.0_37, build 1.6.0_37-b06-434-11M3909]

<p<blockquote>‍

OSX/CALayer is forced by using an Applet component in this unit test.

Similar deadlock has been experienced w/ other mutable operation on an AWT Container owning a GLCanvas child, e.g. setResizable*().

Users shall make sure all mutable AWT calls are performed on the EDT, even before 1st setVisible(true) !

Definition at line 82 of file TestGLCanvasAWTActionDeadlock01AWT.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT.main ( final String  args[])
static

Definition at line 343 of file TestGLCanvasAWTActionDeadlock01AWT.java.

Here is the call graph for this function:

◆ test00NoAnimator()

void com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT.test00NoAnimator ( ) throws InterruptedException, InvocationTargetException

Definition at line 91 of file TestGLCanvasAWTActionDeadlock01AWT.java.

◆ test01Animator()

void com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT.test01Animator ( ) throws InterruptedException, InvocationTargetException

Definition at line 96 of file TestGLCanvasAWTActionDeadlock01AWT.java.

◆ test02FPSAnimator()

void com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT.test02FPSAnimator ( ) throws InterruptedException, InvocationTargetException

Definition at line 101 of file TestGLCanvasAWTActionDeadlock01AWT.java.

◆ test02FPSAnimator_RestartOnAWTEDT()

void com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT.test02FPSAnimator_RestartOnAWTEDT ( ) throws InterruptedException, InvocationTargetException

Definition at line 106 of file TestGLCanvasAWTActionDeadlock01AWT.java.


The documentation for this class was generated from the following file: