MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    Petpet - 生成各种奇怪的图片

    插件发布
    73
    320
    75015
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Dituon
      Dituon @RainbowDash 最后由 编辑

      @RainbowDash 在 Petpet - 生成各种奇怪的图片 中说:

      WALLPAPER后台有报错
      请问,倒放可以像其他对称一样用指令直接制作吗。
      原有data文件中的json文件是不能自己修改是否出现在随机列表吗,我尝试改成true或者删除inradonlist都会无法读取json。

      倒放 可以添加配置项实现

      json文件可以修改,根据描述 我无法复现你的问题 请提供详细参数

      RainbowDash 1 条回复 最后回复 回复 引用 0
      • RainbowDash
        RainbowDash @Dituon 最后由 RainbowDash 编辑

        @Dituon QQ截图20221130120056.png QQ截图20221130120214.png
        这个是wallpaper指令的报错,版本是2.11, 倒放配置项是指像对称一样单独做一个data.json的文件夹吗

        1 条回复 最后回复 回复 引用 0
        • fffzzl
          fffzzl 最后由 编辑

          这是因为无法连接raw而终止运行吗?

          2022-12-01 18:45:10 I/stdout: 无法连接到远程资源: https://raw.githubusercontent.com/Dituon/petpet/main/index.json
          2022-12-01 18:45:10 W/stderr: Exception in thread "Thread-9" java.lang.NullPointerException
          2022-12-01 18:45:10 W/stderr: at java.base/java.util.Objects.requireNonNull(Unknown Source)
          2022-12-01 18:45:10 W/stderr: at petpet-4.7.mirai2.jar//xmmt.dituon.plugin.DataUpdater.checkUpdate(DataUpdater.java:64)
          2022-12-01 18:45:10 W/stderr: at petpet-4.7.mirai2.jar//xmmt.dituon.plugin.DataUpdater.autoUpdate(DataUpdater.java:21)
          2022-12-01 18:45:10 W/stderr: at java.base/java.lang.Thread.run(Unknown Source)
          2022-12-01 18:45:21 V/Bot.1220481280: Event: BotOfflineEvent.RequireReconnect(bot=Bot(1220481280), cause=java.lang.IllegalStateException: Timeout waiting for ConfigPush., reconnect=true)
          2022-12-01 18:45:21 W/Bot.1220481280: Connection lost, reconnecting... (java.lang.IllegalStateException: Timeout waiting for ConfigPush.)
          2022-12-01 18:45:21 V/Bot.1220481280: Event: BotOfflineEvent.Active(bot=Bot(1220481280), cause=java.lang.IllegalStateException: Timeout waiting for ConfigPush., reconnect=false)
          2022-12-01 18:45:21 I/Bot.1220481280: Bot is closed manually with exception: java.lang.IllegalStateException: Timeout waiting for ConfigPush.
          java.lang.IllegalStateException: Timeout waiting for ConfigPush.
          at net.mamoe.mirai.internal.network.components.ConfigPushProcessorImpl.syncConfigPush(ConfigPushProcessor.kt:45)
          at net.mamoe.mirai.internal.network.components.ConfigPushProcessorImpl$syncConfigPush$1.invokeSuspend(ConfigPushProcessor.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.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:104)
          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)

          Dituon 1 条回复 最后回复 回复 引用 0
          • Dituon
            Dituon @fffzzl 最后由 编辑

            @fffzzl 这个报错不会终止程序运行,这是自动更新数据的独立线程,可以忽略

            错误是你的网络问题导致,如果想修复此问题,可以参考README中的常见问题一节

            fffzzl 1 条回复 最后回复 回复 引用 0
            • fffzzl
              fffzzl @Dituon 最后由 编辑

              @Dituon 之前mcl2.1.2使用petpet4.8-mirai2没问题,升级到petpet5.0,不读取4.8的配置文件,重做配置文件并且放入data后奇怪的问题就出现了,使用petpet5.0,生成图片时会大量报错如下,并且多次生成会关闭mirai,降级到4.8重做data用旧文件,只有部分正常生成

              2022-12-02 09:55:56 V/Bot.12: [(86)] 傻逼-> #remake
              2022-12-02 09:55:57 W/stderr: Exception in thread "pool-9-thread-5" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:55:58 W/stderr: Exception in thread "D3D Screen Updater" java.lang.OutOfMemoryError: Java heap space
              >
              Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-9-thread-8"
              2022-12-02 09:56:00 W/stderr: Exception in thread "pool-9-thread-8" Exception in thread "pool-9-thread-9" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:01 W/stderr: Exception in thread "pool-9-thread-2" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:01 W/stderr: Exception in thread "pool-9-thread-1" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:01 W/stderr: Exception in thread "pool-9-thread-11" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:02 W/stderr: Exception in thread "Thread-21" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:02 W/stderr: Exception in thread "pool-9-thread-7" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:02 W/stderr: Exception in thread "pool-9-thread-13" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:02 W/stderr: Exception in thread "pool-9-thread-6" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:56:03 W/bilibili-helper: BiliListener Handle Exception
              java.lang.reflect.InvocationTargetException
                      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.base/java.lang.reflect.Method.invoke(Unknown Source)
              
              Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-20"
                      at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
                      at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
              >
              Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-9-thread-27"
              
                      at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
                      at kotlin.reflect.full.KCallables.callSuspend(KCallables.kt:56)
                      at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callFunction(JvmMethodListenersInternal.kt:80)
                      at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callFunction(JvmMethodListenersInternal.kt:1)
                      at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$8.invokeSuspend(JvmMethodListenersInternal.kt:110)
                      at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$8.invoke(JvmMethodListenersInternal.kt)
                      at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$8.invoke(JvmMethodListenersInternal.kt)
                      at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:506)
                      at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                      at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                      at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:58)
                      at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
                      at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
                      at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
                      at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
                      at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
                      at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:58)
                      at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:120)
                      at net.mamoe.mirai.internal.event.EventListeners.callListeners$mirai_core(EventListeners.kt:68)
                      at net.mamoe.mirai.internal.event.EventListeners$callListeners$1.invokeSuspend(EventListeners.kt)
                      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                      at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:233)
                      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(CoroutineSche
              

              和

              2022-12-02 09:55:22 V/Bot.1220481280: [这才是mc拖更组(891261126)] 傻逼(2795412649) -> #喝彩
              2022-12-02 09:55:23 W/stderr: Exception in thread "pool-9-thread-3" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.DataBufferInt.<init>(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.Raster.createPackedRaster(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.BufferedImage.<init>(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.pipe.ValidatePipe.copyImage(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.SunGraphics2D.drawImage(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/sun.java2d.SunGraphics2D.drawImage(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at petpet-5.0.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker.lambda$makeGifUseAnimatedLib$1(BaseGifMaker.java:110)
              2022-12-02 09:55:23 W/stderr:   at petpet-5.0.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker$$Lambda$1225/0x000000080166e058.run(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.lang.Thread.run(Unknown Source)
              2022-12-02 09:55:23 W/stderr: Exception in thread "pool-9-thread-4" java.lang.OutOfMemoryError: Java heap space
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.DataBufferByte.<init>(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.Raster.createInterleavedRaster(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.desktop/java.awt.image.BufferedImage.<init>(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at petpet-5.0.mirai2.jar//moe.dituon.petpet.share.ImageSynthesis.synthesisImage(ImageSynthesis.java:84)
              2022-12-02 09:55:23 W/stderr:   at petpet-5.0.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker.lambda$makeGifUseAnimatedLib$1(BaseGifMaker.java:102)
              2022-12-02 09:55:23 W/stderr:   at petpet-5.0.mirai2.jar//moe.dituon.petpet.share.BaseGifMaker$$Lambda$1225/0x000000080166e058.run(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              2022-12-02 09:55:23 W/stderr:   at java.base/java.lang.Thread.run(Unknown Source)```
              Dituon 1 条回复 最后回复 回复 引用 0
              • Dituon
                Dituon @fffzzl 最后由 Dituon 编辑

                @fffzzl OutOfMemoryError

                内存不足,请提供以下参数:

                1. jvm启动参数
                2. 设备配置信息
                3. 插件配置文件
                fffzzl 1 条回复 最后回复 回复 引用 0
                • fffzzl
                  fffzzl @Dituon 最后由 fffzzl 编辑

                  @Dituon 谢谢 jvm内存放开点就解决啦,就是java的GC效率有点感人(7个群吃400MB,然后memreduct一清理4M占用)

                  1 条回复 最后回复 回复 引用 0
                  • D
                    DgLer 最后由 编辑

                    想问一下5.0版本为什么唱片/record等功能出现的图片会一闪一闪的,无法流畅输出呀?

                    Dituon 1 条回复 最后回复 回复 引用 0
                    • Dituon
                      Dituon @DgLer 最后由 编辑

                      @DgLer 已修复,使用最新版本

                      D 1 条回复 最后回复 回复 引用 0
                      • D
                        DgLer @Dituon 最后由 编辑

                        @Dituon 麻烦了,感谢。还想问下“wallpaper”指令配置是不是有些问题?发现多次调整仍无法调用。

                        Dituon 1 条回复 最后回复 回复 引用 0
                        • Dituon
                          Dituon @DgLer 最后由 编辑

                          @DgLer 忘记了 近期修复 多谢提醒

                          D 1 条回复 最后回复 回复 引用 0
                          • D
                            DgLer @Dituon 最后由 编辑

                            @Dituon 感谢您,麻烦了。

                            Dituon 1 条回复 最后回复 回复 引用 0
                            • Dituon
                              Dituon @DgLer 最后由 编辑

                              @DgLer 已修复,使用最新版本

                              1 条回复 最后回复 回复 引用 0
                              • Dituon
                                Dituon 最后由 编辑

                                已更新5.1

                                1 条回复 最后回复 回复 引用 0
                                • SVIPNB
                                  SVIPNB 最后由 编辑

                                  很不错的插件

                                  1 条回复 最后回复 回复 引用 0
                                  • C
                                    Cooper 最后由 编辑

                                    想请问一下在线编辑器为什么点addAvatar加不了头像,文字就可以

                                    Dituon 1 条回复 最后回复 回复 引用 0
                                    • Dituon
                                      Dituon @Cooper 最后由 编辑

                                      @Cooper 重构打包时路径错误, 已修复0c900d8f-1cb8-43a8-a0dc-106630b80d5c-image.png

                                      1 条回复 最后回复 回复 引用 1
                                      • Dituon
                                        Dituon 最后由 编辑

                                        更新了在线编辑器

                                        1 条回复 最后回复 回复 引用 0
                                        • Dituon
                                          Dituon 最后由 编辑

                                          更新了5.2预览版本

                                          1 条回复 最后回复 回复 引用 0
                                          • Dituon
                                            Dituon 最后由 编辑

                                            更新了在线编辑器

                                            1 条回复 最后回复 回复 引用 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 12 / 16
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact