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

GroupImpl 时遇到了意料之中的问题 #1848

Closed
Nambers opened this issue Jan 22, 2022 · 4 comments
Closed

GroupImpl 时遇到了意料之中的问题 #1848

Nambers opened this issue Jan 22, 2022 · 4 comments
Labels
M 优先级: 主要 s:core 子系统: mirai-core t:bug 类型: bug
Milestone

Comments

@Nambers
Copy link
Contributor

Nambers commented Jan 22, 2022

问题描述

bot是692*****3
所有群都不是最近加的或者已经退出
89*****9群里bot是管理员

复现

启动core项目

mirai-core 版本

2.10.0-RC

bot-protocol

ANDROID_PAD

其他组件版本

No response

系统日志

2022.01.22 16:48:09 [INFO ] mamoe.mirai.Bot - Start loading group list...
2022.01.22 16:48:09 [INFO ] mamoe.mirai.Bot - Successfully loaded friend list: 4 in total
2022.01.22 16:48:10 [ERROR] internal.contact.GroupImpl - null
net.mamoe.mirai.internal.message.ContextualBugReportException: 在 GroupImpl 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai: https://github.com/mamoe/mirai/issues/new   并告知此时 Bot 是否为群管理员或群主, 和是否刚刚加入或离开这个群 调试信息: groupId: 89*****9
groupUin: 89*****9
membersCount: 3
botId: 692*****3
owner: 481*****3
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException(contextualBugReportException.kt:26) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException$default(contextualBugReportException.kt:20) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.contact.GroupImplKt.GroupImpl(GroupImpl.kt:96) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.addGroupToBot(ContactUpdater.kt:212) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.access$addGroupToBot(ContactUpdater.kt:74) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl$addGroupToBot$1.invokeSuspend(ContactUpdater.kt) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
2022.01.22 16:48:10 [ERROR] internal.contact.GroupImpl - null
net.mamoe.mirai.internal.message.ContextualBugReportException: 在 GroupImpl 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai: https://github.com/mamoe/mirai/issues/new   并告知此时 Bot 是否为群管理员或群主, 和是否刚刚加入或离开这个群 调试信息: groupId: 1067474509
groupUin: 1067*****9
membersCount: 2
botId: 692*****3
owner: 692*****3
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException(contextualBugReportException.kt:26) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException$default(contextualBugReportException.kt:20) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.contact.GroupImplKt.GroupImpl(GroupImpl.kt:96) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.addGroupToBot(ContactUpdater.kt:212) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.access$addGroupToBot(ContactUpdater.kt:74) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl$addGroupToBot$1.invokeSuspend(ContactUpdater.kt) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
2022.01.22 16:48:10 [ERROR] internal.contact.GroupImpl - null
net.mamoe.mirai.internal.message.ContextualBugReportException: 在 GroupImpl 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai: https://github.com/mamoe/mirai/issues/new   并告知此时 Bot 是否为群管理员或群主, 和是否刚刚加入或离开这个群 调试信息: groupId: 78*****5
groupUin: 78*****5
membersCount: 4
botId: 692*****3
owner: 193*****5
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException(contextualBugReportException.kt:26) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.message.ContextualBugReportExceptionKt.contextualBugReportException$default(contextualBugReportException.kt:20) ~[mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.contact.GroupImplKt.GroupImpl(GroupImpl.kt:96) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.addGroupToBot(ContactUpdater.kt:212) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl.access$addGroupToBot(ContactUpdater.kt:74) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at net.mamoe.mirai.internal.network.components.ContactUpdaterImpl$addGroupToBot$1.invokeSuspend(ContactUpdater.kt) [mirai-core-jvm-2.10.0-RC.jar:2.10.0-RC]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) [kotlin-stdlib-1.6.0.jar:1.6.0-release-798(1.6.0)]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) [kotlinx-coroutines-core-jvm-1.6.0.jar:?]
2022.01.22 16:48:10 [INFO ] mamoe.mirai.Bot - Successfully loaded group list: 3 in total.

网络日志

none

补充信息

No response

@AdoptOSS
Copy link
Contributor

Same problem

@Stardust-minus
Copy link
Contributor

+1

@sandtechnology
Copy link
Collaborator

sandtechnology commented Jan 22, 2022

这应该是一个 bug, 引入的commit为:4a32f03

internal val botAsMemberInitialized = ::botAsMember.isInitialized

此处应该是 internal val botAsMemberInitialized get()=::botAsMember.isInitialized

@Him188 Him188 added C 优先级: 最高 s:core 子系统: mirai-core t:bug 类型: bug labels Jan 22, 2022
@Him188 Him188 added this to the 2.10.0 milestone Jan 22, 2022
@Him188 Him188 added M 优先级: 主要 and removed C 优先级: 最高 labels Jan 22, 2022
@Him188 Him188 closed this as completed in bd71c48 Jan 22, 2022
Him188 added a commit that referenced this issue Jan 22, 2022
@Him188
Copy link
Member

Him188 commented Jan 22, 2022

这个只会有日志, 不影响实际功能, 2.10.0-RC2 修复

strear pushed a commit to strear/mirai that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 s:core 子系统: mirai-core t:bug 类型: bug
Projects
None yet
Development

No branches or pull requests

5 participants