iTXTech / mirai-native

强大的 mirai 原生插件加载器
GNU Affero General Public License v3.0
371 stars 140 forks source link

无法正常启动/加载插件 #175

Closed timeance closed 1 year ago

timeance commented 1 year ago

描述这个Bug 尝试了各种版本的mirai和插件,均无法正常启动或者加载插件后崩溃

复现步骤

期望的行为 能够在mirai 2.13版本及以上正常运行

截图和日志

当使用java16之后...

---

当使用 #173 里的修改版后,一旦触发cq插件就会崩溃

2023-03-11 01:30:35 E/MiraiNative: Exception in coroutine Plugin org.itxtech.mirainative of MiraiNative java.lang.IllegalStateException: Send message failed: MessageSvcPbSendMsg.Response.Failed(resultType=46, errorCode=0, errorMessage=) at net.mamoe.mirai.internal.message.protocol.impl.GeneralMessageSenderProtocol$GeneralMessageSender.sendSinglePacket(GeneralMessageSenderProtocol.kt:150) at net.mamoe.mirai.internal.message.protocol.impl.GeneralMessageSenderProtocol$GeneralMessageSender.access$sendSinglePacket(GeneralMessageSenderProtocol.kt:50) at net.mamoe.mirai.internal.message.protocol.impl.GeneralMessageSenderProtocol$GeneralMessageSender$sendSinglePacket$1.invokeSuspend(GeneralMessageSenderProtocol.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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)



**运行环境**
 - 操作系统:winser 2019
 - `mirai core` 版本:2.13
 - `mirai console` 版本:2.13
 - `mirai native` 版本:2.13
 - `Java` 运行时版本:11.07 x86

**更多信息**
如果有其他相关的信息可以填写在此处。
timeance commented 1 year ago

破案了,原来是QQ号被临时封锁,部分群无法发送消息。

现在运行良好: