cssxsh / mirai-skia-plugin

Mirai Console Skiko/Skia 图像库前置插件
GNU Affero General Public License v3.0
35 stars 1 forks source link

在Alpine Linux环境下 libskiko-linux-x64.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory #11

Open hhhfsj opened 2 years ago

hhhfsj commented 2 years ago
2022-10-04 20:01:54 E/mirai-skia-plugin: Exception in coroutine Plugin xyz.cssxsh.mirai.plugin.mirai-skia-plugin of mirai-skia-plugin
java.lang.UnsatisfiedLinkError: /opt/Pigeon-Server_APP/QQ_Bot/data/xyz.cssxsh.mirai.plugin.mirai-skia-plugin/lib/libskiko-linux-x64.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /opt/Pigeon-Server_APP/QQ_Bot/data/xyz.cssxsh.mirai.plugin.mirai-skia-plugin/lib/libskiko-linux-x64.so)
        at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
        at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2445)
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2501)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2700)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630)
        at java.base/java.lang.Runtime.load0(Runtime.java:768)
        at java.base/java.lang.System.load(System.java:1837)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.loadLibraryOrCopy(Library.kt:20)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.findAndLoad(Library.kt:85)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.load(Library.kt:59)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaDowloaderKt.loadJNILibrary(MiraiSkiaDowloader.kt:240)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaDowloaderKt$loadJNILibrary$1.invokeSuspend(MiraiSkiaDowloader.kt)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
        at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
        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:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2022-10-04 20:01:54 E/mirai-skia-plugin: java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.FontMgrKt._nDefault()'
java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.FontMgrKt._nDefault()'
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgrKt._nDefault(Native Method)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgrKt.access$_nDefault(FontMgr.kt:1)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgr.<clinit>(FontMgr.kt:19)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.skia.FontUtils.<clinit>(FontUtils.kt:25)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaDowloaderKt.loadTypeface(MiraiSkiaDowloader.kt:134)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaPlugin.onEnable(MiraiSkiaPlugin.kt:44)
        at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:131)
        at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:278)
        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:178)
        at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:235)
        at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52)
        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.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:148)
        at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189)
        at org.itxtech.mcl.Loader.tryCatching(Loader.java:146)
        at org.itxtech.mcl.Loader.start(Loader.java:189)
        at org.itxtech.mcl.Loader.main(Loader.java:79)
cssxsh commented 2 years ago

Error loading shared library ld-linux-x86-64.so.2 缺库了 尝试安装一下 libstdc++gcompat

hhhfsj commented 2 years ago

好像还是不行

2022-10-04 21:08:23 E/mirai-skia-plugin: Exception in coroutine Plugin xyz.cssxsh.mirai.plugin.mirai-skia-plugin of mirai-skia-plugin
java.lang.UnsatisfiedLinkError: /opt/Pigeon-Server_APP/QQ_Bot/data/xyz.cssxsh.mirai.plugin.mirai-skia-plugin/lib/libskiko-linux-x64.so: Error relocating /opt/Pigeon-Server_APP/QQ_Bot/data/xyz.cssxsh.mirai.plugin.mirai-skia-plugin/lib/libskiko-linux-x64.so: __printf_chk: symbol not found
        at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
        at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2445)
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2501)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2700)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630)
        at java.base/java.lang.Runtime.load0(Runtime.java:768)
        at java.base/java.lang.System.load(System.java:1837)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.loadLibraryOrCopy(Library.kt:20)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.findAndLoad(Library.kt:85)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skiko.Library.load(Library.kt:59)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaDowloaderKt.loadJNILibrary(MiraiSkiaDowloader.kt:240)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaPlugin$loadJob$1.invokeSuspend(MiraiSkiaPlugin.kt:25)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2022-10-04 21:08:28 E/mirai-skia-plugin: java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.FontMgrKt._nDefault()'
java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.FontMgrKt._nDefault()'
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgrKt._nDefault(Native Method)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgrKt.access$_nDefault(FontMgr.kt:1)
        at mirai-skia-plugin-1.1.9.mirai2.jar[shared]//org.jetbrains.skia.FontMgr.<clinit>(FontMgr.kt:19)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.skia.FontUtils.<clinit>(FontUtils.kt:25)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaDowloaderKt.loadTypeface(MiraiSkiaDowloader.kt:134)
        at mirai-skia-plugin-1.1.9.mirai2.jar//xyz.cssxsh.mirai.skia.MiraiSkiaPlugin.onEnable(MiraiSkiaPlugin.kt:44)
        at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:131)
        at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:278)
        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:178)
        at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:235)
        at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167)
        at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52)
        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.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:148)
        at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189)
        at org.itxtech.mcl.Loader.tryCatching(Loader.java:146)
        at org.itxtech.mcl.Loader.start(Loader.java:189)
        at org.itxtech.mcl.Loader.main(Loader.java:79)
cssxsh commented 2 years ago

https://github.com/sgerrand/alpine-pkg-glibc/issues/57

根据这个 issue 你可能需要安装 bash 或者 gcc g++ linux-headers

hhhfsj commented 2 years ago

貌似不行,那个issue我不太看得懂

cssxsh commented 2 years ago

libc6-compat

试试安装这个包