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

Changes

Summary

  1. Bug 1039 - Specify behavior of GLEventListener Exceptions occurring (details)
  2. Bug 1039 - Specify behavior of GLEventListener Exceptions occurring (details)
  3. Bug 1039: Rename GLAnimatorControl.UncaughtGLAnimatorExceptionHandler -> (details)
Commit 07a4801f3b5bfd4fba9a1a4a542ce2f2eae4396a by Sven Gothel
Bug 1039 - Specify behavior of GLEventListener Exceptions occurring while GLAutoDrawable processing [part-2]

In case of an exception thrown within an GLEventListener
called off-thread by Animator:
  - Animator shall stop
  - Animator shall forward the exception

GLDrawableHelper shall also flush all queued GLRunnable tasks
in case of an exception, so that another thread waiting until it's completion
is notified and continues processing.
The file was modified src/jogl/classes/javax/media/opengl/GLException.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLDrawableHelper.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/Animator.java (diff)
Commit 88eef9e4eae8e63762252f1d11bca2bd0fde809b by Sven Gothel
Bug 1039 - Specify behavior of GLEventListener Exceptions occurring while GLAutoDrawable processing [part-3]

Add GLAnimatorControl.UncaughtGLAnimatorExceptionHandler interface to optionally handle
uncaught exception within an animator thread by the user.

Implementation also requires to flush all enqueued GLRunnable instances
via GLAutoDrawable.invoked(..) in case such exception occurs.
Hence 'GLAutoDrawable.flushGLRunnables()' has been added.

Only subsequent exceptions, which cannot be thrown are dumped to System.stderr.

+++

Handling of exceptions during dispose()

Exception in NEWT's disposeGL*() are also caught and re-thrown after
the NEWT window has been destroyed in WindowImpl.destroyAction:

  - GLEventListener.dispose(..)
    - GLDrawableHelper.disposeAllGLEventListener(..)
      - GLDrawableHelper.disposeGL(..)
        - GLAutoDrawableBase.destroyImplInLock(..)
          - GLWindow.GLLifecycleHook.destroyActionInLock(..)
            - WindowImpl.destroyAction on NEWT-EDT
              - WindowImpl.destroy

Further more, exceptions occuring in native windowing toolkit triggered destroy()
are ignored:
  - GLAutoDrawableBase.defaultWindowDestroyNotifyOp(..)

It has to be seen whether such exception handling for
dispose() shall be added to AWT/SWT.

+++

TestGLException01NEWT covers all GLEventListener exception cases
on-thread and off-thread (via animator).

+++
The file was modified src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java (diff)
The file was modified src/newt/classes/jogamp/newt/WindowImpl.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLAnimatorControl.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLAutoDrawable.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLRunnableTask.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/Animator.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLDrawable.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLException.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLDrawableHelper.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java (diff)
The file was modified make/scripts/tests.sh (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/awt/GLCanvas.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLException01NEWT.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/awt/GLJPanel.java (diff)
Commit 5c1214b26ad6c877a9c0f8099a7fc2a230a8b245 by Sven Gothel
Bug 1039: Rename GLAnimatorControl.UncaughtGLAnimatorExceptionHandler -> GLAnimatorControl.UncaughtExceptionHandler
The file was modified src/jogl/classes/javax/media/opengl/GLAnimatorControl.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java (diff)
The file was modified src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLException01NEWT.java (diff)