Bot(358601743) 19:25:25 : Received: GroupMessage(group=XXXX, senderName=XXX, sender=XXX, permission=OWNER, message=tt)
Bot(358601743) 19:25:25 : An exception was thrown under a coroutine of Bot
Bot(358601743) 19:25:25 : An exception was thrown under a coroutine of Bot
Bot(358601743) 19:25:25 : An exception was thrown under a coroutine of Bot
java.lang.IllegalStateException: WeakRef is released
at net.mamoe.mirai.utils.UnsafeWeakRef.get-impl(WeakRef.kt:22)
at net.mamoe.mirai.utils.WeakRefKt.getValue-oCG-Uto(WeakRef.kt:33)
at net.mamoe.mirai.qqandroid.MemberImpl.getQq(ContactImpl.kt)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:264)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:183)
at net.mamoe.mirai.message.GroupMessage.getBot(GroupMessage.kt:38)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invokeSuspend(subscriber.kt:212)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:154)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.InternalEventListenersKt$callAndRemoveIfRequired$$inlined$forEachNode$lambda$1.invokeSuspend(InternalEventListeners.kt:165)
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:561)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)
java.lang.IllegalStateException: WeakRef is released
at net.mamoe.mirai.utils.UnsafeWeakRef.get-impl(WeakRef.kt:22)
at net.mamoe.mirai.utils.WeakRefKt.getValue-oCG-Uto(WeakRef.kt:33)
at net.mamoe.mirai.qqandroid.MemberImpl.getQq(ContactImpl.kt)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:264)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:183)
at net.mamoe.mirai.message.GroupMessage.getBot(GroupMessage.kt:38)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invokeSuspend(subscriber.kt:212)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:154)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.InternalEventListenersKt$callAndRemoveIfRequired$$inlined$forEachNode$lambda$1.invokeSuspend(InternalEventListeners.kt:165)
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:561)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)
java.lang.IllegalStateException: WeakRef is released
at net.mamoe.mirai.utils.UnsafeWeakRef.get-impl(WeakRef.kt:22)
at net.mamoe.mirai.utils.WeakRefKt.getValue-oCG-Uto(WeakRef.kt:33)
at net.mamoe.mirai.qqandroid.MemberImpl.getQq(ContactImpl.kt)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:264)
at net.mamoe.mirai.qqandroid.MemberImpl.getBot(ContactImpl.kt:183)
at net.mamoe.mirai.message.GroupMessage.getBot(GroupMessage.kt:38)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invokeSuspend(subscriber.kt:212)
at net.mamoe.mirai.simpleloader.IndexKt$main$$inlined$subscribeMessages$1$2.invoke(subscriber.kt)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:154)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.event.internal.Handler.onEvent(InternalEventListeners.kt:59)
at net.mamoe.mirai.event.internal.InternalEventListenersKt$callAndRemoveIfRequired$$inlined$forEachNode$lambda$1.invokeSuspend(InternalEventListeners.kt:165)
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:561)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)
demo源码
能够正常登录,但是在接收群信息时,会出现下面的错误。同时无法根据demo里面的内容进行自动回复。日志如下: