Login  Register

Crash with Animator class

Posted by adi on Mar 08, 2017; 11:18am
URL: https://forum.jogamp.org/Crash-with-Animator-class-tp4037748.html

Hello

I'm write a little application that copies a sprite from a map from GPU-memory in a png file.
Sometimes if the sprite has the size from the map, e.g. 1000x663
i a got this Exception from jogl:

finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): ++++++ timeout reached ++++++ main-Display-.windows_nil-1-EDT-1
finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): OK false- pollPeriod 8, blocking true -> res false, waited 1000/1000 - main-Display-.windows_nil-1-EDT-1
 - com.jogamp.opengl.util.FPSAnimator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 0, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-FPSAWTAnimator#00-Timer0,5,main], exclCtxThread false(null)]
    [2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(AnimatorBase.java:633)
    [3]: com.jogamp.opengl.util.FPSAnimator.stop(FPSAnimator.java:326)
    [4]: com.lib.jengine.utils.ReadingFromScreenTexture.display(ReadingFromScreenTexture.java:163)
    [5]: jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    [6]: jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    [7]: jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    [8]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    [9]: jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    [10]: com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    [11]: jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawableBase.java:215)
    [12]: com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
    [13]: com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
    [14]: jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4401)
    [15]: jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:3372)
    [16]: jogamp.newt.WindowImpl.doEvent(WindowImpl.java:3318)
    [17]: jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:4715)
    [18]: jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(Native Method)
    [19]: jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:124)
    [20]: jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:753)
    [21]: jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:672)
    [22]: jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:347)

Synchronising problems or DMA problems from framebuffer copiing a big map?
Or must i set my jogl FPSAnimator in another way?

Normaly,in a standalone application for copiing only a sprite its not a problem,
the next try then does the job, but using this (e.g. make a screenshot)
in another running environment, can be a problem.