Skip to content
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

App crash :Cause: null pointer dereference #68

Closed
iningwei opened this issue Oct 8, 2021 · 6 comments
Closed

App crash :Cause: null pointer dereference #68

iningwei opened this issue Oct 8, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@iningwei
Copy link

iningwei commented Oct 8, 2021

error stack trace as follows:

@iningwei
Copy link
Author

iningwei commented Oct 8, 2021

2021-10-08 18:33:26.243 1653-1727/? E/AndroidRuntime: FATAL EXCEPTION: UnityMain
Process: com.tj.sgame, PID: 1653
java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
Build fingerprint: 'Redmi/dandelion/dandelion:10/QP1A.190711.020/V12.0.13.0.QCDCNXM:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2021-10-08 18:33:25+0800
pid: 1653, tid: 1906, name: Thread-6 >>> com.tj.sgame <<<
uid: 10328
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
Cause: null pointer dereference
r0 00000004 r1 a67403c8 r2 00000004 r3 a6740411
r4 00000000 r5 a67403c8 r6 a67403c8 r7 00000004
r8 a6740411 r9 cae1c518 r10 00000004 r11 00000000
ip a6977c64 sp a6740358 lr a68a575f pc ec3cdaea

backtrace:
      #00 pc 000a6aea  /apex/com.android.runtime/lib/bionic/libc.so (pthread_mutex_lock+6) (BuildId: af31ec96b35fedca378e07659b30896c)
      #01 pc 0016075b  /data/app/com.tj.sgame-Kv8VLP-eFvtV9_GhowUt_A==/lib/arm/libFirebaseCppApp-8_3_0.so (firebase::Mutex::Acquire()+2) (BuildId: 2c21ad884429159a0aac3a7344d9d016)
      #02 pc 00163eed  /data/app/com.tj.sgame-Kv8VLP-eFvtV9_GhowUt_A==/lib/arm/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)::'lambda'(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)>(firebase::FutureHandle const&, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, ...
      #03 pc 00163ecd  /data/app/com.tj.sgame-Kv8VLP-eFvtV9_GhowUt_A==/lib/arm/libFirebaseCppApp-8_3_0.so (void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(firebase::FutureHandle const&, int, char const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+32) (BuildId: 2c21ad884429159a0aac3a7344d9d016)
      #04 pc 001b74ad  /data/app/com.tj.sgame-Kv8VLP-eFvtV9_GhowUt_A==/lib/arm/libFirebaseCppApp-8_3_0.so (firebase::messaging::CompleteStringCallback(_JNIEnv*, _jobject*, firebase::util::FutureResult, char const*, void*)+96) (BuildId: 2c21ad884429159a0aac3a7344d9d016)
      #05 pc 001c89e9  /data/app/com.tj.sgame-Kv8VLP-eFvtV9_GhowUt_A==/lib/arm/libFirebaseCppApp-8_3_0.so (firebase::util::JniResultCallback_nativeOnResult(_JNIEnv*, _jobject*, _jobject*, unsigned char, unsigned char, _jstring*, long long, long long)+116) (BuildId: 2c21ad884429159a0aac3a7344d9d016)
      #06 pc 000dc519  /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+40) (BuildId: 04997b3570c346f812675714d1681c80)
      #07 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 04997b3570c346f812675714d1681c80)
      #08 pc 0042e457  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 04997b3570c346f812675714d1681c80)
      #09 pc 000dffb7  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: 04997b3570c346f812675714d1681c80)

@iningwei
Copy link
Author

iningwei commented Oct 8, 2021

The app integrated FirebaseAnalytics and FirebaseMessaging SDK.
After lots test i can get some clues:
step1:install app, close vpn, after app launchs it crashed and error logs as upper shown. Launch app again,and it crashed either.
step2:open vpn, launch app, now the app not crash and get fcm token success.
step3:close vpn, launch app, not crash.
Judge from step2 and step3 ,i guess while the app try to get token from server, if i do not open vpn ,it crashed.After get token, it will not get token again,so step3 not crash.

I am living in a country where google url is banned, so we need vpn to use google products.

@iningwei
Copy link
Author

iningwei commented Oct 8, 2021

So Firebase developers,please help me!!!
By the way, we used firebase sdk for unity3d v8.3.0. Mobile device is XiaoMi(Redme)

@iningwei
Copy link
Author

iningwei commented Oct 8, 2021

I used another mobie device Huawei P9, it crash either.
After i used vpn, it do not crash any long.

@dconeybe
Copy link
Contributor

dconeybe commented Oct 8, 2021

Note that this is a duplicate of firebase/quickstart-unity#1155

@iningwei
Copy link
Author

iningwei commented Oct 9, 2021

Note that this is a duplicate of firebase/quickstart-unity#1155

yes, both created by me in case of your guys ignored the bug.

@cynthiajoan cynthiajoan added the duplicate This issue or pull request already exists label May 5, 2022
@firebase firebase locked and limited conversation to collaborators Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants