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

导致ANR #200

Open
gydhy8 opened this issue Feb 22, 2022 · 1 comment
Open

导致ANR #200

gydhy8 opened this issue Feb 22, 2022 · 1 comment

Comments

@gydhy8
Copy link

gydhy8 commented Feb 22, 2022

主线程调用disconnect或者connect后有一定几率出现ANR问题,好像死锁了:
部分bugly日志如下:
com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl.disconnect(ConnectionManagerImpl.java:1)
com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl.disconnect(ConnectionManagerImpl.java:20)

@jzq84229
Copy link

jzq84229 commented Jul 5, 2022

一样,遇到相同的问题,网络状态不好连接失败时自动调用disconnect
ANR Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 1.)
com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl.disconnect(ConnectionManagerImpl.java:232)
com.xuhao.didi.socket.client.impl.client.action.ActionHandler.onSocketConnectionFailed(ActionHandler.java:60)
com.xuhao.didi.socket.client.impl.client.action.ActionDispatcher.dispatchActionToListener(ActionDispatcher.java:111)
com.xuhao.didi.socket.client.impl.client.action.ActionDispatcher.access$200(ActionDispatcher.java:38)
com.xuhao.didi.socket.client.impl.client.action.ActionDispatcher$ActionRunnable.run(ActionDispatcher.java:280)
android.os.Handler.handleCallback(Handler.java:751)
android.os.Handler.dispatchMessage(Handler.java:95)
android.os.Looper.loop(Looper.java:154)
android.app.ActivityThread.main(ActivityThread.java:6121)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants