Crash in TappyChicken and any game using 4.4.2 android version

Hi,

I have posted in answershub this question Crash tappy chicken on some devices - Mobile - Unreal Engine Forums

but, as usual it does not get any attention.

I have found an issue with TappyChicken and my own game using any UI provided by GooglePlayServices. It crashes badly. The crash are “random” but occurs quite often.

Repro scenario:

  • have a 4.4.2 android device (all the platform test I have tried had mali gpu)
  • click on leaderboard, close the external UI and the game crashes

This does not happens always. But it happens quite a lot in 4.4.2 devices.

I have implemented interstitials ads using admob and it also crashes when the ad is closed.

I do not know what to do … the logcat does not bring any light. Examples:


02-15 19:28:44.591  3556  4454 D dalvikvm: threadid=15: bye!
02-15 19:28:44.595   158   158 I GLConsumer: [com.google.android.gms/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardScoreActivity](this:0xb822bf60,api:0) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
02-15 19:28:44.595   158   158 D GLConsumer:     GraphicBuffer: gb=0xb822a848 handle=0xb8216770 fmt=1
02-15 19:28:44.595   158   158 D GLConsumer:     EGLImage: dpy=0x1, img=0x1000000d
02-15 19:28:44.599  3556  3556 D GraphicBuffer: close handle(0x632927b8) (w:768 h:768 f:1)
02-15 19:28:44.605   161   474 D AudioMTKStreamOut: AudioMTKStreamOut::write (-) 8192 latency_in_s,0.000849,0.000261,0.022087
02-15 19:28:44.606   161   474 D AudioMTKMixer: setDRCHandler, mUIDRCEnable 1, mpDRCObj 0xb82a2ff8, mStreamType 3, device 2, mDRCState 1, mSteroToMono 1, this 0xb828bf90
02-15 19:28:44.606   161   474 D AudioMTKMixer: DC_REMOVE 1
02-15 19:28:44.606   161   474 V AudioTrackShared: mAvailToClient=1024 stepCount=1024 minimum=1024
02-15 19:28:44.606   161   474 D AudioMTKMixer: Do DRC and volume control
02-15 19:28:44.606   161   474 D AudioFlinger: has fast mixer 0, count 1024
02-15 19:28:44.606   161   474 D AudioMTKStreamOut: write(), buffer = 0xb8283e88 bytes = 8192 mLatency = 23
02-15 19:28:44.606   161   474 D AudioMTKStreamOut: +AUDDRV_GET_DL1_REMAINDATA_TIME
02-15 19:28:44.606   161   474 D AudioMTKStreamOut: -AUDDRV_GET_DL1_REMAINDATA_TIME
02-15 19:28:44.610  3556  3556 W GmsClientEvents: unregisterConnectionCallbacks(): listener LeaderboardScoreFragment{41e0fbf0 #0 id=0x7f0f0252} not found
02-15 19:28:44.611  3556  3556 W GmsClientEvents: unregisterConnectionFailedListener(): listener LeaderboardScoreFragment{41e0fbf0 #0 id=0x7f0f0252} not found
02-15 19:28:44.613   158   158 I GLConsumer: [com.google.android.gms/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardScoreActivity](this:0xb822bf60,api:0) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
02-15 19:28:44.613   158   158 D GLConsumer:     GraphicBuffer: gb=0xb822a848 handle=0xb8216770 fmt=1
02-15 19:28:44.613   158   158 D GLConsumer:     EGLImage: dpy=0x1, img=0x1000000d
02-15 19:28:44.627  3556  3556 D ActivityThread: ACT-DESTROY_ACTIVITY handled : 1 / android.os.BinderProxy@42017f98
02-15 19:28:44.629   161   474 D AudioMTKStreamOut: AudioMTKStreamOut::write (-) 8192 latency_in_s,0.000821,0.000223,0.022190
02-15 19:28:44.632   158   158 I GLConsumer: [com.google.android.gms/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardScoreActivity](this:0xb822bf60,api:0) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
02-15 19:28:44.632   158   158 D GLConsumer:     GraphicBuffer: gb=0xb822a848 handle=0xb8216770 fmt=1
02-15 19:28:44.632   158   158 D GLConsumer:     EGLImage: dpy=0x1, img=0x1000000d
02-15 19:28:44.650   158   158 I GLConsumer: [com.google.android.gms/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardScoreActivity](this:0xb822bf60,api:0) [void* android::GLConsumer::createImage(EGLDisplay, const android::sp<android::GraphicBuffer>&, const android::Rect&)]
02-15 19:28:44.650   158   158 D GLConsumer:     GraphicBuffer: gb=0xb822a848 handle=0xb8216770 fmt=1
02-15 19:28:44.650   158   158 D GLConsumer:     EGLImage: dpy=0x1, img=0x1000000d
02-15 19:28:44.652   161   474 D AudioFlinger: threadLoop_sleepTime write muted data to hw
02-15 19:28:44.652   161   474 D AudioFlinger: has fast mixer 0, count 1024
02-15 19:28:44.652   161   474 D AudioMTKStreamOut: write(), buffer = 0xb8283e88 bytes = 8192 mLatency = 23
02-15 19:28:44.652   161   474 D AudioMTKStreamOut: +AUDDRV_GET_DL1_REMAINDATA_TIME
02-15 19:28:44.652   161   474 D AudioMTKStreamOut: -AUDDRV_GET_DL1_REMAINDATA_TIME
02-15 19:28:44.653   161   474 D AudioMTKStreamOut: AudioMTKStreamOut::write (-) 8192 latency_in_s,0.023492,0.000215,0.000176
02-15 19:28:44.653   699   843 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x652c6f10
02-15 19:28:44.653   699   944 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x69c5ac28
02-15 19:28:44.653   699   901 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x664b0558
02-15 19:28:44.653   699   711 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x680b23f8
02-15 19:28:44.653   699   710 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x664a9f70
02-15 19:28:44.654   699   944 D IPCThreadState: [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x69c5ac28
02-15 19:28:44.654   699   944 D IPCThreadState: [DN #5] BR_DEAD_BINDER cookie 0x6643eba8
02-15 19:28:44.654   699   843 I ActivityManager: Process com.mukagames.savetheprincess (pid 4285) has died.

ex2:


02-15 19:23:33.859: D/PowerManagerService(699): updateUserActivitySummaryLocked: mWakefulness=Awake, mUserActivitySummary=0x1, nextTimeout=2943011 (in 52992 ms)
02-15 19:23:33.859: D/PowerManagerService(699): newScreenState = 2
02-15 19:23:33.859: D/PowerManagerDisplayController(699): requestPowerState: screenState=2, useProximitySensor=false, forceProximitySensorEnable=false, forceWakeUpEnable=false, screenBrightness=200, screenAutoBrightnessAdjustment=0.0, useAutoBrightness=false, useEcoBrightness=false, blockScreenOn=false, waitForNegativeProximity=false
02-15 19:23:33.859: I/PowerManagerService(699): setBrightness mButtonLight, screenBrightness 0:
02-15 19:23:33.859: D/PowerManagerService(699): updateScreenStateLocked: mDisplayReady=true, newScreenState=2, mWakefulness=1, mWakeLockSummary=0x1, mUserActivitySummary=0x1, mBootCompleted=true
02-15 19:23:33.859: D/OpenGLRenderer(829): clear (0.00, 75 - 75.00 = 0.00, 1080.00 - 0.00 = 1080.00, 75.00 - 0.00 = 75.00) opaque 0 <0x61000938>
02-15 19:23:33.859: D/PowerManagerService(699): handleSandman: canDream=true, mWakefulness=Awake
02-15 19:23:33.860: D/OpenGLRenderer(829): finish <0x61000938>
02-15 19:23:33.860: V/WindowManager(699): Changing focus from Window{423a15a8 u0 com.mukagames.savetheprincess/com.epicgames.ue4.GameActivity} to null Callers=com.android.server.wm.WindowManagerService.removeWindowLocked:2827 com.android.server.wm.WindowState$DeathRecipient.binderDied:1063 android.os.BinderProxy.sendDeathNotice:496 dalvik.system.NativeStart.run:-2 
02-15 19:23:33.861: D/IPCThreadState(699): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x63c64188
02-15 19:23:33.861: I/BufferQueue(158): [StatusBar](this:0xb8215840,id:5,api:1,p:829,c:158) [queue] fps:1.64, dur:1826.91, max:1126.38, min:30.36
02-15 19:23:33.862: W/WindowManager(699): Failed looking up window
02-15 19:23:33.862: W/WindowManager(699): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@42502d70 does not exist
02-15 19:23:33.862: W/WindowManager(699): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8644)
02-15 19:23:33.862: W/WindowManager(699): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8635)
02-15 19:23:33.862: W/WindowManager(699): 	at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1060)
02-15 19:23:33.862: W/WindowManager(699): 	at android.os.BinderProxy.sendDeathNotice(Binder.java:496)
02-15 19:23:33.862: W/WindowManager(699): 	at dalvik.system.NativeStart.run(Native Method)
02-15 19:23:33.862: I/WindowState(699): WIN DEATH: null
02-15 19:23:33.862: D/IPCThreadState(699): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x68a4b290
02-15 19:23:33.862: D/IPCThreadState(699): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x664a96a8
02-15 19:23:33.862: V/WindowAnimator(699): No window is displayed, unset the SET_ORIENTATION_CHANGE_COMPLETE flag
02-15 19:23:33.862: I/WindowManager(699): Losing focus: Window{423a15a8 u0 com.mukagames.savetheprincess/com.epicgames.ue4.GameActivity}
02-15 19:23:33.863: D/InputReader(699): InputReader:: getSwitchState lock 
02-15 19:23:33.863: D/InputReader(699): InputReader::getStateLocked:: return 
02-15 19:23:33.863: D/AudioMTKStreamOut(161): AudioMTKStreamOut::write (-) 8192 latency_in_s,0.012809,0.000193,0.009812
02-15 19:23:33.867: I/ActivityManager(699): Process com.mukagames.savetheprincess (pid 3353) has died.