Unity Editor - Sign In Anonymously - keeps crashing

203 views
Skip to first unread message

Ian Lipták

unread,
Apr 25, 2017, 9:35:02 AM4/25/17
to Firebase Google Group
firebase auth test app keeps crashing every second time I try to sign in anonymously as you can see in appended video.
Does anybody have the same problem? It is really annoying..

platform specifications:
- windows 7
- unity 5.5.2f1
- firebase 3.0.1
- google play services 10.2.0


error log:

Unity Editor [version: Unity 5.5.2f1_3829d7f588f3]

Unknown caused an Access Violation (0xc0000005)
  in module Unknown at 0033:21127a70.

Error occurred at 2017-04-25_150734.
C:\Program Files\Unity\Editor\Unity.exe, run by .
30% memory in use.
8155 MB physical memory [5680 MB free].
16307 MB paging file [13442 MB free].
8388608 MB user address space [8387092 MB free].
Write to location 21127a70 caused an access violation.

2017-04-25_14h53_08.mp4

Stewart Miles

unread,
Apr 25, 2017, 5:10:14 PM4/25/17
to fireba...@googlegroups.com
We haven't seen this before.  Any chance you could share the complete crash log?  Our mock implementation on Windows really doesn't do very much so it makes me wonder whether it's anything to do with whether Unity is trying to reload the Windows DLL.

Cheers,
Stewart

--
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-talk+unsubscribe@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/225f08cc-26bb-4dfb-9708-ea34779d4706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian Lipták

unread,
Apr 27, 2017, 9:48:55 AM4/27/17
to Firebase Google Group
Hi Stewart,
we have 3 computers with windows 10 and there is about 20% chance of crash when sign in anonymously on second run. And 2 computers with windows7 and there is like 98% chance of crash  when sign in anonymously on second run. (The faster you sign in repeatly the higher chance of crash). I think there is problem with threads in unity because SignIn function is implemented as Task in System.Threading.Tasks and unity  API is not thread safe..

You can see error log file from that testing at the attachment..

I have sent the crash report also to unity, You can check the status of report at the following URL:
https://fogbugz.unity3d.com/default.asp?904982_rn6mhkkrie4jterp.

Thank you for your help.
--jl


Dňa utorok, 25. apríla 2017 23:10:14 UTC+2 Stewart Miles napísal(-a):
We haven't seen this before.  Any chance you could share the complete crash log?  Our mock implementation on Windows really doesn't do very much so it makes me wonder whether it's anything to do with whether Unity is trying to reload the Windows DLL.

Cheers,
Stewart
On Tue, Apr 25, 2017 at 6:10 AM, Ian Lipták <ianl...@gmail.com> wrote:
firebase auth test app keeps crashing every second time I try to sign in anonymously as you can see in appended video.
Does anybody have the same problem? It is really annoying..

platform specifications:
- windows 7
- unity 5.5.2f1
- firebase 3.0.1
- google play services 10.2.0


error log:

Unity Editor [version: Unity 5.5.2f1_3829d7f588f3]

Unknown caused an Access Violation (0xc0000005)
  in module Unknown at 0033:21127a70.

Error occurred at 2017-04-25_150734.
C:\Program Files\Unity\Editor\Unity.exe, run by .
30% memory in use.
8155 MB physical memory [5680 MB free].
16307 MB paging file [13442 MB free].
8388608 MB user address space [8387092 MB free].
Write to location 21127a70 caused an access violation.

--
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.
error.log

Stewart Miles

unread,
May 9, 2017, 8:05:16 PM5/9/17
to fireba...@googlegroups.com
We tried reproducing the issue on our current release and was unable to do so.  We fixed an issue which could lead to a stale pointer dereference in the callback code path.

Give 3.0.2 a try and let us know whether this resolves your issue:

Cheers,
Stewart

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Ian Lipták

unread,
May 10, 2017, 10:18:00 AM5/10/17
to Firebase Google Group
Hi Stewart,
Thank you for update, I am sorry but latest firebase plugin for unity (3.0.2) makes no difference. Unexpected crash when sign in anonymously several times still persists.

I have reported this issue to Unity as well, and this is the response they sent me yesterday:

"Hey Ian,
I could reproduce your issue.
However, I have identified this issue as a duplicate of an existing known bug and we will be closing the issue. The information you have supplied will help us further in the resolution.
You can track original case's status here:
https://issuetracker.unity3d.com/issues/when-firebase-asset-is-imported-unity-crashes-in-firebase-dot-firebaseapp-slash-firebasehandler-update-during-enter-and-exit-play-mode
After some investigation, it looks like the bug is triggered by the native extension.
It looks like that "Firebase.AppUtil:
PollCallbacks" invokes some C++ code that ends up crashing the Editor.
You should contact the extension developer to get them investigate the issue.
If you have further questions, feel free to contact us.
Have a great day,
Toma
Unity QA Team"

--jl


Dňa streda, 10. mája 2017 2:05:16 UTC+2 Stewart Miles napísal(-a):

Stewart Miles

unread,
May 11, 2017, 7:20:05 PM5/11/17
to Firebase Google Group
Managed to track this down today.  It turns out we were not tearing down the auth module correctly when the player stops / quits.  Since the native DLL sticks around in the editor's process address space when we start up again (Unity doesn't unload native DLLs) we end up with some objects with stale state sitting around pointing to C# objects that have been destroyed.  In particular the auth state listener - signaled when state changes happen - ends up with a pointer to a delegate in a C# class that may not be around anymore.

Thanks for your patience Ian.  We just pushed a bug fix release for this:

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Ian Lipták

unread,
May 12, 2017, 10:41:10 AM5/12/17
to Firebase Google Group
Hi Stewart,
I can confirm the latest version 3.03 is working correctly. OMG this is AWESOME! You made me (and few other people) happy today! Thank you so much!
But don't worry I've found several other bugs to fix. : D I'll write about it on different thread ...
Keep going, Firebase is the future!

--jl

Dňa piatok, 12. mája 2017 1:20:05 UTC+2 Stewart Miles napísal(-a):
Reply all
Reply to author
Forward
0 new messages