Petpet - 生成各种奇怪的图片
-
@q981612327 常见问题
-
@Dituon 大佬这个我看到了,不知道加到哪里。。。
-
@q981612327 jvm参数
java -Xmx1G -Dfile.encoding=utf-8 -jar mcl.jar
-
@Dituon 多谢大佬,解决了
-
@Dituon 好捏,等更新,大佬有群吗
-
-
@Angrybird1997 使用
3.4
-
@Dituon 已经可以完美使用了捏,谢谢大大!!!
-
可以让戳机器人返回的图片是戳的人头像吗
-
@PandaLink 请提交issue,后续版本可能会新增此配置项
-
2022-07-07 19:34:49 W/PetPet: Linked class org.w3c.dom.Node in Plum-1.0-SNAPSHOT.mirai.jar but plugin not depend on it. 2022-07-07 19:34:49 W/PetPet: Class loading logic may change in feature. 2022-07-07 19:34:49 W/Bot.1781649904: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 1781649904.EventDispatcher' java.lang.LinkageError: loader constraint violation: loader 'bootstrap' wants to load interface org.w3c.dom.Node. A different interface with the same name was previously loaded by 'Plum-1.0-SNAPSHOT.mirai.jar' @4c2af006. (org.w3c.dom.Node is in unnamed module of loader 'Plum-1.0-SNAPSHOT.mirai.jar' @4c2af006, parent loader 'global-shared' @25b52284) at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getNativeTree(Unknown Source) at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getAsTree(Unknown Source) at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57) at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26) at petpet-3.4.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:31) at petpet-3.4.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:150) at petpet-3.4.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:128) at petpet-3.4.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:154) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 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)
这个报错是什么情况。。。
-
Linked class org.w3c.dom.Node in Plum-1.0-SNAPSHOT.mirai.jar but plugin not depend on it.
检查
Plum-1.0-SNAPSHOT.mirai.jar
-
@Dituon 是跟这个插件冲突嘛。。。
-
@qingfengxiu 启用
headless
重试 -
@Dituon 抱歉..看不太懂,可以用比较小白的话说么
-
-
2022-07-08 09:38:21 W/Bot.1781649904: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 1781649904.EventDispatcher' java.lang.LinkageError: loader constraint violation: loader 'bootstrap' wants to load interface org.w3c.dom.Node. A different interface with the same name was previously loaded by 'Plum-1.0-SNAPSHOT.mirai.jar' @6dc1dc69. (org.w3c.dom.Node is in unnamed module of loader 'Plum-1.0-SNAPSHOT.mirai.jar' @6dc1dc69, parent loader 'global-shared' @4364712f) at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getNativeTree(Unknown Source) at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getAsTree(Unknown Source) at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57) at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26) at petpet-3.4.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:31) at petpet-3.4.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:150) at petpet-3.4.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:128) at petpet-3.4.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:154) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 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)
依然报错
-
@Dituon 应该是因为 plum插件是早期mirai console版本编译的,依赖直接写入jar,但是这边使用了新的mirai console,两者依赖不一致,应该检查项目依赖
-
我使用
buildPlugin
和buildPluginLegacy
重新编译了一份 -
@Dituon jvm内置的类的话,应该是mirai加载器的问题,可以去issue