firebase-android-sdk: Crash in Android 7 and 8 with FirebaseInstallations
Step 2: Describe your environment
- Android Studio version: 4.0.0
- Firebase Component: Might be any of Firebase performance, config, messaging dynamic links or analytics
- Component version: Following the order of the last sentence: 19.0.7, 19.1.4, 20.2.0, 19.1.0 and 17.4.2
Step 3:
Getting a crash in both Android 8 and 7 with the following message in crashlytics:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object com.android.org.conscrypt.SSLParametersImpl.clone()' on a null object reference
Steps to reproduce:
Full stacktrace:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object com.android.org.conscrypt.SSLParametersImpl.clone()' on a null object reference
at com.android.org.conscrypt.OpenSSLSocketFactoryImpl.createSocket(OpenSSLSocketFactoryImpl.java:106)
at com.android.okhttp.Connection.connectTls(Connection.java:1494)
at com.android.okhttp.Connection.connectSocket(Connection.java:1458)
at com.android.okhttp.Connection.connect(Connection.java:1413)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1700)
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:133)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:466)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:371)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:130)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:261)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
at com.google.firebase.installations.remote.FirebaseInstallationServiceClient.writeRequestBodyToOutputStream(FirebaseInstallationServiceClient.java:208)
at com.google.firebase.installations.remote.FirebaseInstallationServiceClient.writeFIDCreateRequestBodyToOutputStream(FirebaseInstallationServiceClient.java:190)
at com.google.firebase.installations.remote.FirebaseInstallationServiceClient.createFirebaseInstallation(FirebaseInstallationServiceClient.java:160)
at com.google.firebase.installations.FirebaseInstallations.registerFidWithServer(FirebaseInstallations.java:464)
at com.google.firebase.installations.FirebaseInstallations.doNetworkCall(FirebaseInstallations.java:341)
at com.google.firebase.installations.FirebaseInstallations.lambda$doRegistrationInternal$0(FirebaseInstallations.java:331)
at com.google.firebase.installations.FirebaseInstallations$$Lambda$5.run(FirebaseInstallations.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (11 by maintainers)
@ankitaj224 Alas. We can’t reproduce it locally. I can only see these crash reports in console.
Hello @ankitaj224, no problem at all! I can confirm that we have
16.3.1
for firebase-installations and also just in case we are having16.0.0
of firebase-installations-interop. Unfortunately I couldn’t reproduce it in my side. The only exception I see that most likely is not related is this one for crashlytics:Would you confirm me that this is not related? Anything else or other info I can provide?
We have the same crashes in our project after update to the last Firebase versions. firebase-analytics 17.3.0 -> 17.4.3 firebase-crashlytics 17.0.0-beta03 -> 17.0.1
Stacktrace 1:
Devices 1: Android 6.X, 7.X, 8.0
Stacktrace 2:
Devices 2: Only Android 8.0
Stacktrace 3:
Devices 3: Android 5.X, 6.X
Stacktrace 4:
Devices 4: Only Android 9
@ashwinraghav We have had this crash roughly around 90 times in 5 days. Just so you know I just noticed it happening in Android 6 as well, so my thoughts about having it only in Android 7 and 8 can be dismissed.
@ciarand We do not see a pattern for a certain brand. If I take android 8 cases for example, 68% happens on Samsung devices but the remaining 32% is quite spread.