-
Notifications
You must be signed in to change notification settings - Fork 441
Garbage Collecting Bug, see #191, just some logs for you devs! #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Eneminemoe Thank you for reporting this. May I learn which Firebase products you are using now? (ex. Analytics, Database, Storage, etc) |
Hey @chkuang-g Products:
Just to provide some more information:
|
@Eneminemoe At the mean time, you can try to store a reference to FirebaseApp throughout the lifetime of the app, ex. a static reference. |
@Eneminemoe
It does not crash on my end. Could you provide a bit more information? For instance
Thank you, |
Additional info: This bug is also only tested on a mobile device. Due to not being able to login to google in the unity editor this can't be reproduced in the IDE I will set a small project up for you and post a link here to the repo, as soon as I'm done. |
Thank you for the information. It is weird that Google sign-in could cause this issue. But I'll look into that direction. And please do share the project once it is finished. It may provide some more insight. Shawn |
Hello, I think I may be experiencing the same issue but at a small chance when opening the app in Android and Firebase starts to be initialized. This happened with Samsung S9 with Android 9 and Samsung S4 with Android 5. I am using Firebase SDK 5.6.1 with Firebase Crashlytics, Cloud Messaging, and Firebase Analytics. The app is developed with Unity 2018.1.8. The crash log is as follows (app id has been replaced with
|
Hi @henriqueranj, Your crash seems not related to the original post, which crash at Auth destructor. Your crash happens when App is created and seems to related to Google Play Services. Could you open a different issues and details your situation? Thank you, |
Hello @chkuang-g , thank you for the feedback. I opened issue #363 Best regards, |
@Eneminemoe any chance you've been able to put together a project that reproduces the crash with Google Sign-in? |
Hey @stewartmiles |
Oh looks like we have a fix pending for the race on creation of FirebaseApp, we'll update this issue when it's released. |
This should be fixed as of the latest release, 6.2.0 |
Please fill in the following fields:
Unity editor version: 2018.3.7f1
Firebase Unity SDK version: 5.6.0
Additional SDKs you are using (Facebook, AdMob, etc.): Facebook
Platform you are using the Unity editor on (Mac, Windows, or Linux): Win 10, 64 bit
Platform you are targeting (iOS, Android, and/or desktop): Android
Please describe the issue here:
Just an information : It seems that the garbage collector bug is still there. By switching scenes fourth and back using Firebase I encouter following bug: The FirebaseApp Object gets garabge collected : see issue #191
03-31 09:16:36.466 22636-22694/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
03-31 09:16:36.466 22636-22694/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-31 09:16:36.466 22636-22694/? E/CRASH: Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
03-31 09:16:36.466 22636-22694/? E/CRASH: Build fingerprint: 'HUAWEI/GRA-L09/HWGRA:6.0/HUAWEIGRA-L09/C432B520:user/release-keys'
03-31 09:16:36.466 22636-22694/? E/CRASH: Revision: '0'
03-31 09:16:36.466 22636-22694/? E/CRASH: pid: 22636, tid: 22694, name: Thread-3508 >>> com.xxxxxxx <<<
03-31 09:16:36.466 22636-22694/? E/CRASH: r0 0000000c r1 00000000 r2 00004000 r3 d0d66a26
03-31 09:16:36.466 22636-22694/? E/CRASH: r4 0000000c r5 00000000 r6 d0d66a20 r7 ad9a9a78
03-31 09:16:36.466 22636-22694/? E/CRASH: r8 ad631c30 r9 d78e14f0 sl d77e1000 fp d78e1540
03-31 09:16:36.466 22636-22694/? E/CRASH: ip d0d61e34 sp d78e14b0 lr d0c9f193 pc f6df3142 cpsr 000058a6
03-31 09:16:36.466 22636-22694/? E/CRASH: backtrace:
03-31 09:16:36.469 22636-22694/? E/CRASH: #00 pc 00042142 /system/lib/libc.so (pthread_mutex_lock+3)
03-31 09:16:36.469 22636-22694/? E/CRASH: #1 pc 000d518f /mnt/asec/com.xxxxxxx-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::Mutex::Acquire()+2)
03-31 09:16:36.469 22636-22694/? E/CRASH: #2 pc 0010e37f /mnt/asec/com.xxxxxxx-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::callback::CallbackDispatcher::FlushCallbacks()+10)
03-31 09:16:36.469 22636-22694/? E/CRASH: #3 pc 0010e359 /mnt/asec/com.xxxxxxx-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::callback::Terminate(bool)+20)
03-31 09:16:36.469 22636-22694/? E/CRASH: #4 pc 0010c57b /mnt/asec/com.xxxxxxx-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::app_common::RemoveApp(firebase::App*)+174)
03-31 09:16:36.469 22636-22694/? E/CRASH: #5 pc 001333ad /mnt/asec/com.xxxxxxx-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::App::~App()+4)
03-31 09:16:36.469 22636-22694/? E/CRASH: #6 pc 000d5fd9 /mnt/asec/com.xxxxxxxs-1/lib/arm/libFirebaseCppApp-5.6.0.so (firebase::CppInstanceManagerfirebase::App::ReleaseReference(firebase::App*)+40)
03-31 09:16:36.470 22636-22694/? E/CRASH: memory near r2:
03-31 09:16:36.470 22636-22694/? E/CRASH: 00003fe0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00003ff0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004000 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004010 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004020 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004030 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004040 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004050 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004060 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004070 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004080 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 00004090 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 000040a0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.470 22636-22694/? E/CRASH: 000040b0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.471 22636-22694/? E/CRASH: 000040c0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.471 22636-22694/? E/CRASH: 000040d0 ffffffff ffffffff ffffffff ffffffff ................
03-31 09:16:36.471 22636-22694/? E/CRASH: memory near r7:
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9a58 00000000 00000000 00000000 00000000 ................
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9a68 00000000 00002000 00000001 0000002b ..... ......+...
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9a78 49465f5f 50504152 4645445f 544c5541 __FIRAPP_DEFAULT
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9a88 701ebf00 00000014 65736162 00707041 ...p....baseApp.
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9a98 00000028 00000aeb abababab abababab (...............
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9aa8 abababab abababab abababab abababab ................
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9ab8 00000039 00001581 c32226d0 c3219308 9........&"...!.
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9ac8 00000000 00000000 00000000 bf800000 ................
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9ad8 3f800000 00000000 00000000 bf800000 ...?............
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9ae8 ffffffff 3a5b24e0 3ad23170 00000000 .....$[:p1.:....
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9af8 00000000 00000000 00000000 00000000 ................
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9b08 00000000 c32226d0 c31c999a 00000000 .....&".........
03-31 09:16:36.471 22636-22694/? E/CRASH: ad9a9b18 00000000 00000000 bf800000 3f800000 ...............?
03-31 09:16:36.472 22636-22694/? E/CRASH: ad9a9b28 00000000 00000000 bf800000 ffffffff ................
03-31 09:16:36.472 22636-22694/? E/CRASH: ad9a9b38 3a5b24e0 3ea00000 00000000 00000000 .$[:...>........
03-31 09:16:36.472 22636-22694/? E/CRASH: ad9a9b48 00000000 00000000 00000000 00000000 ................
03-31 09:16:36.472 22636-22694/? E/CRASH: memory near r8:
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c10 000000f8 00000000 00000000 00000001 ................
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c20 00000000 00000000 00000000 00000093 ................
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c30 ab66e8f8 00000822 00000021 00000010 ..f."...!.......
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c40 ad9a9a78 00000000 00000000 00000000 x...............
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c50 00000031 00000027 ac8e3b48 00000031 1...'...H;..1...
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c60 00000027 ac8e3be0 00000031 0000002d '....;..1...-...
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c70 ac8e3c18 00000000 00000000 00000000 .<..............
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c80 00000021 0000000c adb780e0 00000031 !...........1...
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631c90 00000022 ac8e3c50 00000021 00000016 "...P<..!.......
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631ca0 ac8e3c88 ac8e3f70 ac8e3f70 00000002 .<..p?..p?......
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631cb0 0020081e f6e2ef08 00000090 0000002b .. .........+...
03-31 09:16:36.472 22636-22694/? E/CRASH: ad631cc0 ad6bc5a8 d6622000 d671f000 00000001 ..k.. b...q.....
03-31 09:16:36.473 22636-22694/? E/CRASH: ad631cd0 00000000 6174735b 323a6b63 31313732 ....[stack:22711
03-31 09:16:36.473 22636-22694/? E/CRASH: ad631ce0 0062005d 00000023 ad6bc580 d6720000 ].b.#.....k...r.
03-31 09:16:36.473 22636-22694/? E/CRASH: ad631cf0 d6721000 00000000 00000000 00740000 ..r...........t.
03-31 09:16:36.473 22636-22694/? E/CRASH: ad631d00 00610048 00000023 ad631d60 d681f000 H.a.#...`.c.....
03-31 09:16:36.473 22636-22694/? E/CRASH: code around pc:
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3120 d0042802 e004b948 4280f442 f442e001 .(..H...B..B..B.
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3130 24004200 806c802a 2016e7e5 b513bd38 .B.$.l.... 8...
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3140 8803b168 f411b299 f4014340 fa1f5200 h.......@C...R..
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3150 d006fc82 460a2100 fe80f7ff 2016e016 .....!.F.......
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3160 f04ce014 f8ad0401 e8d0c006 45611f5f ..L..........aE
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3170 e8c0d106 f1be4f5e d1f60f00 8f5ff3bf ....^O.........
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3180 4618d101 f8ade002 e7e31006 bd10b002 ...F............
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3190 4603b570 8802b140 f412b292 f4024540 p..F@.......@e..
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31a0 b2895100 e001d026 bd702016 4f70ee1d .Q..&.... p...pO
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31b0 68b66866 c002f8b0 f48cfa1f d12d42a6 fh.h.........B-.
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31c0 76fcf641 b13e4016 0f5fe8d3 e8c31f05 A..v.@>........
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31d0 29005f51 e7f7d020 805e430d 8f5ff3bf Q.) ....C^....
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31e0 2f5fe8d3 5f54e8c3 d1f92c00 0303f002 ../..T_.,......
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df31f0 e00b2b02 8f5ff3bf 6f5fe8d3 1f52e8c3 .+...._..._o..R.
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3200 d1f92a00 f041b2b4 429c0302 3100d104 .....A....B...1
03-31 09:16:36.473 22636-22694/? E/CRASH: f6df3210 2101bf18 fe1ff7d6 bd702000 bd702001 ...!..... p.. p.
03-31 09:16:36.473 22636-22694/? E/CRASH: code around lr:
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f170 4620f803 fc74f086 4604b510 f0006800 .. F..t....F.h..
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f180 4620ff09 f7fabd10 0000fd17 f7efb580 .. F............
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f190 b108ec54 d1002816 4803bd80 e8bd4478 T....(.....HxD..
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1a0 f08b4080 bf00bd09 000a1c47 b098b5b0 .@......G.......
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1b0 46684605 f7fc460c 4629fe92 f7ef4622 .FhF.F....)F"F..
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1c0 4604ebfa f7fc4668 4620ff5f bdb0b018 ...FhF.._. F....
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1d0 46684604 ff58f7fc f0864620 0000fc41 .FhF..X. F..A...
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1e0 47ffe92d 46044688 4621a801 ec2af7ef -..G.F.F..!F..*.
03-31 09:16:36.473 22636-22694/? E/CRASH: d0c9f1f0 0004f89d d0402800 f8506820 18210c0c .....(@. hP...!.
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f200 f7efa803 4831ec26 68014478 f7efa803 ....&.1HxD.h....
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f210 4682ec26 f7efa803 6820ec28 0c0cf850 &..F....(. hP...
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f220 6cfd1827 9018f8d7 d1121c68 4639a803 '..l....h.....9F
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f230 ec0ef7ef 44784826 a8036801 ec0ef7ef ....&HxD.h......
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f240 69ca6801 47902120 a8034605 ec0cf7ef .h.i !.G.F......
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f250 f8da64fd 69060000 4650b2eb 463a4649 .d.....i..PFIF:F
03-31 09:16:36.474 22636-22694/? E/CRASH: d0c9f260 8000f8cd b94047b0 f8506820 44200c0c .....G@. hP... D
03-31 09:16:38.869 3918-3918/? I/NetworkSpeedManagerEx: mIsStop = false
03-31 09:16:38.873 3918-3918/? I/NetworkSpeedManagerEx: value = 134.33333
03-31 09:16:38.876 22636-22636/? E/CRASH: other thread is trapped; signum = 11
03-31 09:16:38.880 3918-3918/? I/NetworkSpeedManagerEx: speed = 134B/s
03-31 09:16:38.880 3918-3918/? I/NetworkSpeedView: /update(), speed=134B/s
03-31 09:16:38.883 22636-22636/? E/InputEventReceiver: Exception dispatching input event.
03-31 09:16:38.884 22636-22636/? E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
03-31 09:16:38.886 22636-22636/? E/MessageQueue-JNI: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
Build fingerprint: 'HUAWEI/GRA-L09/HWGRA:6.0/HUAWEIGRA-L09/C432B520:user/release-keys'
Revision: '0'
pid: 22636, tid: 22694, name: Thread-3508 >>> com.xxxxxxx <<<
r0 0000000c r1 00000000 r2 00004000 r3 d0d66a26
r4 0000000c r5 00000000 r6 d0d66a20 r7 ad9a9a78
r8 ad631c30 r9 d78e14f0 sl d77e1000 fp d78e1540
ip d0d61e34 sp d78e14b0 lr d0c9f193 pc f6df3142 cpsr 000058a6
Hint: packagename has been replaced with: 'xxxxxxx'
By holding a reference to my FirebaseApp Object in another gameobject which lives the whole game due to DontDestroyOnLoad I can avoid this bug.
Thought I could show you some logs ;) Hope it helps.
The text was updated successfully, but these errors were encountered: