I don't know if this is the right place for this post. By the way I would like to share with you what happens very often at my Ogre Test Application.
I have troubles with the power management I think. Basically I have two problems:
PROBLEM 1: If the screen of my phone goes off while loading and initializing the render window, I don't have any scene rendered. Work around at moment: set a longer timeout in my phone power saving options. Has somebody never experienced this behavior? I still don't get if this is a bug in Ogre, in my Android life cycle handling or a bug in the Android itself.
PROBLEM 2: Once my app is properly running and rendering the scene if the screen turns off, because of power saving, if I press the HOME button to turn the screen back on I have the following errors:
Code: Select all
10-01 10:02:14.271: V/ARF_Log(5214): APP_CMD_SAVE_STATE: implement something if needed.
10-01 10:02:14.301: I/ARF_Log(5214): Activity status changed to: APP_CMD_STOP
10-01 10:02:16.196: I/ARF_Log(5214): Activity status changed to: APP_CMD_START
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/SurfaceTextureClient(5214): queueBuffer: error queuing buffer to SurfaceTexture, -19
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_queue_buffer(mali_base_ctx_type*, egl_buffer*):851 [EGL-ERROR] unable to queue buffer (0x2e5294)
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.236: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/MaliEGL(5214): void __egl_platform_dequeue_buffer(egl_surface*):1094 [EGL-ERROR] failed to dequeue buffer from native window (0x2dfbd0); err = -19, buf = 0x0
10-01 10:02:16.241: E/OGRE(5214): OGRE EXCEPTION(3:RenderingAPIException): Fail to SwapBuffers in swapBuffers at /AR-Frame/experimental/ogreAndroid/ogre_1.9/RenderSystems/GLES2/src/EGL/OgreEGLWindow.cpp (line 160)
10-01 10:02:16.256: A/libc(5214): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
Many thanks in advance.