MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. WavelliteH
    3. 帖子
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 4
    • 帖子 13
    • 最佳 1
    • 有争议的 0
    • 群组 0

    WavelliteH 发布的帖子

    • RE: 登陆失败,提示Bot cancelled: Bot closed

      @cssxsh 谢谢大佬修复,辛苦惹!

      发布在 使用交流
      WavelliteH
      WavelliteH
    • 登陆失败,提示Bot cancelled: Bot closed

      机器人正常运行了一个多月,今天因为断网掉线了,再次登陆的时候出现了如题的错误,更新了Mirai版本也没有解决问题,看了之前的帖子说修改plugin-shared-libraries文件夹里的libraries.txt,尝试了一下,没有作用。
      目前使用的Mirai版本是win AMD64环境下的2.13.2,安装过程全部使用默认选项,插件装载了MiraiCP 2.7.1,除此之外没有修改过任何文件
      求大佬救救孩子(;´д`)ゞ

      > /login 
      2023-01-12 19:47:52 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.
      2023-01-12 19:47:52 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it.
      2023-01-12 19:47:53 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
      2023-01-12 19:47:58 I/Bot.3457317465: Bot cancelled: Bot closed
      Login failed: net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException
      2023-01-12 19:47:58 E/console: net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException
      net.mamoe.mirai.internal.utils.crypto.DecryptionFailedException
              at net.mamoe.mirai.internal.utils.crypto.TEA.fail(TEA.kt:299)
              at net.mamoe.mirai.internal.utils.crypto.TEA.doOption$decrypt(TEA.kt:275)
              at net.mamoe.mirai.internal.utils.crypto.TEA.doOption(TEA.kt:295)
              at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt(TEA.kt:319)
              at net.mamoe.mirai.internal.utils.crypto.TEA.decrypt$default(TEA.kt:318)
              at net.mamoe.mirai.internal.network.protocol.packet.login.wtlogin.WtLoginExt.analyzeTlv106(WtLoginExt.kt:623)
              at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.onLoginSuccess(WtLogin.kt:368)
              at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.decode(WtLogin.kt:231)
              at net.mamoe.mirai.internal.network.components.PacketCodecImpl.processBody(PacketCodec.kt:491)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.processBody(CommonNetworkHandler.kt:157)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline.access$processBody(CommonNetworkHandler.kt:102)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invokeSuspend(CommonNetworkHandler.kt:126)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invoke(CommonNetworkHandler.kt)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1$3$1.invoke(CommonNetworkHandler.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
              at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
              at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
              at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
              at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
              at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$PacketDecodePipeline$1.invokeSuspend(CommonNetworkHandler.kt:126)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
              at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
              at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
              at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
              at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
              at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
              at java.base/java.lang.Thread.run(Unknown Source)
      
      发布在 使用交流
      WavelliteH
      WavelliteH
    • RE: 无法登录的临时处理方案

      大佬!滑动验证链接加载不出来有办法么,在我自己的电脑上可以加载出来,但是服务器端不行,怀疑是服务器端性能太低了(;´д`)ゞ
      11.jpg

      发布在 官方公告
      WavelliteH
      WavelliteH
    • RE: [小白求助]无人值守期间MCL崩溃

      已解决

      发布在 开发交流
      WavelliteH
      WavelliteH
    • [小白求助]无人值守期间MCL崩溃

      MCL版本是1.2.2,使用的插件包括MiraiCP_Plugin2.7.0和一个基于MiraiCP自己写的插件。
      在服务器上运行,有时突然机器人就没反应了,打开显示器发现MCL已经退出,这种情况目前一共出现了三次,但我没能刚好碰到出现问题的瞬间(泪
      赶到现场时发现只有几份hs_err_pid.log
      不知大佬能否从其中找到问题所在,因为字数限制无法全部提交,如果这个提问只有这些信息是无效的的话十分抱歉!

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffec51a9329, pid=7684, tid=10896
      #
      # JRE version: OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (16.0.1+9) (build 16.0.1+9)
      # Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (16.0.1+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # C  [KERNELBASE.dll+0x39329]
      #
      # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      #   https://github.com/AdoptOpenJDK/openjdk-support/issues
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      
      ---------------  S U M M A R Y ------------
      
      Command Line: mcl.jar
      
      Host: AMD GX-218GL SOC with Radeon(TM) R1E Graphics  , 2 cores, 3G,  Windows 10 , 64 bit Build 17763 (10.0.17763.2090)
      Time: Fri Sep 10 20:33:35 2021 中国标准时间 elapsed time: 1212.371862 seconds (0d 0h 20m 12s)
      
      ---------------  T H R E A D  ---------------
      
      Current thread (0x000001fe0350b000):  JavaThread "pool-1-thread-4" [_thread_in_native, id=10896, stack(0x000000d632d00000,0x000000d632e00000)]
      
      Stack: [0x000000d632d00000,0x000000d632e00000],  sp=0x000000d632dfa0a0,  free space=1000k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C  [KERNELBASE.dll+0x39329]
      C  [VCRUNTIME140D.dll+0xb460]
      
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J 11134  tech.eritquearcus.miraicp.shared.CPP_lib.Event(Ljava/lang/String;)Ljava/lang/String; (0 bytes) @ 0x000001fe76f0089f [0x000001fe76f00840+0x000000000000005f]
      J 11133 c1 tech.eritquearcus.miraicp.shared.UlitsKt$Event$$inlined$runInTP$1.invoke()Ljava/lang/Object; (279 bytes) @ 0x000001fe6fba1a14 [0x000001fe6fba0080+0x0000000000001994]
      J 10758 c1 kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; (56 bytes) @ 0x000001fe6fdd72ac [0x000001fe6fdd6fe0+0x00000000000002cc]
      J 10756 c1 kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object; (64 bytes) @ 0x000001fe6fb44a24 [0x000001fe6fb445a0+0x0000000000000484]
      J 8433 c2 kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V (142 bytes) @ 0x000001fe76e26518 [0x000001fe76e264a0+0x0000000000000078]
      J 11009 c2 kotlinx.coroutines.DispatchedTask.run()V (658 bytes) @ 0x000001fe77194b90 [0x000001fe77194900+0x0000000000000290]
      j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@16.0.1
      j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@16.0.1
      j  java.lang.Thread.run()V+11 java.base@16.0.1
      v  ~StubRoutines::call_stub
      
      siginfo: EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363), ExceptionInformation=0x0000000019930520 0x000000d632dfa230 0x00007ffe9c8385d8 0x00007ffe9c460000 
      
      Java Threads: ( => current thread )
        0x000001fe69409c40 JavaThread "main" [_thread_blocked, id=10336, stack(0x000000d62fe00000,0x000000d62ff00000)]
        0x000001fe694de680 JavaThread "Reference Handler" daemon [_thread_blocked, id=10956, stack(0x000000d630500000,0x000000d630600000)]
        0x000001fe020e91f0 JavaThread "Finalizer" daemon [_thread_blocked, id=11956, stack(0x000000d630600000,0x000000d630700000)]
        0x000001fe020f8b20 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10712, stack(0x000000d630700000,0x000000d630800000)]
        0x000001fe020fa640 JavaThread "Attach Listener" daemon [_thread_blocked, id=11952, stack(0x000000d630800000,0x000000d630900000)]
        0x000001fe020fd360 JavaThread "Service Thread" daemon [_thread_blocked, id=11412, stack(0x000000d630900000,0x000000d630a00000)]
        0x000001fe020fdc70 JavaThread "Monitor Deflation Thread" daemon [_thread_blocked, id=10848, stack(0x000000d630a00000,0x000000d630b00000)]
        0x000001fe02100970 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2440, stack(0x000000d630b00000,0x000000d630c00000)]
        0x000001fe02104e50 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=12236, stack(0x000000d630c00000,0x000000d630d00000)]
        0x000001fe02108f90 JavaThread "Sweeper thread" daemon [_thread_blocked, id=11740, stack(0x000000d630d00000,0x000000d630e00000)]
        0x000001fe02c22510 JavaThread "Notification Thread" daemon [_thread_blocked, id=6192, stack(0x000000d630e00000,0x000000d630f00000)]
        0x000001fe02c2bd50 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=6848, stack(0x000000d631000000,0x000000d631100000)]
        0x000001fe030e3550 JavaThread "HttpClient-2-SelectorManager" daemon [_thread_in_native, id=9424, stack(0x000000d631300000,0x000000d631400000)]
        0x000001fe03848690 JavaThread "WindowsStreamPump" daemon [_thread_in_native, id=8400, stack(0x000000d631800000,0x000000d631900000)]
        0x000001fe0303f780 JavaThread "DefaultDispatcher-worker-1" daemon [_thread_blocked, id=11196, stack(0x000000d631200000,0x000000d631300000)]
        0x000001fe0303e790 JavaThread "DefaultDispatcher-worker-2" daemon [_thread_blocked, id=8380, stack(0x000000d631900000,0x000000d631a00000)]
        0x000001fe03041210 JavaThread "kotlinx.coroutines.DefaultExecutor" daemon [_thread_blocked, id=11096, stack(0x000000d631a00000,0x000000d631b00000)]
        0x000001fe03041760 JavaThread "Mirai Console Input Thread" [_thread_blocked, id=11864, stack(0x000000d631b00000,0x000000d631c00000)]
        0x000001fe0303ece0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=12176, stack(0x000000d631e00000,0x000000d631f00000)]
        0x000001fe0303f230 JavaThread "AWT-Windows" daemon [_thread_in_native, id=12244, stack(0x000000d632000000,0x000000d632100000)]
        0x000001fe03040cc0 JavaThread "ktor-okhttp-dispatcher-worker-1" daemon [_thread_blocked, id=11416, stack(0x000000d632100000,0x000000d632200000)]
        0x000001fe0303e240 JavaThread "ktor-okhttp-dispatcher-worker-2" daemon [_thread_blocked, id=11832, stack(0x000000d632200000,0x000000d632300000)]
        0x000001fe0350b550 JavaThread "ktor-okhttp-dispatcher-worker-1" daemon [_thread_blocked, id=11724, stack(0x000000d62fc00000,0x000000d62fd00000)]
        0x000001fe03505b00 JavaThread "ktor-okhttp-dispatcher-worker-2" daemon [_thread_blocked, id=9048, stack(0x000000d632300000,0x000000d632400000)]
        0x000001fe03504070 JavaThread "ktor-okhttp-dispatcher-worker-1" daemon [_thread_blocked, id=9432, stack(0x000000d631f00000,0x000000d632000000)]
        0x000001fe03507ae0 JavaThread "ktor-okhttp-dispatcher-worker-2" daemon [_thread_blocked, id=4772, stack(0x000000d632400000,0x000000d632500000)]
        0x000001fe03507590 JavaThread "ktor-okhttp-dispatcher-worker-3" daemon [_thread_blocked, id=11992, stack(0x000000d632500000,0x000000d632600000)]
        0x000001fe0350aab0 JavaThread "nioEventLoopGroup-2-1" [_thread_in_native, id=12256, stack(0x000000d632600000,0x000000d632700000)]
        0x000001fe035045c0 JavaThread "OkHttp https://web.qun.qq.com/..." [_thread_blocked, id=5520, stack(0x000000d632700000,0x000000d632800000)]
        0x000001fe03509020 JavaThread "Okio Watchdog" daemon [_thread_blocked, id=6228, stack(0x000000d632900000,0x000000d632a00000)]
        0x000001fe03506af0 JavaThread "pool-1-thread-1" [_thread_blocked, id=11568, stack(0x000000d62fb00000,0x000000d62fc00000)]
        0x000001fe0350baa0 JavaThread "pool-1-thread-2" [_thread_blocked, id=11156, stack(0x000000d62fd00000,0x000000d62fe00000)]
        0x000001fe03507040 JavaThread "pool-1-thread-3" [_thread_blocked, id=10792, stack(0x000000d631500000,0x000000d631600000)]
      =>0x000001fe0350b000 JavaThread "pool-1-thread-4" [_thread_in_native, id=10896, stack(0x000000d632d00000,0x000000d632e00000)]
        0x000001fe06159e10 JavaThread "OkHttp Dispatcher" [_thread_blocked, id=3028, stack(0x000000d632f00000,0x000000d633000000)]
        0x000001fe06157390 JavaThread "pool-1-thread-5" [_thread_blocked, id=11236, stack(0x000000d633300000,0x000000d633400000)]
        0x000001fe061553b0 JavaThread "ktor-okhttp-dispatcher-worker-4" daemon [_thread_blocked, id=12104, stack(0x000000d633400000,0x000000d633500000)]
        0x000001fe0615b8a0 JavaThread "pool-1-thread-6" [_thread_blocked, id=11072, stack(0x000000d633500000,0x000000d633600000)]
        0x000001fe061563a0 JavaThread "pool-1-thread-7" [_thread_blocked, id=956, stack(0x000000d633600000,0x000000d633700000)]
        0x000001fe0615a8b0 JavaThread "pool-1-thread-8" [_thread_blocked, id=8020, stack(0x000000d633700000,0x000000d633800000)]
        0x000001fe061568f0 JavaThread "pool-1-thread-9" [_thread_in_native, id=11088, stack(0x000000d633800000,0x000000d633900000)]
        0x000001fe0615c890 JavaThread "pool-1-thread-10" [_thread_blocked, id=12108, stack(0x000000d633900000,0x000000d633a00000)]
        0x000001fe061588d0 JavaThread "OkHttp https://web.qun.qq.com/..." [_thread_blocked, id=10064, stack(0x000000d633a00000,0x000000d633b00000)]
        0x000001fe061578e0 JavaThread "pool-1-thread-11" [_thread_blocked, id=12196, stack(0x000000d633c00000,0x000000d633d00000)]
        0x000001fe0615bdf0 JavaThread "pool-1-thread-12" [_thread_blocked, id=11908, stack(0x000000d633d00000,0x000000d633e00000)]
        0x000001fe06156e40 JavaThread "OkHttp https://web.qun.qq.com/..." [_thread_blocked, id=10676, stack(0x000000d633e00000,0x000000d633f00000)]
        0x000001fe06158380 JavaThread "pool-1-thread-13" [_thread_blocked, id=11660, stack(0x000000d633f00000,0x000000d634000000)]
        0x000001fe0615c340 JavaThread "pool-1-thread-14" [_thread_blocked, id=7936, stack(0x000000d634000000,0x000000d634100000)]
        0x000001fe06158e20 JavaThread "pool-1-thread-15" [_thread_blocked, id=10536, stack(0x000000d634100000,0x000000d634200000)]
        0x000001fe06155900 JavaThread "pool-1-thread-16" [_thread_in_native, id=10628, stack(0x000000d634200000,0x000000d634300000)]
        0x000001fe06159370 JavaThread "pool-1-thread-17" [_thread_blocked, id=12080, stack(0x000000d634300000,0x000000d634400000)]
        0x000001fe06155e50 JavaThread "pool-1-thread-18" [_thread_blocked, id=11104, stack(0x000000d634400000,0x000000d634500000)]
        0x000001fe06157e30 JavaThread "pool-1-thread-19" [_thread_blocked, id=8112, stack(0x000000d634500000,0x000000d634600000)]
        0x000001fe061598c0 JavaThread "pool-1-thread-20" [_thread_blocked, id=8872, stack(0x000000d634600000,0x000000d634700000)]
        0x000001fe0345af40 JavaThread "OkHttp Dispatcher" [_thread_blocked, id=9728, stack(0x000000d633100000,0x000000d633200000)]
        0x000001fe03461980 JavaThread "Thread-11" [_thread_in_native, id=8724, stack(0x000000d633200000,0x000000d633300000)]
        0x000001fe09fbc080 JavaThread "OkHttp https://web.qun.qq.com/..." [_thread_blocked, id=11548, stack(0x000000d634e00000,0x000000d634f00000)]
        0x000001fe09fb5b90 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=9636, stack(0x000000d631d00000,0x000000d631e00000)]
        0x000001fe065b5000 JavaThread "OkHttp https://web.qun.qq.com/..." [_thread_blocked, id=11432, stack(0x000000d632e00000,0x000000d632f00000)]
        0x000001fe065b6540 JavaThread "OkHttp web.qun.qq.com" daemon [_thread_in_native, id=9744, stack(0x000000d631600000,0x000000d631700000)]
        0x000001fe09fb4650 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=8720, stack(0x000000d631c00000,0x000000d631d00000)]
        0x000001fe09fbbb30 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=9992, stack(0x000000d632800000,0x000000d632900000)]
        0x000001fe09fb7b70 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=9592, stack(0x000000d632a00000,0x000000d632b00000)]
        0x000001fe09fb4ba0 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=11480, stack(0x000000d632b00000,0x000000d632c00000)]
        0x000001fe09fb6b80 JavaThread "OkHttp TaskRunner" daemon [_thread_blocked, id=6412, stack(0x000000d632c00000,0x000000d632d00000)]
      
      Other Threads:
        0x000001fe020e50a0 VMThread "VM Thread" [stack: 0x000000d630400000,0x000000d630500000] [id=11988]
        0x000001fe02c23a40 WatcherThread [stack: 0x000000d630f00000,0x000000d631000000] [id=11040]
        0x000001fe69435d20 GCTaskThread "GC Thread#0" [stack: 0x000000d62ff00000,0x000000d630000000] [id=8524]
        0x000001fe02f19860 GCTaskThread "GC Thread#1" [stack: 0x000000d631100000,0x000000d631200000] [id=10500]
        0x000001fe69440ae0 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000d630000000,0x000000d630100000] [id=5156]
        0x000001fe69441460 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000d630100000,0x000000d630200000] [id=9996]
        0x000001fe69475200 ConcurrentGCThread "G1 Refine#0" [stack: 0x000000d630200000,0x000000d630300000] [id=8608]
        0x000001fe02e15020 ConcurrentGCThread "G1 Refine#1" [stack: 0x000000d631700000,0x000000d631800000] [id=9416]
        0x000001fe69475b90 ConcurrentGCThread "G1 Service" [stack: 0x000000d630300000,0x000000d630400000] [id=3740]
      
      ---------------  S Y S T E M  ---------------
      
      OS:
       Windows 10 , 64 bit Build 17763 (10.0.17763.2090)
      OS uptime: 5 days 4:28 hours
      
      CPU: total 2 (initial active 2) (2 cores per cpu, 1 threads per core) family 22 model 48 stepping 1 microcode 0x0, cx8, cmov, fxsr, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4a, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, aes, clmul, bmi1, vzeroupper, clflush
      
      Memory: 4k page, system-wide physical 3527M (1765M free)
      TotalPageFile size 5320M (AvailPageFile size 2866M)
      current process WorkingSet (physical memory assigned to process): 435M, peak: 451M
      current process commit charge ("private bytes"): 478M, peak: 478M
      
      vm_info: OpenJDK 64-Bit Server VM (16.0.1+9) for windows-amd64 JRE (16.0.1+9), built on Apr 21 2021 12:30:27 by "" with MS VC++ 16.7 (VS2019)
      
      END.
      
      发布在 开发交流
      WavelliteH
      WavelliteH
    • RE: 大量消息下,在MCL使用MiraiCP插件时收到消息存在严重延迟且发送消息后报错

      @nambers mcl卡住的问题已经解决了,但是那个timeout5000ms的那个错误还是会经常出现,在服务器上出现的频率高于我自己的电脑上,而私聊几乎不出现,私聊的反应速度也比群聊快得多

      发布在 开发交流
      WavelliteH
      WavelliteH
    • RE: 大量消息下,在MCL使用MiraiCP插件时收到消息存在严重延迟且发送消息后报错

      @karlatemp 这个问题已经解决了,非常感谢!

      发布在 开发交流
      WavelliteH
      WavelliteH
    • RE: 大量消息下,在MCL使用MiraiCP插件时收到消息存在严重延迟且发送消息后报错

      @karlatemp 感谢大佬!我尝试一下!

      发布在 开发交流
      WavelliteH
      WavelliteH
    • RE: 大量消息下,在MCL使用MiraiCP插件时收到消息存在严重延迟且发送消息后报错

      @nambers 好的!

      发布在 开发交流
      WavelliteH
      WavelliteH
    • 大量消息下,在MCL使用MiraiCP插件时收到消息存在严重延迟且发送消息后报错

      如题,使用的mcl版本是1.2.2,安装的插件除了MiraiCP-plugin-2.7-RC-dev5.mirai和我自己写的插件以外并没有其他。

      插件确定没有问题,在我自己的电脑使用只添加了一个群和两三个好友的小号进行测试,发送群聊消息延迟在3s左右,发送私聊消息延迟在1s以内
      此时有一个问题:mcl偶尔会卡主,表现为在某个时间点突然收不到消息,然后再mcl窗体随意输入任何字符的那一瞬间,没有收到的消息突然就刷出来,且显示接收时间相同(实际上这些消息在QQ上并不是同时发送的),这个问题在测试时出现频率较低且没什么规律。

      插件在小号上测试完毕后我在mcl上登陆了一个bot,加的群比较多,大约有500+群,消息大概每秒三四条。此时问题开始出现,我在群里发送消息后大概半分钟甚至更长时间后这条消息才显示在mcl界面上,有时还会丢失这条消息。
      而在性能较低的服务器上有时一分钟以上才能接收到消息
      而在接收到消息后,发送消息时那个问题又出现了。下面是其中的一次的情况,这个问题很容易复现,如果还需要其他例子,我可以提供。

      2021-08-23 16:18:06 V/Bot.3457317465: [H*****b(9*****4)] 不*****盟)(4*****2) -> .ct
      (这条消息其实是我在16:17:32时发送的)
      2021-08-23 16:18:08 I/MiraiCP: Send message for Group(9*****4) is 品味生活!已为不*****盟)调好最合适的饮品:
      Mimosa(含羞草) 6.50%Vol.
      世上有多少种水果,就有多少种含羞草
      开胃,发泡,清爽
      描述仅供参考
      2021-08-23 16:18:08 V/Bot.3*****5: Event: GroupMessagePreSendEvent(target=Group(9*****4), message=品味生活!已为不 *****盟)调好最合适的饮品:
      Mimosa(含羞草) 6.50%Vol.
      世上有多少种水果,就有多少种含羞草
      开胃,发泡,清爽
      描述仅供参考)
      2021-08-23 16:18:09 V/Bot.3*****5: [犬*****厅(1*****0)] F*****k(3*****8) -> [mirai:image:{C4616713-4CD1-0616-FB55-99EC6FC9CC64}.jpg]
      2021-08-23 16:18:13 V/Bot.3*****5: Event: Dropped(bot=Bot(3*****5), cause=HeartbeatFailedException: AliveHeartbeat, recoverable=true, cause=PacketTimeoutException(message=Timeout receiving Heartbeat response, cause=kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms))
      2021-08-23 16:18:14 V/Bot.3*****5: [沈*****锤(1*****6)] 反*****徒(1*****7) -> 两个6联旋风热熔
      2021-08-23 16:18:18 V/Bot.3*****5: [被*****)(6*****2)] 加*****子(1*****8) -> [mirai:quote:[1*****7],[1*****8]][mirai:at:5*****8] 问题不大,群里比你怪的也有
      2021-08-23 16:18:18 V/Bot.3*****5: Group(9*****4) <- 品味生活!已为不*****盟)调好最合适的饮品:\nMimosa(含羞草) 6.50%Vol.\n世上有多少种水果,就有多少种含羞草\n开胃,发泡,清爽\n描述仅供参考
      2021-08-23 16:18:18 W/Bot.3*****5: Connection lost, reconnecting... (HeartbeatFailedException: AliveHeartbeat, recoverable=true, cause=PacketTimeoutException(message=Timeout receiving Heartbeat response, cause=kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms))
      2021-08-23 16:18:18 V/Bot.3*****5: Event: GroupMessagePostSendEvent(target=Group(9*****4), message=品味生活!已为不*****盟)调好最合适的饮品:
      Mimosa(含羞草) 6.50%Vol.
      世上有多少种水果,就有多少种含羞草
      开胃,发泡,清爽
      描述仅供参考, exception=kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms, receipt=null)
      2021-08-23 16:18:18 I/stdout: Timed out waiting for 5000 ms
      2021-08-23 16:18:18 I/stdout: {"data":{"miraiCode":false,"source":"{\"contact\":{\"botid\":3*****5,\"groupid\":0,\"id\":9*****4,\"nickornamecard\":\"H*****b\",\"type\":2},\"content\":\"品味生活!已为不*****盟)调好最 合适的饮品:\\nMimosa(含羞草) 6.50%Vol.\\n世上有多少种水果,就有多少种含羞草\\n开胃,发泡,清爽\\n描述仅供参考\"}"},"type":1}
      2021-08-23 16:18:18 W/stderr: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
      2021-08-23 16:18:18 W/stderr:   at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:186)
      2021-08-23 16:18:18 W/stderr:   at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:156)
      2021-08-23 16:18:18 W/stderr:   at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:497)
      2021-08-23 16:18:18 W/stderr:   at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
      2021-08-23 16:18:18 W/stderr:   at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:69)
      2021-08-23 16:18:18 W/stderr:   at java.base/java.lang.Thread.run(Unknown Source)
      2021-08-23 16:18:18 E/MiraiCP: MiraiCP error:MiraiCP内部无法预料的错误:reach a error area, Contact::SendMiraiCode
      2021-08-23 16:18:18 V/Bot.3*****5: [C*****组(7*****3)] 群*****往(8*****8) -> 也可能大家只看见一张嘴连着个胃?
      2021-08-23 16:18:18 I/Bot.3*****5: Saved account secrets to local cache for fast login.
      2021-08-23 16:18:18 I/Bot.3*****5: Login successful.
      2021-08-23 16:18:18 V/Bot.3*****5: Event: BotOnlineEvent(bot=Bot(3*****5))
      2021-08-23 16:18:18 I/Bot.3*****5: LMT白名单读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: LMT列表读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: 全局昵称读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: 群组昵称读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: 关闭群列表读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: 村规读取完成
      2021-08-23 16:18:18 I/Bot.3*****5: 目前以名称检索的酒品名单上的酒品分别有这么多:157 157
      2021-08-23 16:18:18 V/Bot.3*****5: Event: BotReloginEvent(bot=Bot(3*****5), cause=null)
      2021-08-23 16:18:18 I/Bot.3*****5: Reconnected successfully in 0.287s.
      2021-08-23 16:18:19 V/Bot.3*****5: [庸*****团(8*****3)] 本*****红(2*****0) -> 稳妥=委托
      
      发布在 开发交流
      WavelliteH
      WavelliteH
    • RE: 小白求救,Mirai_CP插件在MCL上收到消息就报错

      谢谢大佬!

      发布在 开发交流
      WavelliteH
      WavelliteH
    • 小白求救,Mirai_CP插件在MCL上收到消息就报错

      如题,之前在使用MCL Installer Auto Release 72b890d安装的MCL上运行了使用Mirai_CP2.7Beta的demo开发的插件,loader也是对应版本,插件运行正常
      后来看到mcl和mirai_cp都有更新,就把mcl更新到了1.0.3,插件也在mirai_cpv2.7-RC-dev4上重新写了一遍,使用了对应的loader,插件未改动代码,只把e.message.to_string()改成了e.message.serialize2string();插件启动的时候未发现错误,但在收到任何消息(私聊消息,群消息,好友请求,群邀请等)mcl上都会出现如下报错。
      为了检查是否是插件的问题,使用mirai_cpv2.7-RC-dev4的demo将其中的示例程序注释掉后未作其他改动,生成cpp.dll插件在mcl中运行,仍然出现相同的报错
      求教该怎么解决

      插件正常启动
      10:54:24 [INFO] iTXTech Mirai Console Loader version 1.2.2-60c67fb
        10:54:24 [INFO] https://github.com/iTXTech/mirai-console-loader
        10:54:24 [INFO] This program is licensed under GNU AGPL v3
        10:54:24 [INFO] Fetching Mirai Console Loader Announcement...
        10:54:24 [INFO] Mirai Console Loader Announcement:
      Mirai Console Loader 公告栏
      
      [mirai-console] 最近, 项目组发现了权限系统可能会被错误的提前加载导致的3rd权限系统无法正确加载
      
      于是决定, 于 2.6 起, 超前访问权限系统将得到一个错误并中断插件加载, 请各开发者及时检查
      
      影响范围: https://github.com/mamoe/mirai-console/pull/307
      
      
        10:54:24 [INFO] Verifying "net.mamoe:mirai-console" v2.7-M2
        10:54:25 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.7-M2
        10:54:25 [INFO] Verifying "net.mamoe:mirai-core-all" v2.7-M2
        10:54:25 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2
      2021-08-08 10:54:26 I/main: Starting mirai-console...
      2021-08-08 10:54:27 I/main: Backend: version 2.7-M2, built on 2021-07-06 21:43:31.
      2021-08-08 10:54:27 I/main: Frontend Terminal: version 2.7-M2, provided by Mamoe Technologies
      2021-08-08 10:54:27 I/main: Welcome to visit https://mirai.mamoe.net/
      2021-08-08 10:54:27 I/plugin: Successfully loaded plugin MCL Addon
      2021-08-08 10:54:27 I/plugin: Successfully loaded plugin miraiCP
      2021-08-08 10:54:27 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop
      2021-08-08 10:54:27 I/MCL Addon: iTXTech MCL Version: 1.2.2-60c67fb
      2021-08-08 10:54:27 I/MiraiCP: ⭐MiraiCP启动中⭐
      2021-08-08 10:54:27 I/MiraiCP: 本项目github存储库:https://github.com/Nambers/MiraiCP
      2021-08-08 10:54:27 E/MiraiCP: 配置文件E:\mirai1.0.3\data\miraiCP\miraicp.txt 不存在,使用默认dll路径E:\mirai1.0.3\data\miraiCP\cpp.dll
      2021-08-08 10:54:27 I/miraiCP: ⭐已加载插件: name
      2021-08-08 10:54:27 I/miraiCP: ⭐作者: Eritque arcus
      2021-08-08 10:54:27 I/miraiCP: ⭐版本: 1.0
      2021-08-08 10:54:27 I/miraiCP: ⭐描述: hello world
      2021-08-08 10:54:27 I/miraiCP: ⭐发行时间: 2021
      2021-08-08 10:54:27 I/miraiCP: ⭐已成功启动MiraiCP⭐
      2021-08-08 10:54:27 I/main: 2 plugin(s) enabled.
      2021-08-08 10:54:27 I/main: mirai-console started successfully.
      
      这里是报错信息
      个人信息经过处理
       常***宜 (3*****1)Login successful
      2021-08-08 10:54:56 V/Bot.34******31: [H******b(9*******4)] 不******盟(4******2) -> [mirai:image:{EAC945A7-9047-2853-1DE9-B6F289BD8680}.jpg]
      2021-08-08 10:59:05 E/miraiCP: Exception in coroutine Plugin miraiCP of miraiCP
      kotlin.UninitializedPropertyAccessException: lateinit property cpp has not been initialized
              at tech.eritquearcus.miraicp.shared.PublicShared.getCpp(PublicShared.kt:59)
              at tech.eritquearcus.miraicp.shared.PublicShared$onEnable$2.invokeSuspend(PublicShared.kt:747)
              at tech.eritquearcus.miraicp.shared.PublicShared$onEnable$2.invoke(PublicShared.kt)
              at tech.eritquearcus.miraicp.shared.PublicShared$onEnable$2.invoke(PublicShared.kt)
              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:432)
              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.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
              at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
              at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
              at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:160)
              at net.mamoe.mirai.internal.event.InternalEventListenersKt.callAndRemoveIfRequired(InternalEventListeners.kt:109)
              at net.mamoe.mirai.event._EventBroadcast.broadcastImpl(Event.kt:174)
              at net.mamoe.mirai.IMirai.broadcastEvent(IMirai.kt:312)
              at net.mamoe.mirai.internal.MiraiImpl.broadcastEvent$suspendImpl(MiraiImpl.kt:296)
              at net.mamoe.mirai.internal.MiraiImpl.broadcastEvent(MiraiImpl.kt)
              at net.mamoe.mirai.event._EventBroadcast.broadcastPublic$suspendImpl(Event.kt:161)
              at net.mamoe.mirai.event._EventBroadcast.broadcastPublic(Event.kt)
              at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:148)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invokeSuspend(EventDispatcher.kt:90)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invoke(EventDispatcher.kt)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$2.invoke(EventDispatcher.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
              at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:89)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast(EventDispatcher.kt)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invokeSuspend(EventDispatcher.kt:105)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
              at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
              at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
              at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
              at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcastAsync-kKe4JaQ(EventDispatcher.kt:102)
              at net.mamoe.mirai.internal.network.components.EventDispatcher.broadcastAsync-kKe4JaQ$default(EventDispatcher.kt:35)
              at net.mamoe.mirai.internal.network.components.EventBroadcasterPacketHandler.impl(PacketHandler.kt:87)
              at net.mamoe.mirai.internal.network.components.EventBroadcasterPacketHandler.handlePacket(PacketHandler.kt:73)
              at net.mamoe.mirai.internal.network.components.PacketHandlerChain.handlePacket(PacketHandler.kt:42)
              at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invokeSuspend(NetworkHandlerSupport.kt:83)
              at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invoke(NetworkHandlerSupport.kt)
              at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport$collectReceived$3.invoke(NetworkHandlerSupport.kt)
              at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55)
              at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
              at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
              at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
              at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
              at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
              at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.collectReceived$mirai_core(NetworkHandlerSupport.kt:81)
              at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$PacketDecodePipeline$2$1.invokeSuspend(NettyNetworkHandler.kt:186)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
              at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
      
      Karlatemp created this issue in mamoe/mirai-console

      closed Ensure that the PermissionService is loaded correctly #307

      发布在 开发交流
      WavelliteH
      WavelliteH
    • 1 / 1