Skip to content

okio.AsyncTimeout Caused by java.lang.IllegalStateException Unbalanced enter/exit #691

Open
@nitrodenov

Description

@nitrodenov

Hello.
Using socket.io 1.0.0, okhttp3 4.9.1 on Android. Do somebody have ideas, how to fix this crash?

Caused by java.lang.IllegalStateException
Unbalanced enter/exit

okio.AsyncTimeout$Companion.scheduleTimeout (AsyncTimeout.java:225)
okio.AsyncTimeout$Companion.access$scheduleTimeout (AsyncTimeout.java:201)
okio.AsyncTimeout.enter (AsyncTimeout.java:54)
okio.AsyncTimeout.withTimeout (AsyncTimeout.java:144)
okio.AsyncTimeout$source$1.read (AsyncTimeout.java:331)
okio.internal.RealBufferedSourceKt.commonIndexOf (RealBufferedSourceKt.java:322)
okio.RealBufferedSource.indexOf (RealBufferedSource.java:427)
okio.internal.RealBufferedSourceKt.commonReadUtf8LineStrict (RealBufferedSourceKt.java:197)
okio.RealBufferedSource.readUtf8LineStrict (RealBufferedSource.java:320)
okhttp3.internal.http1.HeadersReader.readLine (HeadersReader.java:29)
okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders (Http1ExchangeCodec.java:178)
okhttp3.internal.connection.Exchange.readResponseHeaders (Exchange.java:106)
myapp.network.interceptor.SomeInterceptor.intercept (SomeInterceptor.java:16)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:109)
okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp (RealCall.java:201)
okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.java:517)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.lang.Thread.run (Thread.java:929)

PS I found this issue, but this issue is very old.
#212

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions