Closed ffrenchm closed 2 years ago
Hey @ffrenchm, thanks for flagging this.
It seems we need to update the OkHttp
version:
Version 3.12.13
2021-01-30
Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads concurrently close an SSL socket.
This would have appeared in crash logs as NullPointerException: bio == null.
I'll let you know when it's done.
@ffrenchm,
Please try v2.1.17
Giphy SDK does not use okhttp
, this is the Fresco
dependency, so the only thing I could do was to update Fresco
to the latest version.
🐛 Bug Report
When I call Giphy.configure, some of my users get a java.lang.ExceptionInInitializerError. However, I can't reproduce this on my device or my emulator.
Here is the code I'm using to initialise the Giphy SDK:
MainActivity is my first and only Activity since I'm using single activity architecture with fragments. So when users experience this crash, they can't open the app at all.
Here is the error stack trace from Google Play:
So the app is crashing at Giphy.initFresco, when the okHttpClient is being built. When I decompile the Giphy class to Java, this is the initFresco function:
Environment:
Giphy Android SDK version: 2.1.16 Gradle version: 7.0.2 Device info: OneNote 7 Pro (real device) running Android 11 (SDK 30)