Petpet - 生成各种奇怪的图片
-
2022-07-08 10:02:50 W/PetPet: Linked class org.w3c.dom.Node in Plum-1.0-SNAPSHOT.mirai.jar but plugin not depend on it. 2022-07-08 10:02:50 W/PetPet: Class loading logic may change in feature. 2022-07-08 10:02:50 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' @2fd954f. (org.w3c.dom.Node is in unnamed module of loader 'Plum-1.0-SNAPSHOT.mirai.jar' @2fd954f, parent loader 'global-shared' @5578be42) 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.5-M1.mirai.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57) at petpet-3.5-M1.mirai.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26) at petpet-3.5-M1.mirai.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:31) at petpet-3.5-M1.mirai.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:151) at petpet-3.5-M1.mirai.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:128) at petpet-3.5-M1.mirai.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:149) 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-1.0-SNAPSHOT.mirai.jar删除后就可以使用了
-
-
更新了3.6预览版本
-
更新了3.6正式版本
-
更新了3.7-M1预览版本
-
-
你好,请问使用在线编辑器时,放入图片后显示这样怎么解决
-
-
更新了3.8-M2版本
-
更新了3.8-M3版本
-
-
想请问下这是怎么回事。版本3.8
-
@zyckk4 使用4.0
-
话说项目是否应该使用AGPL3协议,因为mirai是使用的AGPL3
-
@zyckk4 感谢提醒,已更改
-
更新了
4.0-M1
版本 -
This post is deleted! -
动图发送失败,请问哪里出了问题qwq
2022-07-22 16:51:17 W/Bot.3318675668: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 3318675668.EventDispatcher'
java.lang.LinkageError: loader constraint violation: when resolving method 'org.w3c.dom.Node javax.imageio.metadata.IIOMetadata.getAsTree(java.lang.String)' the class loader 'petpet-4.0.jar' @2dd0f797 of the current class, xmmt/dituon/share/GifBuilder, and the class loader 'bootstrap' for the method's defining class, javax/imageio/metadata/IIOMetadata, have different Class objects for the type org/w3c/dom/Node used in the signature (xmmt.dituon.share.GifBuilder is in unnamed module of loader 'petpet-4.0.jar' @2dd0f797, parent loader 'global-shared' @17c2d509; javax.imageio.metadata.IIOMetadata is in module java.desktop of loader 'bootstrap')
at petpet-4.0.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57)
at petpet-4.0.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26)
at petpet-4.0.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:15)
at petpet-4.0.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:170)
at petpet-4.0.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:141)
at petpet-4.0.jar//xmmt.dituon.plugin.Petpet.responseMessage(Petpet.java:212)
at petpet-4.0.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:106)
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) -
相似问题 - 👆
@尤十甫寸
mirai
类加载器问题, 可能与其它插件冲突导致