首页 新闻 会员 周边 捐助

java对串口发送数据,java环境遇到致命问题

0
悬赏园豆:5 [已解决问题] 解决于 2020-09-22 10:42

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

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180004465, pid=14556, tid=0x0000000000003e4c

JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode windows-amd64 compressed oops)

Problematic frame:

C [rxtxSerial.dll+0x4465]

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 (0x000001aac77a5800): JavaThread "main" [_thread_in_native, id=15948, stack(0x0000002820e00000,0x0000002820f00000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000223ff2dc

Registers:
RAX=0x000000000000001c, RBX=0x000001aac77a59f8, RCX=0x0000002820efee7c, RDX=0x0000000000000000
RSP=0x0000002820efe760, RBP=0x0000000000000002, RSI=0x0000000000000000, RDI=0x0000000000000001
R8 =0x0000002820efe420, R9 =0x0000000180000000, R10=0x0000000000000000, R11=0x0000000000000200
R12=0x00000000223ff2d0, R13=0x0000000000000000, R14=0x0000002820efef90, R15=0x000001aac77a5800
RIP=0x0000000180004465, EFLAGS=0x0000000000010202

Top of Stack: (sp=0x0000002820efe760)
0x0000002820efe760: 000001aac77a59f8 000000018001c4c0
0x0000002820efe770: 0000000000000000 0000000000000002
0x0000002820efe780: 00000000d5fa24c0 00000000d6122180
0x0000002820efe790: 0000002820efef90 cafebabecafebabe
0x0000002820efe7a0: 0000000000000000 0000000000000000
0x0000002820efe7b0: 0000000000000000 0000000000000000
0x0000002820efe7c0: 0000000000000000 0000000000000000
0x0000002820efe7d0: 0000000000000000 0000000000000000
0x0000002820efe7e0: 0000000000000000 0000000000000000
0x0000002820efe7f0: 0000000000000000 0000000000000000
0x0000002820efe800: 0000000000000000 cafebabecafebabe
0x0000002820efe810: 0000000000000000 cafebabecafebabe
0x0000002820efe820: 0000000000000000 0000000000000000
0x0000002820efe830: 0000000000000000 0000000000000002
0x0000002820efe840: 0000002820efeb70 0000002820efec50
0x0000002820efe850: 0000000000000000 000001aadce966d8

Instructions: (pc=0x0000000180004465)
0x0000000180004445: 1b 48 8b d7 48 8b cb 41 ff 93 b8 00 00 00 45 84
0x0000000180004455: ed 0f 85 97 00 00 00 4d 85 e4 0f 84 8e 00 00 00
0x0000000180004465: 41 83 7c 24 0c 00 0f 84 82 00 00 00 4c 8d 44 24
0x0000000180004475: 30 48 8d 4c 24 38 4d 8b cc 48 8b d3 e8 8a f4 ff

Register to memory mapping:

RAX=0x000000000000001c is an unknown value
RBX=0x000001aac77a59f8 is an unknown value
RCX=0x0000002820efee7c is pointing into the stack for thread: 0x000001aac77a5800
RDX=0x0000000000000000 is an unknown value
RSP=0x0000002820efe760 is pointing into the stack for thread: 0x000001aac77a5800
RBP=0x0000000000000002 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x0000000000000001 is an unknown value
R8 =0x0000002820efe420 is pointing into the stack for thread: 0x000001aac77a5800
R9 =0x0000000180000000 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000200 is an unknown value
R12=0x00000000223ff2d0 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x0000002820efef90 is pointing into the stack for thread: 0x000001aac77a5800
R15=0x000001aac77a5800 is a thread

Stack: [0x0000002820e00000,0x0000002820f00000], sp=0x0000002820efe760, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [rxtxSerial.dll+0x4465]
C 0x000001aac90d9f4e

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gnu.io.RXTXPort.nativeDrain(Z)Z+0
j gnu.io.RXTXPort$SerialOutputStream.flush()V+92
j com.stu.rxtxuse.SerialTool.sendData(Lgnu/io/SerialPort;[B)V+13
j com.stu.rxtxuse.SerialRead.main([Ljava/lang/String;)V+34
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x000001aadf7e1000 JavaThread "Thread-1" [_thread_in_native, id=9776, stack(0x0000002822300000,0x0000002822400000)]
0x000001aadf791000 JavaThread "Thread-0" [_thread_in_native, id=19152, stack(0x0000002822200000,0x0000002822300000)]
0x000001aadf700000 JavaThread "Service Thread" daemon [_thread_blocked, id=18152, stack(0x0000002822000000,0x0000002822100000)]
0x000001aade405000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=8072, stack(0x0000002821f00000,0x0000002822000000)]
0x000001aade402800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=1428, stack(0x0000002821e00000,0x0000002821f00000)]
0x000001aade3f1000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7460, stack(0x0000002821d00000,0x0000002821e00000)]
0x000001aade3ef000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=19104, stack(0x0000002821c00000,0x0000002821d00000)]
0x000001aade3ed000 JavaThread "Attach Listener" daemon [_thread_blocked, id=9508, stack(0x0000002821b00000,0x0000002821c00000)]
0x000001aade3ec000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=19436, stack(0x0000002821a00000,0x0000002821b00000)]
0x000001aade371800 JavaThread "Finalizer" daemon [_thread_blocked, id=20236, stack(0x0000002821900000,0x0000002821a00000)]
0x000001aadd778000 JavaThread "Reference Handler" daemon [_thread_blocked, id=18788, stack(0x0000002821800000,0x0000002821900000)]
=>0x000001aac77a5800 JavaThread "main" [_thread_in_native, id=15948, stack(0x0000002820e00000,0x0000002820f00000)]

Other Threads:
0x000001aade344000 VMThread [stack: 0x0000002821700000,0x0000002821800000] [id=1960]
0x000001aadf72c800 WatcherThread [stack: 0x0000002822100000,0x0000002822200000] [id=15824]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x0000000081c00000, size: 2020 MB, Compressed Oops mode: 32-bit
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x0000000100000000

Heap:
PSYoungGen total 38400K, used 3328K [0x00000000d5f00000, 0x00000000d8980000, 0x0000000100000000)
eden space 33280K, 10% used [0x00000000d5f00000,0x00000000d6240130,0x00000000d7f80000)
from space 5120K, 0% used [0x00000000d8480000,0x00000000d8480000,0x00000000d8980000)
to space 5120K, 0% used [0x00000000d7f80000,0x00000000d7f80000,0x00000000d8480000)
ParOldGen total 87552K, used 0K [0x0000000081c00000, 0x0000000087180000, 0x00000000d5f00000)
object space 87552K, 0% used [0x0000000081c00000,0x0000000081c00000,0x0000000087180000)
Metaspace used 2947K, capacity 4664K, committed 4864K, reserved 1056768K
class space used 321K, capacity 424K, committed 512K, reserved 1048576K

Card table byte_map: [0x000001aad8480000,0x000001aad8880000] byte_map_base: 0x000001aad8072000

Marking Bits: (ParMarkBitMap*) 0x000000006da34fb0
Begin Bits: [0x000001aad8b30000, 0x000001aadaac0000)
End Bits: [0x000001aadaac0000, 0x000001aadca50000)

Polling page: 0x000001aac78c0000

CodeCache: size=245760Kb used=1274Kb max_used=1274Kb free=244485Kb
bounds [0x000001aac90c0000, 0x000001aac9330000, 0x000001aad80c0000]
total_blobs=336 nmethods=97 adapters=152
compilation: enabled

Compilation events (10 events):
Event: 0.185 Thread 0x000001aade405000 92 3 java.util.ArrayList::rangeCheck (22 bytes)
Event: 0.186 Thread 0x000001aade405000 nmethod 92 0x000001aac91fd050 code [0x000001aac91fd260, 0x000001aac91fdd20]
Event: 0.186 Thread 0x000001aade405000 93 3 java.util.ArrayList::elementData (7 bytes)
Event: 0.186 Thread 0x000001aade405000 nmethod 93 0x000001aac91eff50 code [0x000001aac91f00a0, 0x000001aac91f0218]
Event: 0.186 Thread 0x000001aade405000 94 1 java.net.URL::getQuery (5 bytes)
Event: 0.186 Thread 0x000001aade405000 nmethod 94 0x000001aac91fe2d0 code [0x000001aac91fe420, 0x000001aac91fe538]
Event: 0.187 Thread 0x000001aade405000 95 3 java.util.Arrays::copyOf (19 bytes)
Event: 0.188 Thread 0x000001aade405000 nmethod 95 0x000001aac91fe590 code [0x000001aac91fe700, 0x000001aac91fea30]
Event: 0.195 Thread 0x000001aade405000 96 3 java.util.concurrent.ConcurrentHashMap::setTabAt (19 bytes)
Event: 0.195 Thread 0x000001aade405000 nmethod 96 0x000001aac91fef50 code [0x000001aac91ff0a0, 0x000001aac91ff218]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (6 events):
Event: 0.033 Thread 0x000001aac77a5800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000d5f07cc0) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hots
Event: 0.033 Thread 0x000001aac77a5800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000d5f07fa8) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hotspot\src\share\vm\p
Event: 0.116 Thread 0x000001aac77a5800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d6014ca0) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hotspot\src\share\vm\prims\jni.cpp, line 710]
Event: 0.145 Thread 0x000001aac77a5800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d602b1e8) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hotspot\src\share\vm\prims\jni.cpp, line 710]
Event: 0.148 Thread 0x000001aac77a5800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d603b570) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hotspot\src\share\vm\prims\jni.cpp, line 710]
Event: 0.175 Thread 0x000001aac77a5800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d60f7b58) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u261\295\hotspot\src\share\vm\prims\jni.cpp, line 710]

