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

在 解析 NewContact.SystemMsgNewGroup, subType=5, groupMsgType=16 时遇到了意料之中的问题 #1467

Closed
gtr3qq opened this issue Aug 9, 2021 · 3 comments · Fixed by #1369
Labels
x:for-dev 属性: 有关 -dev 版本的问题或来自 contextualBugReportException x:sync 属性: 与同步有关
Milestone

Comments

@gtr3qq
Copy link

gtr3qq commented Aug 9, 2021

2021-08-09 21:09:13 E/Bot.3615670142: java.lang.IllegalStateException: 在 解析 NewContact.SystemMsgNewGroup, subType=5, groupMsgType=16 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai: https://github.com/mamoe/mirai/issues/new   并描述此时机器人是否被踢出群等 调试信息: SystemMsg#24089519 {
            actionUin=0x00000000B398DC1C(3013139484)
            actionUinNick=香脆鱼饼干(群扒手不时拿点东西
            actionUinQqNick=香脆鱼饼干
            actions=[]
            actorUin=0x0000000000000000(0)
            cloneUin=0x0000000000000000(0)
            discussUin=0x0000000000000000(0)
            eimGroupId=0x0000000000000000(0)
            groupCode=0x000000002EDDCA59(786287193)
            groupExtFlag=0x402100C0(1075904704)
            groupFlagext3=0x00008080(32896)
            groupInfo=GroupInfo#18933679 {
                    appPrivilegeFlag=0x140800D0(336068816)
            }
            groupMsgType=0x00000010(16)
            groupName=锆石服务器(minecraft我的世界国际版基岩PE纯净生存服务器)
            groupOwnerUin=0x0000000000000000(0)
            msgActorDescribe=处理人:%action_uin%
            msgDescribe=已取消 %req_uin% 的管理员身份
            msgTitle=管理员设置
            reqUinAge=0x00000013(19)
            reqUinFaceid=0x00000A02(2562)
            reqUinGender=0x00000001(1)
            reqUinNick=kecz.lp
            subType=0x00000005(5)
    }
java.lang.IllegalStateException: 在 解析 NewContact.SystemMsgNewGroup, subType=5, groupMsgType=16 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai: https://github.com/mamoe/mirai/issues/new   并描述此时机器人是否被踢出群等 调试信息: SystemMsg#24089519 {
            actionUin=0x00000000B398DC1C(3013139484)
            actionUinNick=香脆鱼饼干(群扒手不时拿点东西
            actionUinQqNick=香脆鱼饼干
            actions=[]
            actorUin=0x0000000000000000(0)
            cloneUin=0x0000000000000000(0)
            discussUin=0x0000000000000000(0)
            eimGroupId=0x0000000000000000(0)
            groupCode=0x000000002EDDCA59(786287193)
            groupExtFlag=0x402100C0(1075904704)
            groupFlagext3=0x00008080(32896)
            groupInfo=GroupInfo#18933679 {
                    appPrivilegeFlag=0x140800D0(336068816)
            }
            groupMsgType=0x00000010(16)
            groupName=锆石服务器(minecraft我的世界国际版基岩PE纯净生存服务器)
            groupOwnerUin=0x0000000000000000(0)
            msgActorDescribe=处理人:%action_uin%
            msgDescribe=已取消 %req_uin% 的管理员身份
            msgTitle=管理员设置
            reqUinAge=0x00000013(19)
            reqUinFaceid=0x00000A02(2562)
            reqUinGender=0x00000001(1)
            reqUinNick=kecz.lp
            subType=0x00000005(5)
    }
        at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException(contextualBugReportException.kt:23)
        at net.mamoe.mirai.internal.network.protocol.packet.chat.NewContact$SystemMsgNewGroup$decode$2.invoke(NewContact.kt:233)
        at net.mamoe.mirai.internal.network.protocol.packet.chat.NewContact$SystemMsgNewGroup.decode(NewContact.kt:265)
        at net.mamoe.mirai.internal.network.protocol.packet.KnownPacketFactories.handleIncomingPacket$mirai_core(PacketFactory.kt:526)
        at net.mamoe.mirai.internal.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:247)
        at net.mamoe.mirai.internal.network.handler.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:593)
        at net.mamoe.mirai.internal.network.handler.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:588)
        at net.mamoe.mirai.internal.network.handler.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:570)
        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)
@gtr3qq
Copy link
Author

gtr3qq commented Aug 9, 2021

2021-08-09 21:09:13 V/Bot.3615670142: Event: MemberJoinRequestEvent(bot=Bot(3615670142), eventId=1628514554226209, message=问题:be版在哪些平台上架过\n答案:谷歌商店,taptap, fromId=3432617735, groupId=786287193, groupName=锆石服务器(minecraft我的世界国际版基岩PE纯净生存服务器), fromNick=逸, invitorId=null)
这条记录也应该有关。

@Karlatemp Karlatemp changed the title 额,有个错误日志劳烦看一下,机器人依然在群里。 在 解析 NewContact.SystemMsgNewGroup, subType=5, groupMsgType=16 时遇到了意料之中的问题 Aug 9, 2021
@Him188 Him188 added this to the 2.8-M1 milestone Aug 11, 2021
@Him188 Him188 added the x:sync 属性: 与同步有关 label Aug 25, 2021
@Him188
Copy link
Member

Him188 commented Aug 27, 2021

@sandtechnology 猜测这个也是历史消息? 测试中能正常处理设置/取消管理员的事件

@Him188 Him188 added the x:for-dev 属性: 有关 -dev 版本的问题或来自 contextualBugReportException label Aug 27, 2021
@sandtechnology
Copy link
Collaborator

@sandtechnology 猜测这个也是历史消息? 测试中能正常处理设置/取消管理员的事件

是的 从这个通道过来的一般都是不需要处理的消息 因为这些是系统主动通知给管理员的(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:for-dev 属性: 有关 -dev 版本的问题或来自 contextualBugReportException x:sync 属性: 与同步有关
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants