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

群主解散群后再恢复群,群列表没有正确刷新 #410

Closed
RedBeanN opened this issue Jun 29, 2020 · 1 comment
Closed

群主解散群后再恢复群,群列表没有正确刷新 #410

RedBeanN opened this issue Jun 29, 2020 · 1 comment
Labels
N 优先级: 一般 t:feature 类型: 新特性 x:protocol 属性: 协议相关
Milestone

Comments

@RedBeanN
Copy link

挺神奇的一个操作,群主解散群以后再恢复,获取群列表没有恢复后的群,console也没有该群的对话消息

第一次遇到的时候(当时还是mirai-core-qqandroid-1.0.2)发送对话有错误日志,复现的时候(强制更新到了mirai-core-qqandroid-1.0.3)问题仍然存在但没有报错也没有相关的日志

以下是第一次遇到时的报错

20:12:43 [INFO] [NETWORK ERROR] java.util.NoSuchElementException: group xxxxxxxxx
	at net.mamoe.mirai.Bot.getGroup(Bot.kt:134)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.chat.receive.OnlinePush$ReqPush$decode$packets$1.invoke(OnlinePush.kt:613)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.chat.receive.OnlinePush$ReqPush$decode$packets$1.invoke(OnlinePush.kt:241)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.chat.receive.OnlinePush$ReqPush$deco$2.invoke(OnlinePush.kt:252)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.chat.receive.OnlinePush$ReqPush$deco$2.invoke(OnlinePush.kt:241)
	at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:277)
	at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
	at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$generifiedParsePacket$2.invokeSuspend(QQAndroidBotNetworkHandler.kt:695)
	at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$generifiedParsePacket$2.invoke(QQAndroidBotNetworkHandler.kt)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.handleIncomingPacket$mirai_core_qqandroid(PacketFactory.kt:274)
	at net.mamoe.mirai.qqandroid.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:230)
	at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:470)
	at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:465)
	at net.mamoe.mirai.qqandroid.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:450)
	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)

如何复现

  1. 群主选择解散群聊(此时bot会收到BotLeaveEvent
  2. QQ恢复系统 选择恢复群聊
  3. 在恢复后的群里发消息,bot收不到对应的消息,console没有对应的输出

版本

mirai: mirai-core-qqandroid-1.0.3

推测可能和 #404 是相同的问题

@Him188 Him188 added t:feature 类型: 新特性 N 优先级: 一般 x:protocol 属性: 协议相关 labels Jun 29, 2020
@Him188 Him188 added this to the 1.3.0 milestone Jun 29, 2020
@ryoii
Copy link
Member

ryoii commented Jul 8, 2020

确实和 #404 是相同问题

@ryoii ryoii closed this as completed Jul 9, 2020
@Him188 Him188 modified the milestones: 1.3.0, 1.1.0 Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 t:feature 类型: 新特性 x:protocol 属性: 协议相关
Projects
None yet
Development

No branches or pull requests

3 participants