收集 2.11.0-RC 及以上的过一段时间后无法发送或接收消息的日志
-
2.11.0-RC 将会包含对稳定性的提升,若在该版本及之后仍遇到正常使用一段时间后发送消息在群内看不到、每次发消息就报错、无法接收新消息的问题,可以在此贴回复并附带以下信息(每条都必要):
- 确保问题不是在刚启动时出现(刚启动时出现问题只需要等待几分钟即可)
- 自启动到出现问题的全部日志(console 的日志在 logs 目录)
- BotConfiguration 全部设置(在使用
BotFactory
构建 Bot 时配置的那个)(若使用 console 则无需提供) - 发送消息目标:群/好友
- 消息内容:纯文本/图片/混合
- 发送消息频率:每分钟/每小时/每/不均匀
- 问题是否在 2.11.0-RC 以前遇到过:是/否
也可以额外提供你觉得可能有用的信息。
如果你的日志包含敏感信息或不想公开,可以发送至 support@mamoe.net,并以本贴标题作为邮件标题。
-
-
2.11.0-RC直接miraiconsole初始化失败,退出了。
这个版本更新刚有的,之前没有。
下面是日志:[92m2022-05-03 21:59:42 I/main: Starting mirai-console...[0m[m
[92m2022-05-03 21:59:42 I/main: Backend: version 2.11.0-RC, built on 2022-05-02 18:45:09.[0m[m
[92m2022-05-03 21:59:42 I/main: Frontend Terminal: version 2.11.0-RC, provided by Mamoe Technologies[0m[m
[92m2022-05-03 21:59:42 I/main: Welcome to visit https://mirai.mamoe.net/[0m[m
[31m2022-05-03 21:59:43 E/main: Failed to init MiraiConsole.
java.lang.ExceptionInInitializerErrorat java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at net.mamoe.mirai.FindMiraiInstanceKt.findMiraiInstance(findMiraiInstance.kt:18)
at net.mamoe.mirai._MiraiInstance.get(IMirai.kt:352)
at net.mamoe.mirai.Mirai.getInstance(IMirai.kt:40)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.getSerializersModule(MessageSerializersImpl.kt:196)
at net.mamoe.mirai.message.MessageSerializers$INSTANCE.getSerializersModule(MessageSerializers.kt)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl$createYaml$1.invoke(MultiFilePluginDataStorageImpl.kt:101)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl$createYaml$1.invoke(MultiFilePluginDataStorageImpl.kt:99)
at net.mamoe.yamlkt.YamlKt.Yaml(Yaml.kt:242)
at net.mamoe.yamlkt.YamlKt.Yaml$default(Yaml.kt:240)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.createYaml(MultiFilePluginDataStorageImpl.kt:99)
at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.load(MultiFilePluginDataStorageImpl.kt:40)
at net.mamoe.mirai.console.internal.data.builtins.ConsoleDataScopeImpl.addAndReloadConfig(ConsoleDataScopeImpl.kt:41)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:160)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:76)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101)
at org.itxtech.mcl.Loader.start(Loader.java:129)
at org.itxtech.mcl.Loader.main(Loader.java:53)
Caused by: java.lang.ClassCastException: class net.mamoe.mirai.internal.MiraiImpl$Companion cannot be cast to class net.mamoe.mirai.IMirai (net.mamoe.mirai.internal.MiraiImpl$Companion and net.mamoe.mirai.IMirai are in unnamed module of loader java.net.URLClassLoader @2f59fa)
at net.mamoe.mirai.FindMiraiInstanceKt.findMiraiInstance(findMiraiInstance.kt:18)
at net.mamoe.mirai._MiraiInstance.get(IMirai.kt:352)
at net.mamoe.mirai.Mirai.getInstance(IMirai.kt:40)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.getSerializersModule(MessageSerializersImpl.kt:196)
at net.mamoe.mirai.internal.message.MessageSerializersImpl.registerSerializer(MessageSerializersImpl.kt:202)
at net.mamoe.mirai.message.MessageSerializers$INSTANCE.registerSerializer(MessageSerializers.kt)
at net.mamoe.mirai.internal.MiraiImpl.<clinit>(MiraiImpl.kt:74)
... 47 more
[0m[m
-
@MuShin 确认是最新版的问题,回退到旧版2.11.0-M1即正常。另外问问如何在MCL本体报错的情况下禁用updater(
-
@MuShin 这与本贴内容无关. 这个问题会在下个版本修复.
-