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

Test to check if interrupt on AWT-EventQueue causes a malfunction in JOGL. More...

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

Classes

class  InterruptableGLEL
 
class  InterruptableLoop
 
class  InterruptingComponent
 
class  OurUncaughtExceptionHandler
 

Public Member Functions

void test01_NoGL () throws InterruptedException, InvocationTargetException
 
void test02_WithGL () 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

Test to check if interrupt on AWT-EventQueue causes a malfunction in JOGL.

After tests are displaying an ever color rotating rectangle in an AWT component alone and with an additional GearsES2 within a GLCanvas.

The AWT component is issuing an interrupt during paint on the AWT-EDT.

The reporter claims that an interrupt on the AWT-EDT shall not disturb neither AWT nor JOGL's GLCanvas and rendering shall continue.

  • This seems to be true for JRE 1.8.0_60
  • This seems to be false for JRE 1.7.0_45. This JRE's AWT-EDT even dies occasionally when interrupted.

The test passes on GNU/Linux and Windows using JRE 1.8.0_60.

Definition at line 86 of file TestBug1225EventQueueInterruptedAWT.java.

Member Function Documentation

◆ main()

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

Definition at line 369 of file TestBug1225EventQueueInterruptedAWT.java.

Here is the call graph for this function:

◆ test01_NoGL()

void com.jogamp.opengl.test.junit.jogl.awt.TestBug1225EventQueueInterruptedAWT.test01_NoGL ( ) throws InterruptedException, InvocationTargetException

Definition at line 106 of file TestBug1225EventQueueInterruptedAWT.java.

◆ test02_WithGL()

void com.jogamp.opengl.test.junit.jogl.awt.TestBug1225EventQueueInterruptedAWT.test02_WithGL ( ) throws InterruptedException, InvocationTargetException

Definition at line 111 of file TestBug1225EventQueueInterruptedAWT.java.


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