DrawMeme - 基于Skiko的奇怪的图片生成器
-
换用skiko legacy版本
报错和上面不一样了
2022-04-20 15:24:58 E/DrawMeme: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at org.laolittle.plugin.Fonts.get(Fonts.kt:25)
at org.laolittle.plugin.Fonts.get$default(Fonts.kt:12)
at org.laolittle.plugin.draw.DrawMeme.onEnable(DrawMeme.kt:47)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:117)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:164)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:36)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:47)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:135)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:177)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:202)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:401)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:156)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:155)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.itxtech.mcl.Utility.bootJars(Utility.java:89)
at org.itxtech.mcl.Utility.bootJars(Utility.java:79)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:101)
at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109)
at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:145)
at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:184)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:146)
at org.itxtech.mcl.Loader.start(Loader.java:184)
at org.itxtech.mcl.Loader.main(Loader.java:79)
Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find skiko-windows-x64.dll.sha256, proper native dependency missing.
at org.jetbrains.skiko.Library.findAndLoad(Library.kt:105)
at org.jetbrains.skiko.Library.load(Library.kt:59)
at org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12)
at org.jetbrains.skia.Typeface.<clinit>(Typeface.kt:55)
... 28 more -
退回到1.03 skiko版本可以加载了,但是摸头好像指令没有反应
-
插个眼等修复
-
@MengSuishiqu 是这样
-
@1301715759 下个版本修复
-
2022-04-20 19:04:57 E/DrawMeme: Exception in coroutine Plugin org.laolittle.plugin.draw.DrawMeme of DrawMeme
java.lang.RuntimeException: Can't wrap nullptr
at org.jetbrains.skia.impl.Native.<init>(Native.jvm.kt:40)
at org.jetbrains.skia.impl.Managed.<init>(Managed.jvm.kt:11)
at org.jetbrains.skia.impl.Managed.<init>(Managed.jvm.kt:9)
at org.jetbrains.skia.shaper.Shaper.<init>(Shaper.kt:13)
at org.jetbrains.skia.shaper.Shaper$Companion.makeShapeDontWrapOrReorder(Shaper.kt:53)
at org.jetbrains.skia.shaper.Shaper$Companion.makeShapeDontWrapOrReorder(Shaper.kt:47)
at org.jetbrains.skia.TextLine$Companion.make(TextLine.kt:13)
at org.jetbrains.skia.TextLine$Companion.make(TextLine.kt:9)
at org.laolittle.plugin.draw.meme.PornHubKt.pornHub(PornHub.kt:15)
at org.laolittle.plugin.draw.DrawMeme$onEnable$2$1.invokeSuspend(DrawMeme.kt:62)
at org.laolittle.plugin.draw.DrawMeme$onEnable$2$1.invoke(DrawMeme.kt)
at org.laolittle.plugin.draw.DrawMeme$onEnable$2$1.invoke(DrawMeme.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invokeSuspend(messageSubscribersInternal.kt:58)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:253)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
at net.mamoe.mirai.internal.event.InternalEventListenersKt.callAndRemoveIfRequired(InternalEventListeners.kt:115)
at net.mamoe.mirai.event._EventBroadcast.broadcastImpl(Event.kt:174)
at net.mamoe.mirai.IMirai.broadcastEvent(IMirai.kt:318)
at net.mamoe.mirai.internal.MiraiImpl.broadcastEvent$suspendImpl(MiraiImpl.kt:308)
at net.mamoe.mirai.internal.MiraiImpl.broadcastEvent(MiraiImpl.kt)
at net.mamoe.mirai.event._EventBroadcast.broadcastPublic$suspendImpl(Event.kt:161)
at net.mamoe.mirai.event._EventBroadcast.broadcastPublic(Event.kt)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:146)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invokeSuspend(EventDispatcher.kt:90)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invoke(EventDispatcher.kt)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invoke(EventDispatcher.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:89)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast(EventDispatcher.kt)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invokeSuspend(EventDispatcher.kt:105)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcastAsync-kKe4JaQ(EventDispatcher.kt:102)
at net.mamoe.mirai.internal.network.components.EventDispatcher.broadcastAsync-kKe4JaQ$default(EventDispatcher.kt:35)
at net.mamoe.mirai.internal.network.components.EventBroadcasterPacketHandler.impl(PacketHandler.kt:87)
at net.mamoe.mirai.internal.network.components.EventBroadcasterPacketHandler.handlePacket(PacketHandler.kt:73)
at net.mamoe.mirai.internal.network.components.PacketHandlerChain.handlePacket(PacketHandler.kt:42)
at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invokeSuspend(NetworkHandlerSupport.kt:84)
at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invoke(NetworkHandlerSupport.kt)
at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invoke(NetworkHandlerSupport.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.collectReceived$mirai_core(NetworkHandlerSupport.kt:82)
at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$PacketDecodePipeline$send$1.invokeSuspend(NettyNetworkHandler.kt:178)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)
大佬,还是不行 -
@MengSuishiqu 删除
config/org.laolittle.plugin.SkikoMirai/FontConfig.yml
后再启动mirai试试 -
@tsudzuki 佬,为啥加载了指令没反应嘞,没有报错,用的1.03的
-
@HaMan 有装前置么
-
@tsudzuki 是这个吗
-
前置字体都装好了但是q群里发指令机器人没有任何回复,cmd后台也没有任何回复
-
@HaMan 我也是这个问题
-
大佬请帮忙看看这个是什么情况,也按照说明安装了那些库文件
有两端报错
[0m[m
[92m2022-04-22 01:53:48 I/plugin: Successfully loaded plugin PatPat v2.0[0m[m
[92m2022-04-22 01:53:48 I/plugin: Successfully loaded plugin SkikoMirai v1.0.6[0m[m
[92m2022-04-22 01:53:48 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop[0m[m
[92m2022-04-22 01:53:48 I/AutoGroup: 开始折磨群友[0m[m
[92m2022-04-22 01:53:49 I/BilibiliDynamic: BiliBili UID: 76520107[0m[m
[92m2022-04-22 01:53:49 I/DrawMeme: Plugin loaded[0m[m
[31m2022-04-22 01:53:49 E/DrawMeme: java.lang.NoClassDefFoundError: org/laolittle/plugin/Fonts
java.lang.NoClassDefFoundError: org/laolittle/plugin/Fonts
at DrawMeme-1.0.5.mirai.jar//org.laolittle.plugin.draw.DrawMeme.onEnable(DrawMeme.kt:47)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:117)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:258)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:181)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:224)
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(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68)
Caused by: java.lang.ClassNotFoundException: org.laolittle.plugin.Fonts
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.resolvePluginPublicClass$mirai_console(JvmPluginClassLoader.kt:209)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.loadClass(JvmPluginClassLoader.kt:249)
... 43 more
还有一段报错是这样的:
[0m[m
[31m2022-04-22 01:53:52 E/SkikoMirai: java.lang.Error: Unknown arch x86
java.lang.Error: Unknown arch x86
at org.jetbrains.skiko.OsArch_jvmKt$hostArch$2.invoke(OsArch.jvm.kt:19)
at org.jetbrains.skiko.OsArch_jvmKt$hostArch$2.invoke(OsArch.jvm.kt:14)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.jetbrains.skiko.OsArch_jvmKt.getHostArch(OsArch.jvm.kt:14)
at org.jetbrains.skiko.OsArch_jvmKt$hostId$2.invoke(OsArch.jvm.kt:24)
at org.jetbrains.skiko.OsArch_jvmKt$hostId$2.invoke(OsArch.jvm.kt:23)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.jetbrains.skiko.OsArch_jvmKt.getHostId(OsArch.jvm.kt:23)
at org.jetbrains.skiko.Library.findAndLoad(Library.kt:73)
at org.jetbrains.skiko.Library.load(Library.kt:59)
at org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12)
at SkikoMirai-1.0.6.mirai.jar//org.laolittle.plugin.SkikoMirai.onEnable(SkikoMirai.kt:88)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:117)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:258)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:181)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:224)
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(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68)
我是这么安装的
请大佬帮帮! -
mirai 版本 v2.11.0-M2.2;DrawMeme v1.0.5(非 fix)。
遇到的问题是一段时间来 Skiko 1.0.5、1.0.6 含 legacy 版无法使用,只能回退到 1.0.3,1.0.3 中除摸摸 GIF 无效外全部正常。更换 DrawMeme v1.0.5-fix 后在 1.0.3 之后版本中直接无法启用。
lib 放置正常、FontConfig 和字体放置正常(1.0.3 下没问题)情况下出现的问题。目录: E:\DroneBase\mirai-windows-amd64\data\org.laolittle.plugin.SkikoMirai\lib Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2022/4/22 4:33 816640 gifski.dll -a---- 2022/4/22 5:07 4714696 libgifski.so -a---- 2022/4/14 13:06 16352768 skiko-windows-x64.dll -a---- 2022/4/14 13:06 64 skiko-windows-x64.dll.sha256
以下是具体情况,上文前提下总会复现。
1、1.0.5 非 legacy 版本装入后启动 mirai:报错后退出。
2022-04-22 05:18:39 W/JvmPluginLoader: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jetbrains.skiko:skiko-awt:pom:0.7.17 in (https://maven.aliyun.com/repository/public) org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jetbrains.skiko:skiko-awt:pom:0.7.17 in (https://maven.aliyun.com/repository/public) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48) ... at org.itxtech.mcl.Loader.main(Loader.java:68) 2022-04-22 05:18:39 W/JvmPluginLoader: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jetbrains.skiko:skiko-awt:jar:0.7.17 in (https://maven.aliyun.com/repository/public) org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jetbrains.skiko:skiko-awt:jar:0.7.17 in (https://maven.aliyun.com/repository/public) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48) ... at org.itxtech.mcl.Loader.main(Loader.java:68) 2022-04-22 05:18:39 I/plugin: Cannot load plugin SkikoMirai v1.0.5 2022-04-22 05:18:39 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while loading SkikoMirai v1.0.5 at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:248) ... at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:408) ... 42 more
2、1.0.5 legacy 装入后启动 mirai:「Skiko 插件不会启用」,Emojimix 正常,摸无效,其他生成均报错,后不再响应生成指令。
启动时:
2022-04-22 05:46:40 W/stderr: java.net.UnknownHostException: 请求的名称有效,但是找不到请求的类型的数据。 (raw.githubusercontent.com) 2022-04-22 05:46:40 W/stderr: at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ... 2022-04-22 05:46:40 W/stderr: at java.base/java.lang.Thread.run(Thread.java:833) 2022-04-22 05:46:40 E/SkikoMirai: 无法自动获取Skiko运行所需库,请自行前往下载 Github: https://github.com/LaoLittle/SkikoLibs/tree/master/skiko Gitee: https://gitee.com/laolittle/skiko-libs/tree/master/skiko 遇到意外的错误,本插件将不会启用 2022-04-22 05:46:41 I/DrawMeme: Plugin loaded SkLoadICU: datafile 'E:\DroneBase\mirai-windows-amd64\data\org.laolittle.plugin.SkikoMirai\lib\icudtl.dat' is missing SkLoadICU: datafile 'E:\Program Files\Java\jdk-18\bin\icudtl.dat' is missing 2022-04-22 05:46:41 I/main: 13 plugin(s) enabled. ...
其他生成均报错:
2022-04-22 05:49:02 E/DrawMeme: Exception in coroutine Plugin org.laolittle.plugin.draw.DrawMeme of DrawMeme java.lang.RuntimeException: Can't wrap nullptr at SkikoMirai-1.0.5.legacy.jar//org.jetbrains.skia.impl.Native.<init>(Native.jvm.kt:40) ...
3、1.0.6 装入后启动 mirai:报错启动,Emojimix 正常,摸无效,其他生成均报错,后不再响应生成指令。
启动时:
2022-04-22 05:54:48 I/stdout: 7be7808ac9e142a5d8df694abe7dcdc8873881a742fa4eb4b71318ab05c839b4 SkLoadICU: datafile 'E:\DroneBase\mirai-windows-amd64\data\org.laolittle.plugin.SkikoMirai\lib\icudtl.dat' is missing SkLoadICU: datafile 'E:\Program Files\Java\jdk-18\bin\icudtl.dat' is missing 2022-04-22 05:54:49 I/SkikoMirai: Plugin loaded 2022-04-22 05:54:50 I/DrawMeme: Plugin loaded 2022-04-22 05:54:50 I/main: 13 plugin(s) enabled. ...
其他生成均报错:
2022-04-22 05:59:08 E/DrawMeme: Exception in coroutine Plugin org.laolittle.plugin.draw.DrawMeme of DrawMeme java.lang.RuntimeException: Can't wrap nullptr at org.jetbrains.skia.impl.Native.<init>(Native.jvm.kt:40) ...
4、1.0.6 legacy 装入后启动 mirai:同上。
生成时报错:
2022-04-22 06:04:48 E/DrawMeme: Exception in coroutine Plugin org.laolittle.plugin.draw.DrawMeme of DrawMeme java.lang.RuntimeException: Can't wrap nullptr at SkikoMirai-1.0.6.legacy.jar//org.jetbrains.skia.impl.Native.<init>(Native.jvm.kt:40) ...
5、更换 DrawMeme 1.0.5-fix 搭 1.0.6 legacy 时:报错启动,完全不响应指令。
2022-04-22 06:11:48 I/DrawMeme: Plugin loaded 2022-04-22 06:11:48 W/DrawMeme: Linked class org.laolittle.plugin.Fonts in SkikoMirai-1.0.6.jar but plugin not depend on it. 2022-04-22 06:11:48 W/DrawMeme: Class loading logic may change in feature. 2022-04-22 06:11:48 E/DrawMeme: java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError at SkikoMirai-1.0.6.jar//org.laolittle.plugin.Fonts.get(Fonts.kt:25) at SkikoMirai-1.0.6.jar//org.laolittle.plugin.Fonts.get$default(Fonts.kt:12) at DrawMeme-1.0.5-fix.jar//org.laolittle.plugin.draw.DrawMeme.onEnable(DrawMeme.kt:47) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:117) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:258) ...
6、更换 DrawMeme 1.0.5-fix 搭 1.0.3 时:报错启动,除摸无响应外全正常。
2022-04-22 06:16:57 I/DrawMeme: Plugin loaded 2022-04-22 06:16:57 W/DrawMeme: Linked class org.laolittle.plugin.Fonts in SkikoMirai-1.0.3.jar but plugin not depend on it. 2022-04-22 06:16:57 W/DrawMeme: Class loading logic may change in feature. 2022-04-22 06:16:57 I/MCL Addon: iTXTech MCL Version: 1.2.2-60c67fb ...
7、更换 DrawMeme 1.0.5 非 fix 版和 SkikoMirai 1.0.3 时:无报错正常启动,除摸无响应外全正常。
-
@SyuueenN 这是mirai在处理插件依赖时的一种特殊情况,这种情况下他是先加载插件后加载前置(等待mirai后续修复),所以会爆
Linked class
非法访问,而我的前置会在启用时做一些准备工作,否则就无法使用。大概今天下午我会做一些修改,尝试访问绘图库之前先进行初始化 -
@SyuueenN 还有就是,摸头现在有一个很简单但很严重的bug,所以请等待drawmeme下次更新(大概也是下午,写好了没有发)
-
@SyuueenN 1.0.6报错是因为windows平台需要多添加一个文件,后续我会上传
-
此回复已被删除! -
@prslc-0 换legacy
-
此回复已被删除!