-
Notifications
You must be signed in to change notification settings - Fork 75
登陆后报这个错误mirai-android-demo #6
Comments
报错了吗 好友列表和群列表都没有 |
换个账号试试? |
第一次登陆没有,好像触发不了回复机制,第二次才有,延迟很严重。 |
我在电脑端使用cmd的时候 得要enter |
ystem.err: java.lang.IllegalStateException: returnCode = -10106 |
又报这种奇怪的错误 这是怎么回事 卡拿不动了 |
安卓demo登陆时间非常长 耗费一分钟多 |
安卓demo比较久了, 可参考JVM的demo写. 代码是一样的 |
W/System.err: java.lang.IllegalStateException: returnCode = -10008
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseSsoFrame(PacketFactory.kt:308)
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:215)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:434)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:429)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:414)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
I/art: Background sticky concurrent mark sweep GC freed 339800(11MB) AllocSpace objects, 0(0B) LOS objects, 30% free, 18MB/27MB, paused 1.933ms total 132.511ms
W/System.err: java.lang.IllegalStateException: returnCode = -10008
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseSsoFrame(PacketFactory.kt:308)
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:215)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:434)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:429)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:414)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
W/System.err: java.lang.IllegalStateException: returnCode = -10008
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseSsoFrame(PacketFactory.kt:308)
W/System.err: at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:215)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:434)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:429)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:414)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
W/System.err: java.lang.IllegalStateException: returnCode = -10008
W/System.err: at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseSsoFrame(PacketFactory.kt:308)
at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:215)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:434)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:429)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:414)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
I/System.out: �[91mBot(778162278) 21:01:41 : Init failed. Retrying in 3s...
I/System.out: �[0mNetwork(778162278) 21:01:41 : Packet: WtLogin.Login.LoginPacketResponse.DeviceLockLogin
I/System.out: �[0mNetwork(778162278) 21:01:41 : Send done: wtlogin.login
I/System.out: �[0mNetwork(778162278) 21:01:42 : Packet: LoginPacketResponse.Success
I/System.out: �[92mNetwork(778162278) 21:01:42 : Login successful
I/System.out: �[0mNetwork(778162278) 21:01:42 : Send done: StatSvc.register
I/System.out: �[0mNetwork(778162278) 21:01:42 : Packet: Response(StatSvc.register)
I/System.out: �[92mBot(778162278) 21:01:42 : Reconnected successfully
I/System.out: �[92mNetwork(778162278) 21:01:44 : 开始加载好友信息
I/System.out: �[92mNetwork(778162278) 21:01:44 : 开始加载群组列表与群成员列表
W/System.err: java.lang.IllegalStateException: bot is dead therefore can't send any packet
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.sendAndExpect(QQAndroidBotNetworkHandler.kt:596)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.sendAndExpect$default(QQAndroidBotNetworkHandler.kt:592)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.reloadGroupList(QQAndroidBotNetworkHandler.kt:280)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$init$2$4$2.invokeSuspend(QQAndroidBotNetworkHandler.kt:311)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
W/System.err: Suppressed: java.lang.IllegalStateException: bot is dead therefore can't send any packet
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.sendAndExpect(QQAndroidBotNetworkHandler.kt:596)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.reloadFriendList(QQAndroidBotNetworkHandler.kt:217)
at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$init$2$4$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:310)
... 6 more
I/System.out: �[31mBot(778162278) 21:01:44 : Cannot init. some features may be affected
�[92mBot(778162278) 21:01:44 : Login successful
W/System.err: java.lang.Exception: Toast callstack! strTip=登录成功
W/System.err: at android.widget.Toast.show(Toast.java:130)
at net.mamoe.mirai.demo.MainActivity$onSuccess$2.invokeSuspend(MainActivity.kt:55)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
D/EGL_adreno: eglMakeCurrent: 0xacc051e0: ver 3 1 (tinfo 0xacc031f0)
D/EGL_adreno: eglMakeCurrent: 0xacc051e0: ver 3 1 (tinfo 0xacc031f0)
E/EGL_adreno: tid 3217: eglSurfaceAttrib(1323): error 0x3009 (EGL_BAD_MATCH)
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x954958c0, error=EGL_BAD_MATCH
D/EGL_adreno: eglMakeCurrent: 0xacc051e0: ver 3 1 (tinfo 0xacc031f0)
D/EGL_adreno: eglMakeCurrent: 0xacc051e0: ver 3 1 (tinfo 0xacc031f0)
W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
The text was updated successfully, but these errors were encountered: