-
Notifications
You must be signed in to change notification settings - Fork 46
I bought a google pixel3, app crash also:Cause: null pointer dereference #73
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
Here i give you a easy test rule: |
Same issue on Note 10+ |
I have made a demo project,and uploaded it to github:FCMCrashFeedbackDemo,also a demo apk included. Please check it!!! |
I had the same problem. Solution add to androidmanifest:
Why does the crash happen on my device? Firebase at start game tries to get a token, but gets error
Then I call initialization from the application code to get the token and the game crashes
|
@Otarius0 THANKS for your kind reply. |
Finally,i do it as follows: ANY HOW:hope firebase devloper can solve this issue in their sdk. |
@iningwei You can try to manual get token used this code
|
thanks for your kind reply. |
here i still have a question:sometimes the first launch of app still crash, the same error log.The ratio is low,but it really exist. |
@TBarendt Thanks for your reply, the random crash is indeed caused by FirebaseMessaging.TokenRegistrationOnInitEnabled = true;, i removed it and all works fine. |
Finally summary: this can aviod firebase auto init case crash while no internet connect when first launch.
|
@iningwei Looking at Crashlytics, crashes still happen. But I think they on the devices who are updated to the new version of SDK and they still have TokenRegistrationOnInitEnabled = true. |
Update: I have tested remove it.And all works fine. @Otarius0 currently,no crashes. |
Do you still need the workaround you mentioned in https://github.com/firebase/firebase-unity- sdk/issues/73#issuecomment-979775159 with the latest Firebase SDK, ex. I suspect these patches are related to your situations. Please let us know. |
Hey @iningwei. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @iningwei if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Not long ago,i post a crash bug:#68
But no more feedback from you.
In case of the bug is caused by mobie devices of China,i bought a google pixel3 from amazon.com.
But it turns out the same.If i fetch fcm token the firsttime,without vpn open,it mush crash.If i used vpn,it can success get token,and not crash.
The log as follows, please check it,thanks.
FATAL EXCEPTION: UnityMain
Process: com.tj.sgame, PID: 4303
java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2020.3.0f1 (c7b5465681fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'google/blueline/blueline:9/PQ1A.181105.017.A1/5081125:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2021-10-13 23:09:25-0400
pid: 4303, tid: 4384, name: Thread-12 >>> com.tj.sgame <<<
uid: 10160
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
x0 0000000000000008 x1 00000076166c5cb0 x2 0000000000000004 x3 00000076166c5d29
x4 00000076166c5c68 x5 0000000000000000 x6 455e5e6472606164 x7 7f7f7f7f7f7f7f7f
x8 0000000000000000 x9 00000076166c5d29 x10 00000076379abf80 x11 0000007611295a30
x12 0000000012fda888 x13 0000000000000002 x14 0000000000003198 x15 0000000000000000
x16 0000007616af13a8 x17 00000076ba344c40 x18 0000000000000024 x19 0000000000000000
x20 00000076166c5cb0 x21 00000076166c5c68 x22 0000000000000000 x23 00000076166c5d29
x24 0000000000000004 x25 0000000000000008 x26 00000076166c5d28 x27 0000000000000001
x28 0000000000000000 x29 00000076166c5e98
sp 00000076166c5c10 lr 00000076169c43ac pc 00000076ba344c40
2021-10-14 11:09:22.400 4303-4335/? I/chatty: uid=10160(com.tj.sgame) UnityMain identical 14 lines
The text was updated successfully, but these errors were encountered: