Crash on Motorola Xoom

I’ve created an application using the create-android-project.sh provided and am having some trouble getting it running on a Xoom. The application launches just fine and displays the HelloWorld scene for a few seconds then crashes. This same application runs great on the Droid-X I am also testing with.

When the application crashes it outputs the following to Logcat:

05-10 17:57:00.090: ERROR/InputDispatcher(117): channel '40c6e360 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid (server)' ~ Consumer closed input channel or an error occurred. events=0x8 05-10 17:57:00.090: ERROR/InputDispatcher(117): channel '40c6e360 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid (server)' ~ Channel is unrecoverably broken and will be disposed! java.lang.IllegalArgumentException: Requested window android.os.BinderProxy40848608 does not exist
at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:9423)
at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:9414)
at com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:8153)
at android.os.BinderProxy.sendDeathNotice(Binder.java:385)
at dalvik.system.NativeStart.run(Native Method)
@

Is there something i can do to fix this?

Thanks!

Oh, it is great to hear that, cocos2d-x can run on Xoom. I think the error happened with InputDispatcher, which is added to capture the input. It is not stable now. I suggest you download the release version, not from git.

Actually I am using the release version.
cocos2d-0.99.5-x-0.8.2

The crash happens with absolutely zero input from the user.

Here is some more Logcat info:

05-10 18:33:25.190: ERROR/InputDispatcher(117): channel '40ebcaa0 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid (server)' ~ Consumer closed input channel or an error occurred. events=0x8 05-10 18:33:25.190: ERROR/InputDispatcher(117): channel '40ebcaa0 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid (server)' ~ Channel is unrecoverably broken and will be disposed! 05-10 18:33:25.190: INFO/ActivityManager(117): Process org.cocos2dx.application (pid 11161) has died. 05-10 18:33:25.190: INFO/WindowManager(117): WINDOW DIED Window{40ebcaa0 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid paused=false} 05-10 18:33:25.190: WARN/WindowManager(117): Force-removing child win Window{410a8c28 SurfaceView paused=false} from container Window{40ebcaa0 org.cocos2dx.application/org.cocos2dx.application.MMMGameAndroid paused=false} 05-10 18:33:25.200: DEBUG/gralloc(117): Attempting to delete a locked buffer! 05-10 18:33:25.200: DEBUG/gralloc(117): Buffer 103 locks: (tid = 11174 (x1), usage = 0x200)

I am sorry. I have no idea. I have searched this question, it seems that it is a known bug.
I don’t have Xoom, so I can not debug on it.

BTW, cocos2d-x have not tested on 3.0, so I don’t know if it can run on it without any modification. I will test it as soon as I get Xoom.