iTXTech / mirai-native

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

在使用自动撤回时报错 #148

Closed 502milk closed 2 years ago

502milk commented 3 years ago

使用最新代码构建的版本,自动撤回的内如会导致一次报错,报错后再无撤回动作

日志 E/MiraiNative: Exception in coroutine Plugin MiraiNative of MiraiNative java.lang.IllegalArgumentException: Failed requirement. at net.mamoe.mirai.internal.network.protocol.packet.chat.PbMessageSvc$PbMsgWithDraw.createForGroupMessage(PbMessageSvc.kt:54) at net.mamoe.mirai.internal.network.protocol.packet.chat.PbMessageSvc$PbMsgWithDraw.createForGroupMessage$default(PbMessageSvc.kt:47) at net.mamoe.mirai.internal.MiraiImpl.recallMessage$suspendImpl(MiraiImpl.kt:475) at net.mamoe.mirai.internal.MiraiImpl.recallMessage(MiraiImpl.kt) at net.mamoe.mirai.message.data.MessageSource$Key.recall(MessageSource.kt:209) at org.itxtech.mirainative.manager.CacheManager$recall$1.invokeSuspend(CacheManager.kt:112) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

运行环境

PeratX commented 2 years ago

请升级到最新版尝试