iTXTech / mirai-native

强大的 mirai 原生插件加载器
GNU Affero General Public License v3.0
369 stars 141 forks source link

似乎无法载入C编写的插件 #54

Closed fvffv closed 3 years ago

fvffv commented 3 years ago

https://wwa.lanzous.com/iXr6lfx0zha 打包地址 内含报错文件

PeratX commented 3 years ago

報錯請直接粘貼到GitHub

fvffv commented 3 years ago

報錯請直接粘貼到GitHub

#

A fatal error has been detected by the Java Runtime Environment:

#

Internal Error (0xe0434352), pid=5644, tid=0x00000d5c

#

JRE version: OpenJDK Runtime Environment (8.0_252-b09) (build 1.8.0_252-b09)

Java VM: OpenJDK Client VM (25.252-b09 mixed mode windows-x86 )

Problematic frame:

C [KERNELBASE.dll+0x1140b2]

#

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

#

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

#

--------------- T H R E A D ---------------

Current thread (0x16a8b400): JavaThread "MiraiNative" daemon [_thread_in_native, id=3420, stack(0x1ecc0000,0x1ed10000)]

siginfo: ExceptionCode=0xe0434352, ExceptionInformation=0x80070002 0x00000000 0x00000000 0x00000000 0x79d60000

Registers: EAX=0x1ed0ef40, EBX=0x00000005, ECX=0x00000005, EDX=0x00000000 ESP=0x1ed0ef40, EBP=0x1ed0ef9c, ESI=0x1ed0f004, EDI=0x00000001 EIP=0x770e40b2, EFLAGS=0x00000212

Top of Stack: (sp=0x1ed0ef40) 0x1ed0ef40: e0434352 00000001 00000000 770e40b2 0x1ed0ef50: 00000005 80070002 00000000 00000000 0x1ed0ef60: 00000000 79d60000 00000000 16e744a0 0x1ed0ef70: ffffffff 00000001 16e8d020 16e8ddf0 0x1ed0ef80: 15de2a50 00c30000 7779dcb6 1ed0efac 0x1ed0ef90: 1ed0ef64 0f913c5d 1ed0ef54 1ed0f038 0x1ed0efa0: 79e628f1 e0434352 00000001 00000005 0x1ed0efb0: 1ed0f004 00b35ee4 16e8ddf0 1efe1e08

Instructions: (pc=0x770e40b2) 0x770e4092: 89 44 24 10 c1 e0 02 50 51 8d 44 24 1c 50 e8 7f 0x770e40a2: 55 02 00 83 c4 0c 8d 04 24 50 ff 15 04 94 19 77 0x770e40b2: 8b 4c 24 54 33 cc e8 c3 c0 01 00 8b e5 5d c2 10 0x770e40c2: 00 83 64 24 10 00 eb de 6a 0f 58 eb c3 cc cc cc

Register to memory mapping:

EAX=0x1ed0ef40 is pointing into the stack for thread: 0x16a8b400 EBX=0x00000005 is an unknown value ECX=0x00000005 is an unknown value EDX=0x00000000 is an unknown value ESP=0x1ed0ef40 is pointing into the stack for thread: 0x16a8b400 EBP=0x1ed0ef9c is pointing into the stack for thread: 0x16a8b400 ESI=0x1ed0f004 is pointing into the stack for thread: 0x16a8b400 EDI=0x00000001 is an unknown value

Stack: [0x1ecc0000,0x1ed10000], sp=0x1ed0ef40, free space=315k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [KERNELBASE.dll+0x1140b2] C [clr.dll+0x1028f1] C [clr.dll+0x16c182] C [clr.dll+0x2c7fa8] C [mscoreei.dll+0xf7f9] C [mscoreei.dll+0x4002a] C [mscoreei.dll+0x1589c] C [CQP.dll+0x164b] j org.itxtech.mirainative.Bridge.loadNativePlugin(Ljava/lang/String;I)I+0 j org.itxtech.mirainative.bridge.NativeBridge.loadPlugin(Lorg/itxtech/mirainative/plugin/NativePlugin;)I+33 j org.itxtech.mirainative.manager.PluginManager$loadPlugin$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+171 j kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V+49 j kotlinx.coroutines.DispatchedTask.run()V+329 j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4 j java.util.concurrent.FutureTask.run()V+42 j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Ljava/util/concurrent/ScheduledThreadPoolExecutor$ScheduledFutureTask;)V+1 j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V+30 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [jvm.dll+0x136da2] V [jvm.dll+0x20195b] V [jvm.dll+0x136a9a] V [jvm.dll+0x13742c] V [jvm.dll+0x137386] V [jvm.dll+0xdf4c2] V [jvm.dll+0x15b40a] V [jvm.dll+0x15ab9f] V [jvm.dll+0x1995fb] C [msvcr120.dll+0x2c01d] C [msvcr120.dll+0x2c001] C [KERNEL32.DLL+0x16359] C [ntdll.dll+0x67c24] C [ntdll.dll+0x67bf4] C 0x00000000

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.itxtech.mirainative.Bridge.loadNativePlugin(Ljava/lang/String;I)I+0 j org.itxtech.mirainative.bridge.NativeBridge.loadPlugin(Lorg/itxtech/mirainative/plugin/NativePlugin;)I+33 j org.itxtech.mirainative.manager.PluginManager$loadPlugin$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+171 j kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V+49 j kotlinx.coroutines.DispatchedTask.run()V+329 j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4 j java.util.concurrent.FutureTask.run()V+42 j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Ljava/util/concurrent/ScheduledThreadPoolExecutor$ScheduledFutureTask;)V+1 j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V+30 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread ) 0x16a8a800 JavaThread "DestroyJavaVM" [_thread_blocked, id=5688, stack(0x00e00000,0x00e50000)] =>0x16a8b400 JavaThread "MiraiNative" daemon [_thread_in_native, id=3420, stack(0x1ecc0000,0x1ed10000)] 0x16a8a000 JavaThread "kotlinx.coroutines.DefaultExecutor" daemon [_thread_blocked, id=12408, stack(0x1e680000,0x1e6d0000)] 0x16a89c00 JavaThread "DefaultDispatcher-worker-2" daemon [_thread_blocked, id=8464, stack(0x1e4f0000,0x1e540000)] 0x16a8d400 JavaThread "DefaultDispatcher-worker-1" daemon [_thread_blocked, id=8468, stack(0x1e460000,0x1e4b0000)] 0x16a8cc00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=8292, stack(0x1da10000,0x1da60000)] 0x16925400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1104, stack(0x17550000,0x175a0000)] 0x16925000 JavaThread "AWT-Shutdown" [_thread_blocked, id=14776, stack(0x174c0000,0x17510000)] 0x16922c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3240, stack(0x17430000,0x17480000)] 0x167c9800 JavaThread "ktor-cio-dispatcher-worker-4" daemon [_thread_in_native, id=11792, stack(0x16ff0000,0x17040000)] 0x15bd1000 JavaThread "Mirai Console Input Thread" [_thread_in_native, id=11676, stack(0x16170000,0x161c0000)] 0x15ba5000 JavaThread "ktor-cio-dispatcher-worker-3" daemon [_thread_blocked, id=3584, stack(0x160e0000,0x16130000)] 0x15a84c00 JavaThread "ktor-cio-dispatcher-worker-2" daemon [_thread_blocked, id=5000, stack(0x15e50000,0x15ea0000)] 0x15aa0c00 JavaThread "ktor-cio-dispatcher-worker-1" daemon [_thread_blocked, id=7200, stack(0x159c0000,0x15a10000)] 0x156dec00 JavaThread "kotlinx.coroutines.DefaultExecutor" daemon [_thread_blocked, id=7260, stack(0x15930000,0x15980000)] 0x15718000 JavaThread "DefaultDispatcher-worker-2" daemon [_thread_blocked, id=2636, stack(0x158a0000,0x158f0000)] 0x1571c400 JavaThread "DefaultDispatcher-worker-1" daemon [_thread_blocked, id=14060, stack(0x15810000,0x15860000)] 0x1530e800 JavaThread "Service Thread" daemon [_thread_blocked, id=15524, stack(0x154f0000,0x15540000)] 0x152dc400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=11752, stack(0x15460000,0x154b0000)] 0x152b0400 JavaThread "Attach Listener" daemon [_thread_blocked, id=16068, stack(0x153d0000,0x15420000)] 0x152af400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3260, stack(0x15340000,0x15390000)] 0x15291800 JavaThread "Finalizer" daemon [_thread_blocked, id=3108, stack(0x15130000,0x15180000)] 0x00d2ac00 JavaThread "Reference Handler" daemon [_thread_blocked, id=8252, stack(0x150a0000,0x150f0000)]

Other Threads: 0x00d13c00 VMThread [stack: 0x04b90000,0x04be0000] [id=6152] 0x15310c00 WatcherThread [stack: 0x15580000,0x155d0000] [id=6912]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap: def new generation total 4992K, used 1209K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 15% used [0x04c00000, 0x04cae420, 0x05060000) from space 512K, 100% used [0x05060000, 0x050e0000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 9563K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 87% used [0x0a150000, 0x0aaa6e80, 0x0aaa7000, 0x0ac00000) Metaspace used 18338K, capacity 18565K, committed 18688K, reserved 18816K

Card table byte_map: [0x04a60000,0x04af0000] byte_map_base: 0x04a3a000

Polling page: 0x00b30000

CodeCache: size=32768Kb used=1614Kb max_used=1614Kb free=31153Kb bounds [0x029e0000, 0x02b78000, 0x049e0000] total_blobs=898 nmethods=630 adapters=200 compilation: enabled

Compilation events (10 events): Event: 1.237 Thread 0x152dc400 631 java.util.zip.ZipCoder::getBytes (192 bytes) Event: 1.238 Thread 0x152dc400 nmethod 631 0x02b717c8 code [0x02b71a10, 0x02b725b4] Event: 1.238 Thread 0x152dc400 632 java.util.zip.ZipCoder::encoder (35 bytes) Event: 1.238 Thread 0x152dc400 nmethod 632 0x02b72fc8 code [0x02b730f0, 0x02b73224] Event: 1.238 Thread 0x152dc400 633 java.nio.charset.CharsetEncoder::reset (11 bytes) Event: 1.238 Thread 0x152dc400 nmethod 633 0x02b73308 code [0x02b73410, 0x02b734bc] Event: 1.251 Thread 0x152dc400 634 kotlinx.serialization.json.internal.JsonReaderKt::charToTokenClass (16 bytes) Event: 1.251 Thread 0x152dc400 nmethod 634 0x02b73508 code [0x02b73600, 0x02b736b0] Event: 1.253 Thread 0x152dc400 635 kotlinx.serialization.json.internal.JsonReader::nextToken (101 bytes) Event: 1.253 Thread 0x152dc400 nmethod 635 0x02b73748 code [0x02b73880, 0x02b73a84]

GC Heap History (10 events): Event: 0.774 GC heap before {Heap before GC invocations=11 (full 0): def new generation total 4928K, used 2460K [0x04c00000, 0x05150000, 0x0a150000) eden space 4416K, 44% used [0x04c00000, 0x04de70d0, 0x05050000) from space 512K, 100% used [0x050d0000, 0x05150000, 0x05150000) to space 512K, 0% used [0x05050000, 0x05050000, 0x050d0000) tenured generation total 10944K, used 9790K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 89% used [0x0a150000, 0x0aadfba8, 0x0aadfc00, 0x0ac00000) Metaspace used 12054K, capacity 12263K, committed 12288K, reserved 12672K Event: 0.784 GC heap after Heap after GC invocations=12 (full 1): def new generation total 4992K, used 0K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 0% used [0x04c00000, 0x04c00000, 0x05060000) from space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 5424K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 49% used [0x0a150000, 0x0a69c268, 0x0a69c400, 0x0ac00000) Metaspace used 12054K, capacity 12263K, committed 12288K, reserved 12672K } Event: 0.819 GC heap before {Heap before GC invocations=12 (full 1): def new generation total 4992K, used 4480K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 100% used [0x04c00000, 0x05060000, 0x05060000) from space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 5424K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 49% used [0x0a150000, 0x0a69c268, 0x0a69c400, 0x0ac00000) Metaspace used 12757K, capacity 12977K, committed 13056K, reserved 13696K Event: 0.822 GC heap after Heap after GC invocations=13 (full 1): def new generation total 4992K, used 512K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 0% used [0x04c00000, 0x04c00000, 0x05060000) from space 512K, 100% used [0x050e0000, 0x05160000, 0x05160000) to space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) tenured generation total 10944K, used 5747K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 52% used [0x0a150000, 0x0a6ece30, 0x0a6ed000, 0x0ac00000) Metaspace used 12757K, capacity 12977K, committed 13056K, reserved 13696K } Event: 0.893 GC heap before {Heap before GC invocations=13 (full 1): def new generation total 4992K, used 4992K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 100% used [0x04c00000, 0x05060000, 0x05060000) from space 512K, 100% used [0x050e0000, 0x05160000, 0x05160000) to space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) tenured generation total 10944K, used 5747K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 52% used [0x0a150000, 0x0a6ece30, 0x0a6ed000, 0x0ac00000) Metaspace used 14280K, capacity 14486K, committed 14592K, reserved 14720K Event: 0.896 GC heap after Heap after GC invocations=14 (full 1): def new generation total 4992K, used 512K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 0% used [0x04c00000, 0x04c00000, 0x05060000) from space 512K, 100% used [0x05060000, 0x050e0000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 6737K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 61% used [0x0a150000, 0x0a7e4510, 0x0a7e4600, 0x0ac00000) Metaspace used 14280K, capacity 14486K, committed 14592K, reserved 14720K } Event: 1.149 GC heap before {Heap before GC invocations=14 (full 1): def new generation total 4992K, used 4965K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 99% used [0x04c00000, 0x05059490, 0x05060000) from space 512K, 100% used [0x05060000, 0x050e0000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 6737K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 61% used [0x0a150000, 0x0a7e4510, 0x0a7e4600, 0x0ac00000) Metaspace used 17539K, capacity 17765K, committed 17920K, reserved 18816K Event: 1.153 GC heap after Heap after GC invocations=15 (full 1): def new generation total 4992K, used 512K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 0% used [0x04c00000, 0x04c00000, 0x05060000) from space 512K, 100% used [0x050e0000, 0x05160000, 0x05160000) to space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) tenured generation total 10944K, used 8360K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 76% used [0x0a150000, 0x0a97a0c8, 0x0a97a200, 0x0ac00000) Metaspace used 17539K, capacity 17765K, committed 17920K, reserved 18816K } Event: 1.239 GC heap before {Heap before GC invocations=15 (full 1): def new generation total 4992K, used 4992K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 100% used [0x04c00000, 0x05060000, 0x05060000) from space 512K, 100% used [0x050e0000, 0x05160000, 0x05160000) to space 512K, 0% used [0x05060000, 0x05060000, 0x050e0000) tenured generation total 10944K, used 8360K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 76% used [0x0a150000, 0x0a97a0c8, 0x0a97a200, 0x0ac00000) Metaspace used 18232K, capacity 18469K, committed 18560K, reserved 18816K Event: 1.242 GC heap after Heap after GC invocations=16 (full 1): def new generation total 4992K, used 512K [0x04c00000, 0x05160000, 0x0a150000) eden space 4480K, 0% used [0x04c00000, 0x04c00000, 0x05060000) from space 512K, 100% used [0x05060000, 0x050e0000, 0x050e0000) to space 512K, 0% used [0x050e0000, 0x050e0000, 0x05160000) tenured generation total 10944K, used 9563K [0x0a150000, 0x0ac00000, 0x14c00000) the space 10944K, 87% used [0x0a150000, 0x0aaa6e80, 0x0aaa7000, 0x0ac00000) Metaspace used 18232K, capacity 18469K, committed 18560K, reserved 18816K }

Deoptimization events (0 events): No events

Classes redefined (0 events): No events

Internal exceptions (10 events): Event: 0.301 Thread 0x00c65000 Exception <a 'java/security/PrivilegedActionException'> (0x04f4c3e8) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jvm.cpp, line 1502] Event: 0.301 Thread 0x00c65000 Exception <a 'java/security/PrivilegedActionException'> (0x04f4db78) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jvm.cpp, line 1502] Event: 0.301 Thread 0x00c65000 Exception <a 'java/security/PrivilegedActionException'> (0x04f4df58) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jvm.cpp, line 1502] Event: 0.450 Thread 0x15ba5000 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x04fcb6f8) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167] Event: 0.452 Thread 0x15ba5000 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x05002570) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167] Event: 0.876 Thread 0x00c65000 Exception <a 'java/io/FileNotFoundException'> (0x04f2dff8) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jni.cpp, line 710] Event: 0.884 Thread 0x00c65000 Exception <a 'java/lang/ClassNotFoundException': sun/dc/DuctusRenderingEngine> (0x04f433e8) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 210] Event: 0.938 Thread 0x00c65000 Exception <a 'java/io/FileNotFoundException'> (0x04ca2570) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jni.cpp, line 710] Event: 1.050 Thread 0x00c65000 Exception <a 'java/io/FileNotFoundException'> (0x04e4be78) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\prims\jni.cpp, line 710] Event: 1.050 Thread 0x00c65000 Exception <a 'java/lang/NullPointerException'> (0x04e4c468) thrown at [J:\jenkins\tmp\workspace\build\src\hotspot\src\share\vm\interpreter\linkResolver.cpp, line 1185]

Events (10 events): Event: 1.252 loading class org/itxtech/mirainative/plugin/Menu$Companion Event: 1.252 loading class org/itxtech/mirainative/plugin/Menu$Companion done Event: 1.252 loading class org/itxtech/mirainative/plugin/Status$$serializer Event: 1.252 loading class org/itxtech/mirainative/plugin/Status$$serializer done Event: 1.252 loading class org/itxtech/mirainative/plugin/Status$$serializer Event: 1.252 loading class org/itxtech/mirainative/plugin/Status$$serializer done Event: 1.253 loading class kotlinx/serialization/internal/IntArrayBuilder Event: 1.253 loading class kotlinx/serialization/internal/IntArrayBuilder done Event: 1.253 loading class kotlinx/serialization/internal/PrimitiveArrayBuilder Event: 1.253 loading class kotlinx/serialization/internal/PrimitiveArrayBuilder done

Dynamic libraries: 0x00210000 - 0x00245000 F:\MiraiOK\MiraiOK - 副本\jre\bin\java.exe 0x77760000 - 0x778fa000 C:\WINDOWS\SYSTEM32\ntdll.dll 0x751a0000 - 0x75280000 C:\WINDOWS\System32\KERNEL32.DLL 0x76fd0000 - 0x771ce000 C:\WINDOWS\System32\KERNELBASE.dll 0x71720000 - 0x717bf000 C:\WINDOWS\SYSTEM32\apphelp.dll 0x76a60000 - 0x76ad9000 C:\WINDOWS\System32\ADVAPI32.dll 0x76d20000 - 0x76ddf000 C:\WINDOWS\System32\msvcrt.dll 0x759a0000 - 0x75a16000 C:\WINDOWS\System32\sechost.dll 0x75af0000 - 0x75bab000 C:\WINDOWS\System32\RPCRT4.dll 0x74f30000 - 0x74f50000 C:\WINDOWS\System32\SspiCli.dll 0x74f20000 - 0x74f2a000 C:\WINDOWS\System32\CRYPTBASE.dll 0x76cc0000 - 0x76d1f000 C:\WINDOWS\System32\bcryptPrimitives.dll 0x76de0000 - 0x76f78000 C:\WINDOWS\System32\USER32.dll 0x76490000 - 0x764a7000 C:\WINDOWS\System32\win32u.dll 0x75170000 - 0x75191000 C:\WINDOWS\System32\GDI32.dll 0x75d40000 - 0x75e9b000 C:\WINDOWS\System32\gdi32full.dll 0x75850000 - 0x758cc000 C:\WINDOWS\System32\msvcp_win.dll 0x76300000 - 0x7641f000 C:\WINDOWS\System32\ucrtbase.dll 0x724e0000 - 0x726ef000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1016_none_e6276d92f8de03ea\COMCTL32.dll 0x76520000 - 0x76795000 C:\WINDOWS\System32\combase.dll 0x76460000 - 0x76485000 C:\WINDOWS\System32\IMM32.DLL 0x558d0000 - 0x559be000 F:\MiraiOK\MiraiOK - 副本\jre\bin\msvcr120.dll 0x55850000 - 0x558c1000 F:\MiraiOK\MiraiOK - 副本\jre\bin\msvcp120.dll 0x50930000 - 0x50cba000 F:\MiraiOK\MiraiOK - 副本\jre\bin\client\jvm.dll 0x76ae0000 - 0x76ae6000 C:\WINDOWS\System32\PSAPI.DLL 0x72820000 - 0x72844000 C:\WINDOWS\SYSTEM32\WINMM.dll 0x74f10000 - 0x74f18000 C:\WINDOWS\SYSTEM32\VERSION.dll 0x601f0000 - 0x601f8000 C:\WINDOWS\SYSTEM32\WSOCK32.dll 0x75a80000 - 0x75ade000 C:\WINDOWS\System32\WS2_32.dll 0x72780000 - 0x727a3000 C:\WINDOWS\SYSTEM32\winmmbase.dll 0x76af0000 - 0x76b2b000 C:\WINDOWS\System32\cfgmgr32.dll 0x60110000 - 0x6011d000 F:\MiraiOK\MiraiOK - 副本\jre\bin\verify.dll 0x56d60000 - 0x56d84000 F:\MiraiOK\MiraiOK - 副本\jre\bin\java.dll 0x55e60000 - 0x55e74000 F:\MiraiOK\MiraiOK - 副本\jre\bin\zip.dll 0x771d0000 - 0x7774a000 C:\WINDOWS\System32\SHELL32.dll 0x76b30000 - 0x76bb4000 C:\WINDOWS\System32\shcore.dll 0x75280000 - 0x75843000 C:\WINDOWS\System32\windows.storage.dll 0x76820000 - 0x7683b000 C:\WINDOWS\System32\profapi.dll 0x76f80000 - 0x76fc3000 C:\WINDOWS\System32\powrprof.dll 0x75ae0000 - 0x75aed000 C:\WINDOWS\System32\UMPDC.dll 0x758d0000 - 0x75914000 C:\WINDOWS\System32\shlwapi.dll 0x76510000 - 0x7651f000 C:\WINDOWS\System32\kernel.appcore.dll 0x75980000 - 0x75993000 C:\WINDOWS\System32\cryptsp.dll 0x55a90000 - 0x55aa6000 F:\MiraiOK\MiraiOK - 副本\jre\bin\net.dll 0x74280000 - 0x742d2000 C:\WINDOWS\system32\mswsock.dll 0x567d0000 - 0x567df000 F:\MiraiOK\MiraiOK - 副本\jre\bin\nio.dll 0x74370000 - 0x7439f000 C:\WINDOWS\system32\rsaenh.dll 0x76440000 - 0x76459000 C:\WINDOWS\System32\bcrypt.dll 0x74ee0000 - 0x74efe000 C:\WINDOWS\SYSTEM32\USERENV.dll 0x74c80000 - 0x74cb2000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL 0x75ea0000 - 0x75ea7000 C:\WINDOWS\System32\NSI.dll 0x703f0000 - 0x70403000 C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL 0x74310000 - 0x74325000 C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL 0x741e0000 - 0x74274000 C:\WINDOWS\SYSTEM32\DNSAPI.dll 0x74190000 - 0x741db000 C:\Windows\System32\netload.dll 0x75c40000 - 0x75d37000 C:\WINDOWS\System32\ole32.dll 0x74cc0000 - 0x74cd3000 C:\WINDOWS\SYSTEM32\NETAPI32.dll 0x74740000 - 0x74b9b000 C:\WINDOWS\SYSTEM32\WININET.dll 0x73fe0000 - 0x7418a000 C:\WINDOWS\SYSTEM32\urlmon.dll 0x73db0000 - 0x73fd9000 C:\WINDOWS\SYSTEM32\iertutil.dll 0x73580000 - 0x73588000 C:\Windows\System32\rasadhlp.dll 0x73590000 - 0x735e1000 C:\WINDOWS\System32\fwpuclnt.dll 0x557a0000 - 0x557c3000 F:\MiraiOK\MiraiOK - 副本\jre\bin\sunec.dll 0x507e0000 - 0x5092a000 F:\MiraiOK\MiraiOK - 副本\jre\bin\awt.dll 0x74f50000 - 0x74fe2000 C:\WINDOWS\System32\OLEAUT32.dll 0x71ba0000 - 0x71c1a000 C:\WINDOWS\system32\uxtheme.dll 0x75060000 - 0x75163000 C:\WINDOWS\System32\MSCTF.dll 0x55770000 - 0x55795000 F:\MiraiOK\MiraiOK - 副本\jre\bin\jpeg.dll 0x6bbb0000 - 0x6bbd5000 C:\WINDOWS\system32\DWMAPI.DLL 0x506e0000 - 0x507df000 C:\WINDOWS\system32\opengl32.dll 0x55730000 - 0x5576f000 C:\WINDOWS\SYSTEM32\GLU32.dll 0x6cf10000 - 0x6cf29000 C:\WINDOWS\SYSTEM32\dxcore.dll 0x6b970000 - 0x6bafe000 C:\WINDOWS\system32\d3d9.dll 0x694f0000 - 0x695b8000 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_55e7fb10ab85a7c2\nvldumd.dll 0x76bc0000 - 0x76cbb000 C:\WINDOWS\System32\crypt32.dll 0x75000000 - 0x7500e000 C:\WINDOWS\System32\MSASN1.dll 0x72080000 - 0x720a6000 C:\WINDOWS\SYSTEM32\cryptnet.dll 0x75010000 - 0x75056000 C:\WINDOWS\System32\WINTRUST.DLL 0x76420000 - 0x7643b000 C:\WINDOWS\System32\imagehlp.dll 0x78bc0000 - 0x79d60000 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_55e7fb10ab85a7c2\nvd3dum.dll 0x55600000 - 0x5567b000 F:\MiraiOK\MiraiOK - 副本\jre\bin\freetype.dll 0x524c0000 - 0x5255b000 F:\MiraiOK\MiraiOK - 副本\jre\bin\fontmanager.dll 0x6ae20000 - 0x6aeb4000 C:\WINDOWS\SYSTEM32\mscms.dll 0x6ae00000 - 0x6ae11000 C:\WINDOWS\SYSTEM32\ColorAdapterClient.dll 0x556f0000 - 0x5572e000 C:\WINDOWS\SYSTEM32\icm32.dll 0x52830000 - 0x5284d000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\CQP.dll 0x689e0000 - 0x689ec000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\gzip.dll 0x1e6e0000 - 0x1e949000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\htmlayout.dll 0x76840000 - 0x768f0000 C:\WINDOWS\System32\comdlg32.dll 0x70e90000 - 0x70ee3000 C:\WINDOWS\SYSTEM32\OLEACC.dll 0x1ead0000 - 0x1ec25000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\libeay32.dll 0x66000000 - 0x66154000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\libiconv.dll 0x61e00000 - 0x61ecd000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\sqlite3.dll 0x62e80000 - 0x62ea2000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\libraries\zlib1.dll 0x506a0000 - 0x506db000 C:\WINDOWS\system32\c_g18030.dll 0x55e50000 - 0x55e5c000 F:\MiraiOK\MiraiOK - 副本\plugins\MiraiNative\plugins\app.dll 0x50640000 - 0x50692000 C:\WINDOWS\SYSTEM32\mscoree.dll 0x505b0000 - 0x5063d000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll 0x79d60000 - 0x7a510000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 0x524a0000 - 0x524b4000 C:\WINDOWS\SYSTEM32\VCRUNTIME140_CLR0400.dll 0x50500000 - 0x505ab000 C:\WINDOWS\SYSTEM32\ucrtbase_clr0400.dll 0x20fe0000 - 0x223ee000 C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\a3618d8dcd1f21a09718a75880e4b193\mscorlib.ni.dll 0x73a10000 - 0x73b9f000 C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments: java_command: mirai-console-wrapper-1.3.0.jar --update keep java_class_path (initial): mirai-console-wrapper-1.3.0.jar Launcher Type: SUN_STANDARD

Environment Variables: PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\14281\AppData\Local\Microsoft\WindowsApps; USERNAME=14281 OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel

--------------- S Y S T E M ---------------

OS: Windows 10.0 , 64 bit Build 18362 (10.0.18362.959)

CPU:total 16 (initial active 16) (8 cores per cpu, 2 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, ht, tsc, tscinvbit, tscinv

Memory: 4k page, physical 18794704k(12839364k free), swap 21547216k(14203652k free)

vm_info: OpenJDK Client VM (25.252-b09) for windows-x86 JRE (1.8.0_252-b09), built on Apr 22 2020 09:37:52 by "jenkins" with MS VC++ 12.0 (VS2013)

time: Sat Aug 22 11:52:33 2020 timezone: ?D1ú±ê×?ê±?? elapsed time: 1 seconds (0d 0h 0m 1s)

PeratX commented 3 years ago

錯誤發生在插件内部,請嘗試用VS調試器附加到java進程並載入插件代碼進行調試 這邊沒有任何可以提供的幫助。

PeratX commented 3 years ago

問題已經重複,見 #49

fvffv commented 3 years ago

問題已經重複,見 #49

好的 麻烦你了 准备用E重新写 另外在下为了方便一些用户使用mirai-native写了一个插件 具体功能如下 1.拖入DLL检查是否符合标准 2.自动生成json和去除注释(没json也可以) 3.可导入已有json 4.一键安装(调用npm命令)

但目前唯一问题是非E编写的DLL无法调用DLL中的AppInfo函数 而E编写的DLL一切正常 可能是易语言原因吧

PeratX commented 3 years ago

問題已經重複,見 #49

好的 麻烦你了 准备用E重新写 另外在下为了方便一些用户使用mirai-native写了一个插件 具体功能如下 1.拖入DLL检查是否符合标准 2.自动生成json和去除注释(没json也可以) 3.可导入已有json 4.一键安装(调用npm命令)

但目前唯一问题是非E编写的DLL无法调用DLL中的AppInfo函数 而E编写的DLL一切正常 可能是易语言原因吧

現在mirai native已經支持從dll中獲取json,方法名為const char* pluginInfo(),返回字符串編碼為GB18030

fvffv commented 3 years ago

問題已經重複,見 #49

好的 麻烦你了 准备用E重新写 另外在下为了方便一些用户使用mirai-native写了一个插件 具体功能如下 1.拖入DLL检查是否符合标准 2.自动生成json和去除注释(没json也可以) 3.可导入已有json 4.一键安装(调用npm命令) 但目前唯一问题是非E编写的DLL无法调用DLL中的AppInfo函数 而E编写的DLL一切正常 可能是易语言原因吧

現在mirai native已經支持從dll中獲取json,方法名為const char* pluginInfo(),返回字符串編碼為GB18030

这个是直接导入DLL自动生成JSON到插件目录下吗

PeratX commented 3 years ago

在該函數中,直接返回json字符串即可,不再需要獨立的json文件,儅json文件存在時,將優先從外部json文件讀取。

fvffv commented 3 years ago

件存

原来是这样 请问最新版的mirai在哪里可以下载到呢 自己找的mirai-console-pure-1.0-M2-1-all 以及mirai-core-qqandroid-1.2.1.jar似乎无法运行

PeratX commented 3 years ago

https://github.com/iTXTech/mirai-native/issues/50#issuecomment-678590138

fvffv commented 3 years ago

#50 (comment)

请问最新版的mirai是不是无法载入MN插件

PeratX commented 3 years ago

需要使用Mirai Native 1.9.0以上版本

fvffv commented 3 years ago

需要使用Mirai Native 1.9.0以上版本

2020-08-22 12:49:07 W/MiraiNative: 当前运行环境 64 可能不与 Mirai Native 兼容,推荐使用 32位 JRE 运行 Mirai Native。 2020-08-22 12:49:07 W/MiraiNative: 如果您正在开发或调试其他环境下的 Mirai Native,请忽略此警告。 2020-08-22 12:49:07 I/plugin: Cannot load plugin MiraiNative 2020-08-22 12:49:07 W/stderr: Exception in thread "main" net.mamoe.mirai.console.plugin.PluginLoadException: Exception while loading MiraiNative 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.JarPluginLoaderImpl.load(JarPluginLoaderImpl.kt:105) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.plugin.jvm.JarPluginLoader$INSTANCE.load(JarPluginLoader.kt) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.plugin.jvm.JarPluginLoader$INSTANCE.load(JarPluginLoader.kt:28) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.plugin.DeferredPluginLoader.load(PluginLoader.kt:103) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadPluginNoEnable(PluginManagerImpl.kt:70) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAndEnableAllInOrder(PluginManagerImpl.kt:118) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadEnablePlugins$mirai_console(PluginManagerImpl.kt:113) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:90) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:90) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.pure.MiraiConsolePureLoaderKt.startup(MiraiConsolePureLoader.kt:45) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.pure.MiraiConsolePureLoader.main(MiraiConsolePureLoader.kt:37) 2020-08-22 12:49:07 W/stderr: Caused by: java.lang.NoSuchMethodError: net.mamoe.mirai.console.command.CommandManager.register$default(Lnet/mamoe/mirai/console/command/CommandManager;Lnet/mamoe/mirai/console/command/Command;ZILjava/lang/Object;)Z 2020-08-22 12:49:07 W/stderr: at org.itxtech.mirainative.manager.PluginManager.registerCommands(PluginManager.kt:276) 2020-08-22 12:49:07 W/stderr: at org.itxtech.mirainative.MiraiNative.onLoad(MiraiNative.kt:105) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnLoad$mirai_console(JvmPluginInternal.kt:73) 2020-08-22 12:49:07 W/stderr: at net.mamoe.mirai.console.internal.plugin.JarPluginLoaderImpl.load(JarPluginLoaderImpl.kt:101) 2020-08-22 12:49:07 W/stderr: ... 10 more

PeratX commented 3 years ago

2020-08-22 12:49:07 W/MiraiNative: 当前运行环境 64 可能不与 Mirai Native 兼容,推荐使用 32位 JRE 运行 Mirai Native。 您是否有注意警告信息?

fvffv commented 3 years ago

2020-08-22 12:49:07 W/MiraiNative: 当前运行环境 64 可能不与 Mirai Native 兼容,推荐使用 32位 JRE 运行 Mirai Native。 您是否有注意警告信息?

更换过后依旧是此问题呢

PeratX commented 3 years ago

請使用32位 JRE運行。

fvffv commented 3 years ago

請使用32位 JRE運行。

刚刚我换了32位 现在我能确定使用的是32位jre 可依旧是报错

PeratX commented 3 years ago

如果還是同樣錯誤,那説明還是64位JRE,如果提示其他錯誤,請刪除CQP.dll

fvffv commented 3 years ago

如果還是同樣錯誤,那説明還是64位JRE,如果提示其他錯誤,請刪除CQP.dll 可这次并没有报 ”当前运行环境 64 可能不与 Mirai Native 兼容,推荐使用 32位 JRE 运行 Mirai Native。“ 但错误是相同的

PeratX commented 3 years ago

請給出完整日志