I am trying to port our game to android platform. We are using Ogre 1.9.0 final. Since there is no interface to launch IME for softkeypad so I have to use JNI to launch InputMethodManager for the user to input username. It can popup the android UI but the ogre native activity will crash due SwapBuffers error: SwapBuffers() dequeue native buffer fail: No such device.
The android platform target is 10.
Can anyone tell me how to fix it? Any workaround?
Many thanks in advance.
-Shawn
The followings are the log:
Code: Select all
I/OGRE(25928): click on editbox, popup IME
I/OGRE(25928): GetInput
I/OGRE(25928): g_JavaVM->AttachCurrentThread
I/OGRE(25928): g_JavaVM->AttachCurrentThread return 0
I/OGRE(25928): g_JavaVM->GetEnv
I/OGRE(25928): g_JavaVM->GetEnv return 0
E/NativeActivity(25928): channel '414c20e8 net.gooody.www/android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
E/NativeActivity(25928): channel '414c20e8 net.gooody.www/android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
E/NativeActivity(25928): channel '414c20e8 net.gooody.www/android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
E/NativeActivity(25928): channel '414c20e8 net.gooody.www/android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
I/Ogre(25928): APP_CMD_LOST_FOCUS
I/OGRE(25928): mouseReleased:152
E/NativeActivity(25928): channel '414c20e8 net.gooody.www/android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
D/memalloc(25928): /dev/pmem: Mapped buffer base:0x5eac6000 size:6819840 offset:4730880 fd:100
D/OpenGLRenderer(25928): Enabling debug mode 0
D/memalloc(25928): /dev/pmem: Mapped buffer base:0x5f147000 size:8908800 offset:6819840 fd:103
E/SurfaceTextureClient(25928): queueBuffer: error queuing buffer to SurfaceTexture, -19
E/Adreno200-EGLSUB(25928): SwapBuffers() dequeue native buffer fail: No such device
E/Adreno200-EGLSUB(25928): GetSurfaceSize() dequeue native buffer failed: No such device.
E/Adreno200-EGLSUB(25928): GetSurfaceSize() dequeue native buffer failed: No such device.
E/Adreno200-EGL(25928): <eglSurfaceResize:4020>: EGL_BAD_ALLOC
E/OGRE(25928): OGRE EXCEPTION(3:RenderingAPIException): Fail to SwapBuffers in swapBuffers at ..\..\..\RenderSystems\GLES2\src\EGL\OgreEGLWindow.cpp (line 161)
A/libc(25928): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)