playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Crash after login, maybe while populating achievements (v0.9.36) #1572

Open hytka81 opened 7 years ago

hytka81 commented 7 years ago

Hey!

I'm using Google Play Services plugin for Unity v0.9.36, Google Mobile Ads plugin for Unity v3.1.3 and Unity 5.5.0p4 (just updated to 5.5.1f1 today and this same crash still seems to happen). Both of them have Jar resolvers but slightly different versions so I have just deleted the "older" ones that came with mobile ads. Build is successful but I get occasional crashes on my Samsung Galaxy S7 after the game has just started and sign-in to the Google Play services has been done.

This crash started to appear after I started to use IL2CPP script backend and I switched from Mono because it seemed to solve post-application-exit crash that I got almost every time couple of seconds after the app was closed. This was described in some other Unity/GPS thread.

Based on what I have been able to gather from logcat it seems to be related to Google Play Services and maybe it has something to do with populating the achievements. The crash does not happen every time and when it happens the game is "paused" (like something blocking the main thread) from the beginning and then crashes.

01-25 19:26:37.431 6274 6290 I Unity : (Filename: ./artifacts/generated/Android/runtime/DebugBindings.gen.cpp Line: 51) 01-25 19:26:37.431 6274 6290 I Unity : 01-25 19:26:37.931 6274 6290 I Unity : [Play Games Plugin DLL] 01/25/17 19:26:37 +02:00 DEBUG: Entering internal callback for AchievementManager#InternalFetchAllCallback 01-25 19:26:37.931 6274 6290 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) 01-25 19:26:37.931 6274 6290 I Unity : UnityEngine.Logger:Log(LogType, Object) 01-25 19:26:37.931 6274 6290 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() 01-25 19:26:37.931 6274 6290 I Unity : 01-25 19:26:37.931 6274 6290 I Unity : (Filename: ./artifacts/generated/Android/runtime/DebugBindings.gen.cpp Line: 51) 01-25 19:26:37.931 6274 6290 I Unity : 01-25 19:26:37.961 6274 6290 I Unity : [Play Games Plugin DLL] 01/25/17 19:26:37 +02:00 DEBUG: Populating Achievements, status = VALID 01-25 19:26:37.961 6274 6290 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) 01-25 19:26:37.961 6274 6290 I Unity : UnityEngine.Logger:Log(LogType, Object) 01-25 19:26:37.961 6274 6290 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() 01-25 19:26:37.961 6274 6290 I Unity : 01-25 19:26:37.961 6274 6290 I Unity : (Filename: ./artifacts/generated/Android/runtime/DebugBindings.gen.cpp Line: 51) 01-25 19:26:37.961 6274 6290 I Unity : 01-25 19:26:38.171 3165 3165 F DEBUG : 01-25 19:26:38.171 3165 3165 F DEBUG : Build fingerprint: 'samsung/heroltexx/herolte:6.0.1/MMB29K/G930FXXU1BPLB:user/release-keys' 01-25 19:26:38.171 3165 3165 F DEBUG : Revision: '8' 01-25 19:26:38.171 3165 3165 F DEBUG : ABI: 'arm' 01-25 19:26:38.171 3165 3165 F DEBUG : pid: 6274, tid: 6442, name: callback_queue >>> com.bittinikkari.javelin <<< 01-25 19:26:38.171 3165 3165 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xcd162000 01-25 19:26:38.191 3165 3165 F DEBUG : r0 c0bbf71c r1 cd162000 r2 c0bbf71c r3 00000000 01-25 19:26:38.191 3165 3165 F DEBUG : r4 cce39018 r5 cd162000 r6 fca02400 r7 0000597c 01-25 19:26:38.191 3165 3165 F DEBUG : r8 00000013 r9 00000000 sl 00000000 fp c0bbf6f0 01-25 19:26:38.191 3165 3165 F DEBUG : ip ffffff70 sp c0bbf6e0 lr dbe86244 pc dbe85700 cpsr 200e0010 01-25 19:26:38.201 3165 3165 F DEBUG : 01-25 19:26:38.201 3165 3165 F DEBUG : backtrace: 01-25 19:26:38.201 3165 3165 F DEBUG : #00 pc 00c55700 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #01 pc 00c5566c /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #02 pc 00c468ac /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #03 pc 0090864c /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #04 pc 00889e3c /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #05 pc 007beb24 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #06 pc 00a77708 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #07 pc 00bcbe40 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #08 pc 008805e0 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #09 pc 0088040c /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #10 pc 00880920 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libil2cpp.so 01-25 19:26:38.201 3165 3165 F DEBUG : #11 pc 000c88cd /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libgpg.so 01-25 19:26:38.201 3165 3165 F DEBUG : #12 pc 0005167d /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libgpg.so (ZNKSt8functionIFvRKN3gpg18AchievementManager16FetchAllResponseEEEclES4+12) 01-25 19:26:38.201 3165 3165 F DEBUG : #13 pc 0009efbd /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libgpg.so 01-25 19:26:38.201 3165 3165 F DEBUG : #14 pc 00056e11 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libgpg.so 01-25 19:26:38.201 3165 3165 F DEBUG : #15 pc 000f3123 /mnt/asec/com.bittinikkari.javelin-137/lib/arm/libgpg.so 01-25 19:26:38.201 3165 3165 F DEBUG : #16 pc 0003fc63 /system/lib/libc.so (_ZL15__pthread_startPv+30) 01-25 19:26:38.201 3165 3165 F DEBUG : #17 pc 0001a39b /system/lib/libc.so (__start_thread+6) 01-25 19:26:39.351 3165 3165 F DEBUG : 01-25 19:26:39.351 3165 3165 F DEBUG : Tombstone written to: /data/tombstones/tombstone_02 01-25 19:26:39.351 3165 3165 E DEBUG : AM write failed: Broken pipe 01-25 19:26:39.351 3509 6481 W ActivityManager: Force finishing activity com.bittinikkari.javelin/com.unity3d.player.UnityPlayerActivity 01-25 19:26:39.611 3509 3879 I ActivityManager: Process com.bittinikkari.javelin (pid 6274)(adj 0) has died(292,1205) 01-25 19:26:39.611 3509 3879 D ActivityManager: cleanUpApplicationRecord -- 6274 01-25 19:26:39.621 3509 3879 D ActivityManager: isAutoRunBlockedApp:: com.bittinikkari.javelin, Auto Run ON 01-25 19:26:39.631 3509 3879 D ActivityManager: mDVFSHelper.acquire() 01-25 19:26:39.651 3509 3879 D ActivityManager: Launching com.samsung.android.game.gamehome, updated priority 01-25 19:26:39.681 3509 3879 I ActivityManager: Config changes=480 {0 1.0 themeSeq = 0 showBtnBg = 0 244mcc91mnc en_US ldltr sw360dp w360dp h616dp 640dpi nrml long port finger -keyb/v/h -nav/h mkbd/h s.226} 01-25 19:26:39.941 3509 3886 D ActivityManager: post active user change for 0 fullscreen true isFloatingActivity() false isHomeActivity() false 01-25 19:26:40.011 3509 3630 D ActivityManager: mDVFSHelper.release() 01-25 19:27:39.571 3509 3604 I ActivityManager: Start proc 6505:com.supercell.clashofclans/u0a171 for broadcast-3 com.supercell.clashofclans/.TimeAlarm 01-25 19:27:39.621 3509 3997 I ActivityManager: DSS on for com.supercell.clashofclans and scale is 0.5 01-25 19:27:39.921 3509 3884 I ActivityManager: Process com.samsung.android.game.gametools (pid 5939)(adj 0) has died(241,1215) 01-25 19:27:39.921 3509 3884 D ActivityManager: cleanUpApplicationRecord -- 5939 01-25 19:27:39.931 3509 3884 D ActivityManager: isAutoRunBlockedApp:: com.samsung.android.game.gametools, Auto Run ON

Thank you! -Kalle

qbit86 commented 7 years ago

Any news on this? I have similar issue, backtrace contains ZNKSt8functionIFvRKN3gpg18AchievementManager16FetchAllResponseEEEclES4:

signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb88a8000
...
10-25 15:46:38.441: A/DEBUG(4902):     ip e9223888  sp b83f8670  lr c688179c  pc c6880c58  cpsr 200b0010
10-25 15:46:38.446: A/DEBUG(4902): backtrace:
10-25 15:46:38.446: A/DEBUG(4902):     #00 pc 01e19c58  /data/app/com.pixel.gun3d-1/lib/arm/libil2cpp.so
...
10-25 15:46:38.446: A/DEBUG(4902):     #13 pc 0005167d  /data/app/com.pixel.gun3d-1/lib/arm/libgpg.so (_ZNKSt8functionIFvRKN3gpg18AchievementManager16FetchAllResponseEEEclES4_+12)
10-25 15:46:38.446: A/DEBUG(4902):     #14 pc 0009efbd  /data/app/com.pixel.gun3d-1/lib/arm/libgpg.so
adbourdages commented 7 years ago

Running into the same problem apparently. In addition to the FetchAllResponse sigsegv, I also get one in

/data/app/com.greencod.pinballdeluxereloaded-1/lib/arm/libgpg.so (ZNKSt8functionIFvRKN3gpg27TurnBasedMultiplayerManager24TurnBasedMatchesResponseEEEclES4+12)

Like the OP said, this doesn't happen every start, more like half the time. It goes away if I switch to Mono2x as the backend.

adbourdages commented 7 years ago

This could be related to issue 1396 (https://github.com/playgameservices/play-games-plugin-for-unity/issues/1396), but changing the logging levels has no effect at this point