Unity3D UCGameSDK java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE

UCGameSDK`initSDK`首??,channelId=JY_2
threadid=16: thread exiting with uncaught exception (group=0x40a561f8)
 java.lang.NullPointerException
GC_CONCURRENT freed 353K, 6% free 6686K/7111K, paused 2ms+2ms
  at cn.uc.gamesdk.d.q.h(SystemConfigCtrl.java:525)
  at cn.uc.gamesdk.d.q.d(SystemConfigCtrl.java:484)
  at cn.uc.gamesdk.d.f$1.run(InitCtrl.java:117)
  at java.lang.Thread.run(Thread.java:856)
 java.lang.Exception: java.lang.NullPointerException
  at cn.uc.gamesdk.j.a$1.uncaughtException(CommonUtil.java:66)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
 Caused by: java.lang.NullPointerException
  at cn.uc.gamesdk.d.q.h(SystemConfigCtrl.java:525)
  at cn.uc.gamesdk.d.q.d(SystemConfigCtrl.java:484)
  at cn.uc.gamesdk.d.f$1.run(InitCtrl.java:117)
  at java.lang.Thread.run(Thread.java:856)
 java.lang.Exception: java.lang.NullPointerException
  at cn.uc.gamesdk.j.a$1.uncaughtException(CommonUtil.java:67)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
 Caused by: java.lang.NullPointerException
  at cn.uc.gamesdk.d.q.h(SystemConfigCtrl.java:525)
  at cn.uc.gamesdk.d.q.d(SystemConfigCtrl.java:484)
  at cn.uc.gamesdk.d.f$1.run(InitCtrl.java:117)
  at java.lang.Thread.run(Thread.java:856)
START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x14000000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 5686
 dequeueBuffer failed, error -9
Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
 EGLNativeWindowType 0x6a2858 disconnect failed
threadid=10: thread exiting with uncaught exception (group=0x40a561f8)
java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
  at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1178)
  at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1136)
  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
 Unknown binder error code. 0xfffffff7
 Unknown binder error code. 0xfffffff7
 Unknown binder error code. 0xfffffff7
error in getService
android.os.RemoteException: Unknown binder error code. 0xfffffff7
at android.os.BinderProxy.transact(Native Method)
at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:120)
at android.os.ServiceManager.getService(ServiceManager.java:55)
at android.os.Environment.getExternalStorageState(Environment.java:453)
at cn.uc.gamesdk.j.a.a(CommonUtil.java:415)
at cn.uc.gamesdk.g.d.b(Logger.java:141)
at cn.uc.gamesdk.g.d.a(Logger.java:78)
at cn.uc.gamesdk.g.g.b(UCLog.java:111)
at cn.uc.gamesdk.g.g.a(UCLog.java:66)
at cn.uc.gamesdk.g.g.a(UCLog.java:74)
at cn.uc.gamesdk.j.a$1.uncaughtException(CommonUtil.java:66)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
Failed to find provider info for telephony
java.lang.Exception: java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
at cn.uc.gamesdk.j.a$1.uncaughtException(CommonUtil.java:66)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
Caused by: java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1178)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1136)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
 java.lang.Exception: java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
  at cn.uc.gamesdk.j.a$1.uncaughtException(CommonUtil.java:67)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
Caused by: java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_CURRENT_SURFACE
  at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1178)
  at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1136)
  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

 로그가 좀 기네요. 유니티3D 안드로이드에 중국 UCGame SDK를 연동중에 위와같이 에러가 발생했습니다. GLSurfaceView 어쩌고 하지만 기존에 GLThread와 같은 에러는 아닙니다.

 기존 다른 SDK들 연동때와 같이 비슷하게 해주면 됩니다. UCGameSDK.jar를 압축해제하면 위와같이 assets가 있습니다.

 이것을 유니티3D 안드로이드 플러그인 디렉터리에 복사해주면 됩니다.

댓글

이 블로그의 인기 게시물

라즈베리파이 라즈비안 한글 입력하기 - IBus

라즈베리파이 라즈비안 한글 깨짐 수정하기

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.