Unity appliation, play-games, firebase occasional crash (JNI ERROR)

188 views
Skip to first unread message

nguyena...@gmail.com

unread,
Aug 20, 2018, 1:45:15 PM8/20/18
to Firebase Google Group
sorry, i used firebase and got a nasty error I tried to solve a week, google everywhere but still no results I simply use Auth, Database and Messaging, I also use https://github.com/playgameservices/play-games-plugin-for-unity to Authentication, smooth things, But sometimes it crashed, I used logcat to debug this is an error

I/dalvikvm: JNI ERROR (app bug): accessed deleted global reference 0x1d600a6e
E/dalvikvm: VM aborting
E/CRASH: signal 6 (SIGABRT), code -6 (?), fault addr --------
E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E/CRASH: Build fingerprint: 'samsung/greatqltecs/greatqltecs:4.4.2/NMF26X/381180615:user/release-keys'
E/CRASH: Revision: '0'
E/CRASH: pid: 6121, tid: 6140, name: UnityMain  >>> com.supermassy.mmatest <<<
E/CRASH:     eax 00000000  ebx 000017e9  ecx 000017fc  edx 00000006
E/CRASH:     esi 000017fc  edi 00000016
E/CRASH:     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
E/CRASH:     eip b77060d6  ebp b776fce0  esp 7d91cb70  flags 00200207
E/CRASH: backtrace:
E/CRASH:     #00  pc 0003c0d6  /system/lib/libc.so (tgkill+22)
E/CRASH:     #01  il 00000012  at (wrapper managed-to-native) Firebase.Auth.AuthUtilPINVOKE.FirebaseUser_UserId_get (System.Runtime.InteropServices.HandleRef) <0x00012>
E/CRASH:     #02  il 0000002b  at Firebase.Auth.FirebaseUser.get_UserId () [0x00000] in <827ba7db94e449ae870876e6db1d6750>:0
E/CRASH:     #03  il 00000053  at GameNetWork.Database.LoadByUser (string[],System.Action`2<Firebase.Database.DataSnapshot, bool>,string) [0x00022] in <3ab2ad56e99042a489859eb06279f890>:0
E/CRASH:     #04  il 000000bf  at CoreGame.GameTime/<FirebaseNow>c__AnonStorey2.<>m__0 (bool) [0x0000b] in <3ab2ad56e99042a489859eb06279f890>:0
E/CRASH:     #05  il 00000390  at GameNetWork.Database/<Save>c__async0.MoveNext () [0x001af] in <3ab2ad56e99042a489859eb06279f890>:0
E/CRASH:     #06  il 00000066  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in <f826c2584fc94ec19a48a6576640bdc5>:0
E/CRASH:     #07  il 00000162  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <f826c2584fc94ec19a48a6576640bdc5>:0
E/CRASH:     #08  il 00000027  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <f826c2584fc94ec19a48a6576640bdc5>:0
E/CRASH:     #09  il 00000083  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x00024] in <f826c2584fc94ec19a48a6576640bdc5>:0
E/CRASH:     #10  il 00000039  at IEnumeratorAwaitExtensions.RunOnUnityScheduler (System.Action) [0x0001c] in <5402e90fae60436b9731f58d94a514bb>:0
E/CRASH:     #11  il 00000037  at IEnumeratorAwaitExtensions/SimpleCoroutineAwaiter.Complete (System.Exception) [0x00027] in <5402e90fae60436b9731f58d94a514bb>:0
E/CRASH:     #12  il 0000005f  at IEnumeratorAwaitExtensions/InstructionWrappers/<ReturnVoid>c__Iterator0.MoveNext () [0x00041] in <5402e90fae60436b9731f58d94a514bb>:0
E/CRASH:     #13  il 0000002c  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator,intptr) [0x00027] in <1a1e3e53990049ae8b8c3217d4c1a625>:0
E/CRASH:     #14  il 00000060  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object_intptr (object,intptr,intptr,intptr) <0x00060>

I tried google lot, reinstalled different versions of unity, reinstalled java, tried different versions of firebase sdk, but still bug, error does not occur often so i have to try again 20 times The error can reappear. I do not know what to do anymore :(

Gustavo Bogarín

unread,
Aug 24, 2018, 11:11:55 PM8/24/18
to Firebase Google Group
I'm having the exact same error on unity sdk 5.2.1, it seems to be random but it completely freezes the app.

usiel soto502

unread,
Aug 25, 2018, 10:46:21 AM8/25/18
to fireba...@googlegroups.com
If I also miss the error that is happening

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c371ddab-1427-4bfb-9bf6-70da7be6ecd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jon Simantov

unread,
Aug 27, 2018, 3:52:28 PM8/27/18
to Firebase Google Group
Hi Gustavo,

We are investigating this. Are you also using Auth and Database with the Play Games Unity plugin?

Jon

Gustavo Bogarín

unread,
Aug 28, 2018, 12:48:44 PM8/28/18
to Firebase Google Group
I'm only using the Firebase SDK.
// We use this to login.
FirebaseAuth.DefaultInstance.SignInWithCustomTokenAsync(token).ContinueWith((loginTask) =>...

// We use this for logout, but the crash occurs even if this code is not executed.
FirebaseAuth.DefaultInstance.SignOut();

But another member of the team is in fact using the Play Games Unity plugin, and this is how the authentication is done in his code.
PlayGamesPlatform.Instance.GetServerAuthCode();

That part of the code is not yet on the master branch and the crash stopped after I removed the first two calls, if that info helps you, thank you.
Reply all
Reply to author
Forward
0 new messages