反映一个不知道是不是插件内存泄漏导致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) -> **的现做的是吧