Petpet - 生成各种奇怪的图片
-
大佬 他戳一戳功能用不了怎么解决呢 提示了这个 -
原来,你也是车万(喜
-
太好玩辣太好玩辣太好玩辣!!!
-
-
反映一个不知道是不是插件内存泄漏导致bot offline的问题
mirai2.15 Petpet v5.4 签名服务器1.1.6
今天看到有个群用很多戳一戳来触发随机图(草,戳一戳在log不显示,去找聊天记录才看到)
然后就崩了,内存相关的报错
2g的服务器,有1g多是空闲的,mirai就占400m,且挂了Mem Reduct自动清理2023-07-25 15:59:17 W/stderr: Exception in thread "pool-3-thread-3" java.lang.OutOfMemoryError: Java heap space 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.Raster.createPackedRaster(Raster.java:467) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesisCore.rotateImage(ImageSynthesisCore.java:291) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesisCore.g2dDrawZoomAvatar(ImageSynthesisCore.java:117) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesis.g2dDrawAvatar(ImageSynthesis.java:18) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesis.synthesisImage(ImageSynthesis.java:115) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker.lambda$makeGifUseAnimatedLib$1(BaseGifMaker.java:95) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker$$Lambda$683/0x16c1de28.run(Unknown Source) 2023-07-25 15:59:19 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 2023-07-25 15:59:19 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 2023-07-25 15:59:19 W/stderr: at java.base/java.lang.Thread.run(Thread.java:829) 2023-07-25 15:59:19 W/stderr: Exception in thread "pool-3-thread-4" java.lang.OutOfMemoryError: Java heap space 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.Raster.createPackedRaster(Raster.java:467) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032) 2023-07-25 15:59:19 W/stderr: at java.desktop/java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesisCore.rotateImage(ImageSynthesisCore.java:291) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesisCore.g2dDrawZoomAvatar(ImageSynthesisCore.java:117) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesis.g2dDrawAvatar(ImageSynthesis.java:18) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.ImageSynthesis.synthesisImage(ImageSynthesis.java:115) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker.lambda$makeGifUseAnimatedLib$1(BaseGifMaker.java:95) 2023-07-25 15:59:19 W/stderr: at petpet-5.4.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker$$Lambda$683/0x16c1de28.run(Unknown Source) 2023-07-25 15:59:19 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 2023-07-25 15:59:19 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 2023-07-25 15:59:19 W/stderr: at java.base/java.lang.Thread.run(Thread.java:829) 2023-07-25 15:59:17 V/Bot.1727295211: Event: BotOfflineEvent.Dropped(bot=Bot(1727295211), cause=HeartbeatFailedException: 1727295211.AliveHeartbeat, recoverable=true, cause=PacketTimeoutException(message=1727295211.AliveHeartbeat Scheduler: Timeout receiving action response, cause=null), reconnect=true) 2023-07-25 15:59:18 V/Bot.1727295211: [奇奇怪怪の聊天群(748183622)] 绝望骑士(1509026141) -> **的现做的是吧
-
@kiri
0. 建议提供完整的jvm参数和插件配置等信息- 插件所有的流都会被正常关闭,不存在内存泄漏问题
- 内存溢出可能是程序短时间内受到大量制图指令导致的
- 建议使用
jinfo
排查内存问题 - 请为本插件预留至少200m的内存
-
更新了
5.5
版本 -
大佬有空能不能再完善一下权限管理呢?效果是收到来自特定群聊或特定qq号的指令不回复,或者对接一下mirai console自带的权限管理也不错
-
@XunchuFRD 插件基于
mirai core API
, 为了便于core
开发, 不会使用console
的权限管理API, 指定黑名单可以尝试别的管理插件 -
请问能不能给自动更新图库做一个内容分级?或者删掉的图不再更新回来。我有一些真男同群看到戳一戳的自动出图频繁出萝莉和巨乳的图会被无语到,删又删不完😂
-
-
-
-
This post is deleted! -
This post is deleted! -
-
2023-11-28 09:12:21 W/Bot.xxxxxxxx: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot xxxxxxxx.EventDispatcher'
java.lang.IllegalStateException: No Bot available to query image url
at net.mamoe.mirai.message.data.Image$Key.queryUrl(Image.kt:384)
at net.mamoe.mirai.message.data.Image$Key$queryUrl$2.invoke(Image.kt)
at net.mamoe.mirai.message.data.Image$Key$queryUrl$2.invoke(Image.kt)
at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
at me.him188.kotlin.jvm.blocking.bridge.internal.RunSuspendKt.$runSuspend$(RunSuspend.kt:18)
at net.mamoe.mirai.message.data.Image$Key.queryUrl(Image.kt)
at net.mamoe.mirai.message.data.Image.queryUrl(Image.kt)
at petpet-6.1.mirai2.jar//moe.dituon.petpet.mirai.MiraiPetpet.responseMessage(MiraiPetpet.java:234)
at petpet-6.1.mirai2.jar//moe.dituon.petpet.mirai.MiraiPetpet.onGroupMessage(MiraiPetpet.java:158)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:605)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:605)
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:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)隔一会时间就弹这个报错 pet6.1 mirai2.16
-
@PandaLink 看提示应该是Mirai的问题,和插件无关,建议去框架仓库提问
-
您好,这个报错是因为Petpet插件吗?用的overflow。Petpet最高只能用3.3版本,3.3以上都会出现这个问题。
-