Cipher.AES/GCM/NoPadding, mode: not initialized, algorithm from: (no provider) net.mamoe.mirai.internal.deps.okhttp3.internal.connection.RealCall$AsyncCall@2ca114fc #2550
[91m2023-03-06 22:34:33 E/Net 2305339556: Exception in coroutine 'BotInitProcessor.init'
java.lang.IllegalStateException: Exception in attached Job 'BotInitProcessor.init'
at net.mamoe.mirai.internal.network.handler.state.JobAttachStateObserver$stateChanged0$1.invokeSuspend(JobAttachStateObserver.kt:40)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: StateSwitchingException(old=StateLoading, new=StateClosed, cause=null)
at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.setStateImpl$mirai_core(NetworkHandlerSupport.kt:352)
at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler.close(CommonNetworkHandler.kt:418)
at net.mamoe.mirai.internal.network.handler.selector.SelectorNetworkHandler.close(SelectorNetworkHandler.kt:119)
at net.mamoe.mirai.internal.AbstractBot.close(AbstractBot.kt:115)
at net.mamoe.mirai.internal.QQAndroidBot.close(QQAndroidBot.kt:97)
at net.mamoe.mirai.Bot.closeAndJoin$suspendImpl(Bot.kt:245)
at net.mamoe.mirai.Bot.closeAndJoin(Bot.kt)
at net.mamoe.mirai.Bot.closeAndJoin$default(Bot.kt:244)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.shutdown$mirai_console(MiraiConsoleImplementation.kt:441)
at net.mamoe.mirai.console.MiraiConsole$INSTANCE$shutdown$1.invokeSuspend(MiraiConsole.kt:265)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
... 4 more
Suppressed: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:508)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
at java.base/java.lang.Thread.run(Thread.java:833)
[0m
[0m2023-03-06 22:37:42 V/Net 2305339556: Invalidate caches because hash file not available.[0m
[0m2023-03-06 22:37:42 V/Net 2305339556: No server list cached.[0m
[92m2023-03-06 22:37:43 I/Net 2305339556: ECDH key is invalid, start to fetch ecdh public key from server.[0m
问题描述
在代码无变化的情况下,仅仅重新运行,bot登录不上去,在某一步停止了,起初是停止到zh这里: 后来试了试刷新gradle,删掉bot的device.json和cache,然后变成停到这里:
两次运行的网络日志在后面。 似乎不是网络问题,因为换成另一个bot则可以成功登录。 这是怎么回事呢
复现
目前我的电脑上这个bot无论怎么重新运行都是这样。
mirai-core 版本
2.14.0
bot-protocol
ANDROID_PAD
其他组件版本
No response
系统日志
网络日志
补充信息
No response