DrawMeme - 基于Skiko的奇怪的图片生成器
-
@SyuueenN
前往此处下载icudtl.dat
放入库文件夹下https://github.com/LaoLittle/SkikoLibs/tree/master/skiko/0.7.17
-
2022-04-22 20:28:53 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.DrawMeme$onEnable$2$4.invokeSuspend(DrawMeme.kt:293)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
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)均为最新,然后只有摸头好了其他都坏了,泪目
-
@1301715759 字体
-
@tsudzuki
好像不是因为字体
我好像是把plugin-libraries/org/jetbrains下的skiko目录删了,它没有再重新生成
-
@1301715759 那你去修改
config/org.laolittle.SkikoMirai/FontConfig.yml
配置文件来指定字体 -
@tsudzuki 具体格式是?
这样写好像不对 -
@1301715759 就这样
-
@1301715759 你字体放错位置了
-
@tsudzuki 我这下面也有。。。
都弄了还是一样的报错ahhh -
@1301715759 你再看看FontConfig有没有变回去(
-
@tsudzuki 啊确实变回去了
改完了还是
-
@1301715759 你要关闭
mirai-console
再修改配置 -
@tsudzuki 是的,这个是完事后的截图
-
@1301715759 他原来是什么
-
@tsudzuki
和上面一样的报错。。没区别 -
@1301715759 我是说配置文件
-
-
此回复已被删除! -
2022-04-22 21:47:30 E/DrawMeme: java.lang.UnsatisfiedLinkError: C:\Users\Administrator\Documents\mcl\data\org.laolittle.
plugin.SkikoMirai\lib\skiko-windows-x64.dll: 找不到指定的程序。
java.lang.UnsatisfiedLinkError: C:\Users\Administrator\Documents\mcl\data\org.laolittle.plugin.SkikoMirai\lib\skiko-wind
ows-x64.dll: 找不到指定的程序。
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at org.jetbrains.skiko.Library.loadLibraryOrCopy(Library.kt:20)
at org.jetbrains.skiko.Library.findAndLoad(Library.kt:85)
at org.jetbrains.skiko.Library.load(Library.kt:59)
at org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12)
at org.laolittle.plugin.SkikoMirai.loadSkikoLibrary(SkikoMirai.kt:95)
at org.laolittle.plugin.Fonts.<clinit>(Fonts.kt:45)
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(PluginManagerI
mpl.kt:177)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplement
ationBridge.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:88)
at org.itxtech.mcl.Utility.bootJars(Utility.java:78)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:100)
at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113)
at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:145)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:170)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:138)
at org.itxtech.mcl.Loader.start(Loader.java:170)
at org.itxtech.mcl.Loader.main(Loader.java:75) -
@tsudzuki 收到,辛苦了