Skip to content
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

Several crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call #254

Open
sbadiwag opened this issue Jul 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sbadiwag
Copy link

sbadiwag commented Jul 15, 2024

Description

  • Firebase Crashlytics is reporting several crashes related to com.newrelic.agent.android.instrumentation.okhttp3.CallbackExtension.onResponse(CallbackExtension.java:44) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
  • This is crash is related to com.newrelic.agent.android:android-agent:7.3.1 or earlier versions
  • The crash rate is averaging about 50+ crashes per week
  • 80% of the crashes is when app is in background
  • 70% of the crashes impact Android 14 OS
  • 74% are on Samsung devices
  • Refer to stacktrace below

Steps to Reproduce

  • No specific Steps to Reproduce available

Relevant Logs / Console output

Exception javax.net.ssl.SSLException:
  at com.google.android.gms.org.conscrypt.NativeCrypto.SSL_read
  at com.google.android.gms.org.conscrypt.NativeSsl.read (:com.google.android.gms@[email protected] (190400-646585959):34)
  at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket$SSLInputStream.read (:com.google.android.gms@[email protected] (190400-646585959):11)
  at okio.InputStreamSource.read (JvmOkio.kt)
  at okio.AsyncTimeout$source$1.read (AsyncTimeout.kt)
  at okio.RealBufferedSource.request (RealBufferedSource.kt)
  at okio.RealBufferedSource.require (RealBufferedSource.kt)
  at okio.RealBufferedSource.readHexadecimalUnsignedLong (RealBufferedSource.kt)
  at okhttp3.internal.http1.Http1ExchangeCodec$ChunkedSource.readChunkSize (Http1ExchangeCodec.kt)
  at okhttp3.internal.http1.Http1ExchangeCodec$ChunkedSource.read (Http1ExchangeCodec.kt)
  at okhttp3.internal.connection.Exchange$ResponseBodySource.read (Exchange.kt)
  at okio.RealBufferedSource.read (RealBufferedSource.kt:193)
  at okio.RealBufferedSource.exhausted (RealBufferedSource.kt)
  at okio.InflaterSource.refill (InflaterSource.kt)
  at okio.InflaterSource.readOrInflate (InflaterSource.kt)
  at okio.InflaterSource.read (InflaterSource.kt)
  at okio.GzipSource.read (GzipSource.kt)
  at okio.RealBufferedSource.read (RealBufferedSource.kt:193)
  at okio.ForwardingSource.read (ForwardingSource.kt)
  at retrofit2.OkHttpCall$ExceptionCatchingResponseBody$1.read (OkHttpCall.java)
  at okio.RealBufferedSource$inputStream$1.read (RealBufferedSource.kt:162)
  at sun.nio.cs.StreamDecoder.readBytes (StreamDecoder.java:291)
  at sun.nio.cs.StreamDecoder.implRead (StreamDecoder.java:355)
  at sun.nio.cs.StreamDecoder.read (StreamDecoder.java:181)
  at java.io.InputStreamReader.read (InputStreamReader.java:180)
  at okhttp3.ResponseBody$BomAwareReader.read (ResponseBody.kt)
  at com.google.gson.stream.JsonReader.fillBuffer (JsonReader.java)
  at com.google.gson.stream.JsonReader.nextNonWhitespace (JsonReader.java)
  at com.google.gson.stream.JsonReader.doPeek (JsonReader.java)
  at com.google.gson.stream.JsonReader.peek (JsonReader.java)
  at retrofit2.converter.gson.GsonResponseBodyConverter.convert (GsonResponseBodyConverter.java:41)
  at retrofit2.converter.gson.GsonResponseBodyConverter.convert (GsonResponseBodyConverter.java:27)
  at retrofit2.OkHttpCall.parseResponse (OkHttpCall.java)
  at retrofit2.OkHttpCall$1.onResponse (OkHttpCall.java)
  at com.newrelic.agent.android.instrumentation.okhttp3.CallbackExtension.onResponse (CallbackExtension.java)
  at okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.kt)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
  at java.lang.Thread.run (Thread.java:1012)

Your Environment

  • Client app is using New Relic agent version: com.newrelic.agent.android:android-agent:7.3.1
@sbadiwag sbadiwag added the bug Something isn't working label Jul 15, 2024
@sbadiwag sbadiwag changed the title okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Jul 15, 2024
@sbadiwag sbadiwag changed the title Crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Several Crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Jul 15, 2024
@sbadiwag sbadiwag changed the title Several Crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Several crashes okio.InputStreamSource.read javax.net.ssl.SSLException - Read error: ssl=<address>: I/O error during system call Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant