Application crashing while reading the inputstream,but in logs I see rxtx issue. Im using JDK 11 Version
PriyaRamith opened this issue · 2 comments
PriyaRamith commented
# Problematic frame:
# C 0x0000000180003990
#
# 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://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.
#
--------------- S U M M A R Y ------------
Command Line: -Djava.library.path=.\libs --module-path=D:\javafx-sdk-18.0.1\lib --add-modules=javafx.controls,javafx.base,javafx.fxml,javafx.graphics,javafx.media -Dfile.encoding=UTF-8 com.manipalgroup.vems.app.LoginApplication
Host: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 4 cores, 7G, Windows 10 , 64 bit Build 19041 (10.0.19041.1348)
Time: Tue Jun 21 16:53:30 2022 India Standard Time elapsed time: 1532.980499 seconds (0d 0h 25m 32s)
--------------- T H R E A D ---------------
Current thread (0x000001afb8e2c800): JavaThread "Thread-18" [_thread_in_native, id=7248, stack(0x000000a96f900000,0x000000a96fa00000)]
Stack: [0x000000a96f900000,0x000000a96fa00000], sp=0x000000a96f9ff0f0, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000180003990
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gnu.io.RXTXPort.readArray([BII)I+0
j gnu.io.RXTXPort$SerialInputStream.read([BII)I+212
j gnu.io.RXTXPort$SerialInputStream.read([B)I+60
j com.manipalgroup.vems.device.mars.DeviceReading$SerialReader.run()V+298
j java.lang.Thread.run()V+11 java.base@11.0.14
v ~StubRoutines::call_stub
siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x000000006d9ff078
Register to memory mapping:
RIP=0x0000000180003990 points into unknown readable memory: 0x5c894108246c8b45 | 45 8b 6c 24 08 41 89 5c
RAX=0x000000006d9ff070 is an unknown value
RBX=0x0 is NULL
RCX=0x000000018001d4d5 points into unknown readable memory: 64 00 00
RDX=0xfffffffffffff665 is an unknown value
RSP=0x000000a96f9ff0f0 is pointing into the stack for thread: 0x000001afb8e2c800
RBP=
[error occurred during error reporting (printing register info), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc24b61116]
Registers:
RAX=0x000000006d9ff070, RBX=0x0000000000000000, RCX=0x000000018001d4d5, RDX=0xfffffffffffff665
RSP=0x000000a96f9ff0f0, RBP=0x00000000ffffffff, RSI=0x0000000000000001, RDI=0x0000000000000000
R8 =0x0000000000000002, R9 =0xfffffffffffff63c, R10=0x0000000000000714, R11=0x8101010101010100
R12=0x000000006d9ff070, R13=0x0000000000000001, R14=0x0000000000000001, R15=0x0000000000000000
RIP=0x0000000180003990, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x000000a96f9ff0f0)
0x000000a96f9ff0f0: 0000000000000000 000000a96f9ff2c8
0x000000a96f9ff100: 0000000000000001 0000000000000000
0x000000a96f9ff110: 000001afb8e2c800 00000000ffffffff
0x000000a96f9ff120: 0000000000000001 0000000000000000
0x000000a96f9ff130: 000001afb8e2cb48 0000000000000001
0x000000a96f9ff140: 000000a96f9ff2c8 000000018000535a
0x000000a96f9ff150: 000001afbf69e100 000000a96f9ff2c8
0x000000a96f9ff160: 0000000000000001 000001afbf69e100
0x000000a96f9ff170: 000001af00000001 000000a9ffffffff
0x000000a96f9ff180: 000000a96f9ff2d0 000001afb8e2c800
0x000000a96f9ff190: 000001afa15a9b00 00007ffc24bed83c
0x000000a96f9ff1a0: 000000a96f9ff1c0 000001afb8e2c800
0x000000a96f9ff1b0: 000000a96f9ff9c0 000000a96f9ff9c0
0x000000a96f9ff1c0: 000001afc35fa580 000085fcf7caea4e
0x000000a96f9ff1d0: 000000a96f9ff2d0 000001afc35fa578
0x000000a96f9ff1e0: 0000000000000000 000001afa15a9b00
Instructions: (pc=0x0000000180003990)
0x0000000180003970: 00 44 8b fb 8b fb e8 95 fe ff ff 8b ac 24 88 00
0x0000000180003980: 00 00 44 8b b4 24 80 00 00 00 4c 63 e0 41 8b f6
0x0000000180003990: 45 8b 6c 24 08 41 89 5c 24 08 85 ed 78 09 ff 15
0x00000001800039a0: 5c 36 01 00 44 8b f8 45 85 f6 7e 4d 0f 1f 40 00
Stack slot to memory mapping:
stack at sp + 0 slots: 0x0 is NULL
stack at sp + 1 slots: 0x000000a96f9ff2c8 is pointing into the stack for thread: 0x000001afb8e2c800
stack at sp + 2 slots: 0x0000000000000001 is an unknown value
stack at sp + 3 slots: 0x0 is NULL
stack at sp + 4 slots: 0x000001afb8e2c800 is a thread
stack at sp + 5 slots:
[error occurred during error reporting (inspecting top of stack), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc24b61116]
--------------- P R O C E S S ---------------
Threads class SMR info:
_java_thread_list=0x000001afbf4cf440, length=26, elements={
0x000001af9853d800, 0x000001afb7cd6800, 0x000001afb7ce0000, 0x000001afb7ce8000,
0x000001afb7ce9000, 0x000001afb7ceb800, 0x000001afb8645800, 0x000001afb8648800,
0x000001afb8651800, 0x000001afb8904000, 0x000001afb97d3800, 0x000001afb9590000,
0x000001afb918d000, 0x000001afb9f60800, 0x000001afb896e000, 0x000001afbf17b800,
0x000001afb91d9800, 0x000001afbf608000, 0x000001afb8e2c000, 0x000001afb8e29800,
0x000001afb8e2a000, 0x000001afb8e2b000, 0x000001afb8e27000, 0x000001afb8e28800,
0x000001afb8e2c800, 0x000001afb8e2d800
}
Java Threads: ( => current thread )
0x000001af9853d800 JavaThread "main" [_thread_blocked, id=3956, stack(0x000000a96db00000,0x000000a96dc00000)]
0x000001afb7cd6800 JavaThread "Reference Handler" daemon [_thread_blocked, id=10932, stack(0x000000a96e200000,0x000000a96e300000)]
0x000001afb7ce0000 JavaThread "Finalizer" daemon [_thread_blocked, id=12492, stack(0x000000a96e300000,0x000000a96e400000)]
0x000001afb7ce8000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2372, stack(0x000000a96e400000,0x000000a96e500000)]
0x000001afb7ce9000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2988, stack(0x000000a96e500000,0x000000a96e600000)]
0x000001afb7ceb800 JavaThread "Service Thread" daemon [_thread_blocked, id=15716, stack(0x000000a96e600000,0x000000a96e700000)]
0x000001afb8645800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4324, stack(0x000000a96e700000,0x000000a96e800000)]
0x000001afb8648800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=11532, stack(0x000000a96e800000,0x000000a96e900000)]
0x000001afb8651800 JavaThread "Sweeper thread" daemon [_thread_blocked, id=14040, stack(0x000000a96e900000,0x000000a96ea00000)]
0x000001afb8904000 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=1212, stack(0x000000a96ea00000,0x000000a96eb00000)]
0x000001afb97d3800 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=14376, stack(0x000000a96ed00000,0x000000a96ee00000)]
0x000001afb9590000 JavaThread "InvokeLaterDispatcher" daemon [_thread_blocked, id=5136, stack(0x000000a96ee00000,0x000000a96ef00000)]
0x000001afb918d000 JavaThread "JavaFX Application Thread" [_thread_in_native, id=3332, stack(0x000000a96f100000,0x000000a96f200000)]
0x000001afb9f60800 JavaThread "Thread-1" daemon [_thread_in_native, id=2336, stack(0x000000a96f500000,0x000000a96f600000)]
0x000001afb896e000 JavaThread "JavaFX-Launcher" [_thread_blocked, id=14404, stack(0x000000a96eb00000,0x000000a96ec00000)]
0x000001afbf17b800 JavaThread "instance-listener" daemon [_thread_in_native, id=10440, stack(0x000000a96f700000,0x000000a96f800000)]
0x000001afb91d9800 JavaThread "Prism Font Disposer" daemon [_thread_blocked, id=5496, stack(0x000000a96f800000,0x000000a96f900000)]
0x000001afbf608000 JavaThread "Cleaner-0" daemon [_thread_blocked, id=15408, stack(0x000000a970200000,0x000000a970300000)]
0x000001afb8e2c000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4608, stack(0x000000a970500000,0x000000a970600000)]
0x000001afb8e29800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=12984, stack(0x000000a970600000,0x000000a970700000)]
0x000001afb8e2a000 JavaThread "server-timer" daemon [_thread_blocked, id=15548, stack(0x000000a96da00000,0x000000a96db00000)]
0x000001afb8e2b000 JavaThread "HTTP-Dispatcher" [_thread_in_native, id=16160, stack(0x000000a96f300000,0x000000a96f400000)]
0x000001afb8e27000 JavaThread "Thread-16" [_thread_blocked, id=2664, stack(0x000000a96f600000,0x000000a96f700000)]
0x000001afb8e28800 JavaThread "Thread-17" [_thread_in_native, id=16280, stack(0x000000a96d900000,0x000000a96da00000)]
=>0x000001afb8e2c800 JavaThread "Thread-18" [_thread_in_native, id=7248, stack(0x000000a96f900000,0x000000a96fa00000)]
0x000001afb8e2d800 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=14408, stack(0x000000a96fa00000,0x000000a96fb00000)]
Other Threads:
0x000001afb7cb1000 VMThread "VM Thread" [stack: 0x000000a96e100000,0x000000a96e200000] [id=276]
0x000001afb8fbb000 WatcherThread [stack: 0x000000a96ec00000,0x000000a96ed00000] [id=11480]
0x000001af98554000 GCTaskThread "GC Thread#0" [stack:
Please help me to solve this issue
lutkerd commented
You seem to be hitting a bug in RXTX, please see rxtx/rxtx#20 and NeuronRobotics/nrjavaserial#131
lutkerd commented
Closing issue, please reopen if there is anything we can help with.