okio icon indicating copy to clipboard operation
okio copied to clipboard

Fatal Exception: java.lang.IllegalStateException No deadline

Open rohitkzoom opened this issue 3 years ago • 0 comments

As described here #133 and #1654, this is resolved, in our app utilizing okhttp:5.0.0-alpha.8 and okio:3.1.0 we are getting crashes on some devices, logs below

Reproducible case is not very clear, please could you see and resolve

Fatal Exception: java.lang.IllegalStateException
  okio.Timeout.deadlineNanoTime (Timeout.kt:56)
  okio.AsyncTimeout$Companion.scheduleTimeout (AsyncTimeout.kt:238)
  okio.AsyncTimeout$Companion.access$scheduleTimeout (AsyncTimeout.kt:201)
  okio.AsyncTimeout.enter (AsyncTimeout.kt:54)
  okio.AsyncTimeout$source$1.read (AsyncTimeout.kt:331)
  okio.RealBufferedSource.indexOf (RealBufferedSource.kt:427)
  okio.RealBufferedSource.readUtf8LineStrict (RealBufferedSource.kt:320)
  okhttp3.internal.http1.HeadersReader.readLine (HeadersReader.kt:29)
  okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders (Http1ExchangeCodec.kt:178)
  okhttp3.internal.connection.Exchange.readResponseHeaders (Exchange.kt:111)
  okhttp3.internal.http.CallServerInterceptor.intercept (CallServerInterceptor.kt:93)
  okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
  okhttp3.internal.connection.ConnectInterceptor.intercept (ConnectInterceptor.kt:34)
  okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
  okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.kt:95)
  okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
  okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.kt:84)
  okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
  okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.kt:65)
  okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
  okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp (RealCall.kt:205)
  okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.kt:533)
  java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
  java.lang.Thread.run (Thread.java:920)

rohitkzoom avatar Jun 21 '22 12:06 rohitkzoom