playgameservices / play-games-plugin-for-unity

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

Native crash #2314

Open m-ronchi opened 6 years ago

m-ronchi commented 6 years ago

Hi, I am trying to integrate GPGS in my game, I only need leaderboards.

problem is, whenever I try to do anything (i.e. authenticate), my app crashes natively inside libgpg.so with this message:

10-02 19:25:08.524 17296-17821/com.WhatWapp.Solitaire A/libc: /usr/local/google/buildbot/src/android/ndk-release-r16/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "cannot create thread specific key for __cxa_get_globals()" failed

full logcat around the crash: GPG Crash log.txt

I am calling PlayGamesPlatform.Activate() at startup (default config), the crash happens when I try to authenticate when I press a button with Social.localUser.Authenticate(...)

I am using Unity 2018.2.10f1 and cannot downgrade Unity

giamendola commented 6 years ago

Hey m-ronchi,

I was getting a game crash, this helped me:

Open AndroidManifest.xml found in GooglePlayGames/Plugins/Android/GooglePlayGamesManifest.plugin and replace the id of " with "\u003". Worked for me on 2018.2.11f1.

Before:

android:name="com.google.android.gms.games.APP_ID" android:value="\ 12345678901" />

After:

android:name="com.google.android.gms.games.APP_ID" android:value="\u00312345678901" />

m-ronchi commented 6 years ago

Hi, I did the same thing but the crash didn't disappear.

what "fixed" it (temporarily) was exporting the whole project to a .unitypackage, creating a new project and importing it again. (I checked with git, both /Assets and /ProjectSettings are identical) then it reappeared when I updated the jar resolver until I deleted /Library.

it seems pretty random.