Events (10 events):
Event: 0.188 loading class java/io/DataInput done
Event: 0.189 loading class java/io/RandomAccessFile done
Event: 0.189 loading class java/lang/NumberFormatException
Event: 0.189 loading class java/lang/NumberFormatException done
Event: 0.191 loading class java/lang/IndexOutOfBoundsException
Event: 0.191 loading class java/lang/IndexOutOfBoundsException done
Event: 0.193 loading class gnu/io/RXTXPort$MonitorThread
Event: 0.193 loading class gnu/io/RXTXPort$MonitorThread done
Event: 0.195 Thread 0x000001aadf791000 Thread added: 0x000001aadf791000
Event: 0.203 Thread 0x000001aadf7e1000 Thread added: 0x000001aadf7e1000

Dynamic libraries:
0x00007ff63fc60000 - 0x00007ff63fca7000 C:\Program Files\Java\jre1.8.0_261\bin\javaw.exe
0x00007fffbb360000 - 0x00007fffbb550000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007fffbac90000 - 0x00007fffbad42000 C:\WINDOWS\System32\KERNEL32.DLL
0x00007fffb8de0000 - 0x00007fffb9085000 C:\WINDOWS\System32\KERNELBASE.dll
0x00007fffba140000 - 0x00007fffba1e3000 C:\WINDOWS\System32\ADVAPI32.dll
0x00007fffbadb0000 - 0x00007fffbae4e000 C:\WINDOWS\System32\msvcrt.dll
0x00007fffbab20000 - 0x00007fffbabb7000 C:\WINDOWS\System32\sechost.dll
0x00007fffba310000 - 0x00007fffba430000 C:\WINDOWS\System32\RPCRT4.dll
0x00007fffba630000 - 0x00007fffba7c5000 C:\WINDOWS\System32\USER32.dll
0x00007fffb9090000 - 0x00007fffb90b1000 C:\WINDOWS\System32\win32u.dll
0x00007fffba600000 - 0x00007fffba626000 C:\WINDOWS\System32\GDI32.dll
0x00007fffb8c40000 - 0x00007fffb8dd6000 C:\WINDOWS\System32\gdi32full.dll
0x00007fffb9270000 - 0x00007fffb930e000 C:\WINDOWS\System32\msvcp_win.dll
0x00007fffb82f0000 - 0x00007fffb83ea000 C:\WINDOWS\System32\ucrtbase.dll
0x00007fff9eb20000 - 0x00007fff9eda4000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1082_none_9e8193e1e45b25c1\COMCTL32.dll
0x00007fffba7d0000 - 0x00007fffbab05000 C:\WINDOWS\System32\combase.dll
0x00007fffb9390000 - 0x00007fffb9410000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007fffb9880000 - 0x00007fffb98ae000 C:\WINDOWS\System32\IMM32.DLL
0x00007fffb4580000 - 0x00007fffb4595000 C:\Program Files\Java\jre1.8.0_261\bin\vcruntime140.dll
0x00007fff76640000 - 0x00007fff766db000 C:\Program Files\Java\jre1.8.0_261\bin\msvcp140.dll
0x000000006d240000 - 0x000000006daac000 C:\Program Files\Java\jre1.8.0_261\bin\server\jvm.dll
0x00007fffba5f0000 - 0x00007fffba5f8000 C:\WINDOWS\System32\PSAPI.DLL
0x00007fffb06d0000 - 0x00007fffb06da000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007fffb5a80000 - 0x00007fffb5aa4000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007fff94ed0000 - 0x00007fff94ed9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007fffba020000 - 0x00007fffba08f000 C:\WINDOWS\System32\WS2_32.dll
0x00007fffb5a40000 - 0x00007fffb5a6d000 C:\WINDOWS\SYSTEM32\winmmbase.dll
0x00007fffb9310000 - 0x00007fffb935a000 C:\WINDOWS\System32\cfgmgr32.dll
0x00007fffb8280000 - 0x00007fffb8291000 C:\WINDOWS\System32\kernel.appcore.dll
0x00007fffb1230000 - 0x00007fffb1240000 C:\Program Files\Java\jre1.8.0_261\bin\verify.dll
0x00007fffa4bb0000 - 0x00007fffa4bdb000 C:\Program Files\Java\jre1.8.0_261\bin\java.dll
0x00007fff9e450000 - 0x00007fff9e468000 C:\Program Files\Java\jre1.8.0_261\bin\zip.dll
0x00007fffb98b0000 - 0x00007fffb9f97000 C:\WINDOWS\System32\SHELL32.dll
0x00007fffba250000 - 0x00007fffba2f9000 C:\WINDOWS\System32\shcore.dll
0x00007fffb84a0000 - 0x00007fffb8c20000 C:\WINDOWS\System32\windows.storage.dll
0x00007fffb82c0000 - 0x00007fffb82e3000 C:\WINDOWS\System32\profapi.dll
0x00007fffb8230000 - 0x00007fffb827a000 C:\WINDOWS\System32\powrprof.dll
0x00007fffb8220000 - 0x00007fffb8230000 C:\WINDOWS\System32\UMPDC.dll
0x00007fffbad50000 - 0x00007fffbada2000 C:\WINDOWS\System32\shlwapi.dll
0x00007fffb8c20000 - 0x00007fffb8c37000 C:\WINDOWS\System32\cryptsp.dll
0x0000000180000000 - 0x0000000180025000 C:\Windows\System32\rxtxSerial.dll
0x00007fffb5f30000 - 0x00007fffb6124000 C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=GBK
java_command: com.stu.rxtxuse.SerialRead
java_class_path (initial): C:\Program Files\Java\jre1.8.0_261\lib\resources.jar;C:\Program Files\Java\jre1.8.0_261\lib\rt.jar;C:\Program Files\Java\jre1.8.0_261\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_261\lib\jce.jar;C:\Program Files\Java\jre1.8.0_261\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_261\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\cldrdata.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\jaccess.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\jfxrt.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\localedata.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\nashorn.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\sunec.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jre1.8.0_261\lib\ext\zipfs.jar;E:\eclipse-workspace\Serial\bin;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\RXTXcomm.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_261
PATH=C:/Program Files/Java/jre1.8.0_261/bin/server;C:/Program Files/Java/jre1.8.0_261/bin;C:/Program Files/Java/jre1.8.0_261/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;F:\app\HP\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\Program Files\Java\jdk1.8.0_261\bin;C:\Program Files\Java\jdk1.8.0_261\jre\bin;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;;D:\software\Microsoft VS Code\bin;C:\Users\HP.dotnet\tools;F:\eclipse;
USERNAME=HP
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 11, GenuineIntel

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

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

CPU:total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx

Memory: 4k page, physical 8273208k(1501984k free), swap 18758968k(5804280k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.261-b12) for windows-amd64 JRE (1.8.0_261-b12), built on Jun 18 2020 06:56:32 by "" with unknown MS VC++:1916

time: Mon Sep 21 09:53:16 2020
timezone: ?D1ú±ê×?ê±??
elapsed time: 0 seconds (0d 0h 0m 0s)

天明宝的主页 天明宝 | 初学一级 | 园豆:170
提问于:2020-09-21 10:02
< >
分享
最佳答案
0
收获园豆:5
WMG-Eight | 小虾三级 |园豆:973 | 2020-09-21 10:42

是不是串口的jar和系统不是对应的、、、没用过。你再搜搜。

WMG-Eight | 园豆:973 (小虾三级) | 2020-09-21 11:00

@WMG-Eight: 换了个低版本的jdk可以用

天明宝 | 园豆:170 (初学一级) | 2020-09-22 10:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册