-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
New issue Native crash in SSL_CTX_set_alpn_protos #1338
Comments
Looks like we need to disable ALPN on Android 4.4.x and earlier. |
Looks like we have something related but I am not sure. After integrating OkHttp 2.2 (Retrofit 1.9 and regular download requests) we are receiving native crashes through HockeyApp. All devices (various) are KitKat. Our test devices with KitKat work normally and we could not reproduce this crash.
Is there some kind of workaround? Should we disable SPDY or somehow disable ALPN? We can drop some speed improvements (our servers do not support SPDY) for better stability of the application. |
Until we've deployed the fix, the workaround is to disable SPDY and HTTP/2.
|
Already found it. Thank you for confirmation |
Still have this on Samsung Galaxy Note II with OS 4.4.2, after implementing
Can this help?
EDIT: EDIT2:
EDIT3: |
Just wanted to mention we started getting a lot of native crashes with 2.2 as well in Flipboard. On the off chance it's related, here's what we got:
|
@hzsweers - I'm no expert but that looks like it might be something else (SSL_CTX_set_alpn_protos isn't mentioned). I think it may be this: https://code.google.com/p/android/issues/detail?id=74964 Please provide all the information you have about device / GMS core version / OS version. |
I'm getting the same exeption than @hzsweers when downgraded to 2.1 |
I get this on 2.2 and 2.1 when using Picasso to retrieve a jpg. It happens on Lollipop, on KitKat it works fine.
|
@Papipo " I'm no expert but that looks like it might be something else (SSL_CTX_set_alpn_protos isn't mentioned)." |
FWIW, we're still seeing crashes of this nature even after applying the @swankjesse workaround, though it appears much less prevalent. Unfortunately, I haven't successfully reproed locally, so I only have minidumps which are missing system symbols. As such I don't know the exact libssl/libcrypto functions that are causing the problem. |
@plinehan, we had this fixed by using 2.1 for now. |
Thanks @imort! I rolled back to okhttp-2.1.0 (still using okio-1.2.0) and pushed to everyone and I'm no longer seeing the crash in the wild. |
Fixed in 2.3 with #1474 |
@swankjesse Could you please take a look at #1520? The crash looks similar to this issue. |
I still see it with okhttp 2.4 in android 4.4 only. Affected devices: Galaxy Tab4/Galaxy Alpha/Xperia M2 (D2303)/Aquaris E5/Galaxy Note II (t03g) Build fingerprint: 'bq/Aquaris_E5/Aquaris_E5:4.4.4/KTU84P/1432699580:user/release-keys' backtrace: code around pc: code around lr: Build fingerprint: 'samsung/mondrianwifixx/mondrianwifi:4.4.2/KOT49H/T320XXU1BOC1:user/release-keys' backtrace: code around pc: code around lr: |
Using OkHTTP 2.2.0 and CyanogenMod v11 M1.
The text was updated successfully, but these errors were encountered: