-
Notifications
You must be signed in to change notification settings - Fork 424
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
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference #186
Comments
Hey @mtoanhcm, I was wondering if I could get more details about the crash. I found where the code is crashing, but I don't have a reliable way to reproduce the crash or test a possible fix so I'd like a little bit more information. What version of Android and Unity are you using, and on what device? Does the crash happen consistently? Do you have a minimal reproduction case? |
Hi @alexames , I'm using Unity 2018.1.6f1, I cannot reproduction this bug, it does not usually happen (about 3% user). Bug happend in android version 5,6,7,8 and happen most in samsung device (54%). I send you my log from fabric, hope this help ` Crashlytics - plaintext stacktrace downloaded by Khanh Nguyen at Tue, 17 Jul 2018 02:24:45 GMTURL: https://fabric.io/wolffun/android/apps/com.obuut.tankio/issues/5a58e21f8cb3c2fa63b46a90?time=last-ninety-days/sessions/5B4D477A0325000143D609A5E63A8CC1_DNE_0_v2Organization: WolffunPlatform: androidApplication: TankRaidVersion: 2.40 (144)Bundle Identifier: com.obuut.tankioIssue #: 5302Issue ID: 5a58e21f8cb3c2fa63b46a90Session ID: 5B4D477A0325000143D609A5E63A8CC1_DNE_0_v2Date: 2018-07-17T01:34:00ZOS Version: 6.0.1Device: Galaxy S5RAM Free: 24.9%Disk Free: 26.9%Fatal Exception: java.lang.Error: FATAL EXCEPTION [main] Caused by java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference #0. AsyncTask #4 #1. Queue #2. UnityMain #3. HeapTaskDaemon #4. Queue #5. ReferenceQueueDaemon #6. Queue #7. pool-9-thread-1 #8. FinalizerDaemon #9. Crashlytics Exception Handler1 #10. OkHttp ConnectionPool #11. FinalizerWatchdogDaemon #12. AsyncTask #3 #13. Queue #14. UnityChoreographer #15. pool-5-thread-1 #16. main #17. AsyncTask #2 #18. Answers Events Handler1 #19. pool-6-thread-1 #20. pool-4-thread-1 #21. Queue #22. AsyncTask #1 #23. AsyncTask #5 |
I believe we found the issue, and have a fix for it in the next release. I don't have an exact date when the fix will be available, but it should be out soon. |
Thanks @alexames , I'll be waiting for the next release |
The Firebase Unity 5.2.0 SDK fixes this issue. Please let us know if you have any problems with it. |
I have more crashes when use firebase analytic and remote config for my project (Version 5.1.1). I have tried more way to fix it but nothing has worked. Has anyone run into the same problem?
Caused by java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference at com.google.firebase.app.internal.cpp.GoogleApiAvailabilityHelper$2$1.run(GoogleApiAvailabilityHelper.java:113) at java.lang.Thread.run(Thread.java:818) at com.google.firebase.app.internal.cpp.GoogleApiAvailabilityHelper$2.onDismiss(GoogleApiAvailabilityHelper.java:151) at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1263) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5348) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
The text was updated successfully, but these errors were encountered: