(编辑:它与Firebase无关,但与Unity和Google Play服务无关,请检查第一条评论)
自从我将应用程序升级到Firebase 6.2.x以来,它在Android上启动时(在“启动画面”之前/期间)崩溃。
一些信息:
如果我将库恢复为Firebase 6.0.0,则可以正常运行,不会崩溃。这将是我目前的解决方案,但我确实需要能够使用最新的Firebase版本运行我的应用程序,而不能被旧的Firebase所困扰。
我崩溃的原因是:
2019-07-31 12:01:01.837 1346-3648/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.mycompany.myapp cmp=com.mycompany.myapp/com.unity3d.player.UnityPlayerActivity} from uid 10036
2019-07-31 12:01:01.850 1346-3648/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
2019-07-31 12:01:01.889 1346-3648/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{97cb34f com.mycompany.myapp} is now in focus and seems to be in full-screen mode
2019-07-31 12:01:01.889 1346-3648/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.mycompany.myapp/com.unity3d.player.UnityPlayerActivity/572
2019-07-31 12:01:01.889 1346-3648/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2019-07-31 12:01:01.905 1346-3648/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{97cb34f com.mycompany.myapp} is now in focus and seems to be in full-screen mode
2019-07-31 12:01:01.905 1346-3648/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.mycompany.myapp/com.unity3d.player.UnityPlayerActivity/572
2019-07-31 12:01:01.925 1346-3648/? D/Boost: hostingType=activity, hostingName=com.mycompany.myapp/com.unity3d.player.UnityPlayerActivity, callerPackage=com.android.vending, isSystem=true, isBoostNeeded=false.
2019-07-31 12:01:01.927 1346-3648/? I/ActivityManager: Start proc 25225:com.mycompany.myapp/u0a293 for activity com.mycompany.myapp/com.unity3d.player.UnityPlayerActivity caller=com.android.vending
2019-07-31 12:01:01.929 25225-25225/? E/ycompany.myap: Not starting debugger since process cannot load the jdwp agent.
2019-07-31 12:01:01.955 25225-25225/? I/ycompany.myap: The ClassLoaderContext is a special shared library.
2019-07-31 12:01:01.958 25225-25225/? W/ycompany.myap: JIT profile information will not be recorded: profile file does not exits.
2019-07-31 12:01:01.969 25225-25225/? I/Perf: Connecting to perf service.
2019-07-31 12:01:01.986 25225-25225/? I/FirebaseInstanceId: App restored, clearing state
2019-07-31 12:01:01.993 25225-25225/? I/FirebaseInitProvider: FirebaseApp initialization successful
2019-07-31 12:01:02.034 25225-25243/? I/FA: App measurement is starting up, version: 16250
2019-07-31 12:01:02.034 25225-25243/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2019-07-31 12:01:02.034 25225-25243/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.mycompany.myapp
2019-07-31 12:01:02.089 25225-25243/? I/FA: Tag Manager is not found and thus will not be used
2019-07-31 12:01:02.147 25225-25225/? E/LB: fail to open file: No such file or directory
2019-07-31 12:01:02.161 25225-25248/? I/Unity: SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 5634mb
2019-07-31 12:01:02.161 25225-25248/? I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
2019-07-31 12:01:02.161 25225-25248/? I/Unity: ApplicationInfo com.mycompany.myapp version 5.7.2G build xxxxxx
2019-07-31 12:01:02.161 25225-25248/? I/Unity: Built from '2019.1/staging' branch, Version '2019.1.12f1 (f04f5427219e)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000000000000
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: Build fingerprint: 'Xiaomi/xxxxxxx/release-keys'
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: Revision: '0'
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: pid: 25225, tid: 25248, name: UnityMain >>> com.mycompany.myapp <<<
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x0 00000000000005cd x1 0000000000000000 x2 0000006f6a514980 x3 0000006f6b741368
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x4 0000006f6a514a40 x5 0000000000000004 x6 fefeff6e67659bff x7 7f7f7f7f7f7fff7f
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x8 0000000000000000 x9 00000000003832e4 x10 0000006f670c9890 x11 000000000002e24c
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x12 0000006f68acb740 x13 0000000000007ac0 x14 0000000000000140 x15 aaaaaaaaaaaaaaab
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x16 0000006f68be0af0 x17 0000007006bddef0 x18 0000000000000000 x19 0000006f7fb2c500
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x20 0000006f6703207c x21 0000006f6b741368 x22 0000000000000000 x23 0000006f6a51499c
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x24 0000006f68ca2000 x25 0000006f68ca2000 x26 00000000e9bd37a7 x27 0000000000000006
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: x28 0000000000012154 x29 0000006f6b740f00 x30 0000006f67924794
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: sp 0000006f6b740dc0 pc 0000006f6792f05c pstate 0000000000000000
2019-07-31 12:01:02.183 25225-25248/? E/CRASH: backtrace:
2019-07-31 12:01:02.209 25225-25248/? E/CRASH: #00 pc 000000000000069c [vdso] ()
2019-07-31 12:01:02.210 25225-25248/? E/CRASH: #01 pc 000000000052c058 /data/app/com.mycompany.myapp-W26Dq_uyKkK1OxQ3Dts71g==/split_config.arm64_v8a.apk ()
2019-07-31 12:01:02.210 25225-25248/? E/CRASH: #02 pc 0000000000521790 /data/app/com.mycompany.myapp-W26Dq_uyKkK1OxQ3Dts71g==/split_config.arm64_v8a.apk ()
[...]
Process: com.mycompany.myapp, PID: 25225
java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000000000000
Build fingerprint: 'Xiaomi/xxxxxx/release-keys'
Revision: '0'
pid: 25225, tid: 25248, name: UnityMain >>> com.mycompany.myapp <<<
x0 00000000000005cd x1 0000000000000000 x2 0000006f6a514980 x3 0000006f6b741368
x4 0000006f6a514a40 x5 0000000000000004 x6 fefeff6e67659bff x7 7f7f7f7f7f7fff7f
x8 0000000000000000 x9 00000000003832e4 x10 0000006f670c9890 x11 000000000002e24c
x12 0000006f68acb740 x13 0000000000007ac0 x14 0000000000000140 x15 aaaaaaaaaaaaaaab
x16 0000006f68be0af0 x17 0000007006bddef0 x18 0000000000000000 x19 0000006f7fb2c500
x20 0000006f6703207c x21 0000006f6b741368 x22 0000000000000000 x23 0000006f6a51499c
x24 0000006f68ca2000 x25 0000006f68ca2000 x26 00000000e9bd37a7 x27 0000000000000006
x28 0000000000012154 x29 0000006f6b740f00 x30 0000006f67924794
sp 0000006f6b740dc0 pc 0000006f6792f05c pstate 0000000000000000
at [vdso].(:0)
at split_config.(:0)
at split_config.(:0)
[...]
有指针吗?关于可能导致这种情况的任何想法,或者我可以进行哪些测试?
也许与缓存有关(自从第二次安装起就起作用),也许与Google Play服务有关?
如果有人遇到类似问题,请发送一些信息。