Java VM crashes when calling SerialPort.getCommPort("ComX")
clausfriedrich opened this issue · 20 comments
I am using Version 2.10.3 with different USB to Serial Converter. That works fine with all Connectors except one: Edgeports/4 seem to have a problematic driver which lets the jvm crash. I testet that with different jvm versions up to version 17 and its always the same.
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6a8c70c1, pid=9920, tid=0x00000210
JRE version: Java(TM) SE Runtime Environment (8.0_152-b16) (build 1.8.0_152-b16)
Java VM: Java HotSpot(TM) Client VM (25.152-b16 mixed mode windows-x86 )
Problematic frame:
C 0x6a8c70c1
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 (0x1532c000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=528, stack(0x18ca0000,0x18cf0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000002
Registers:
EAX=0x00000002, EBX=0x00000002, ECX=0x00000002, EDX=0x1a5e002e
ESP=0x18cee324, EBP=0x18cee324, ESI=0x00000000, EDI=0x1a5efde0
EIP=0x6a8c70c1, EFLAGS=0x00010287
Top of Stack: (sp=0x18cee324)
0x18cee324: 18cee390 6a8c2160 00000002 0000002e
0x18cee334: 00000001 ffffffff 195b9708 0000004e
0x18cee344: ffffffff 19420228 0000005e 0000000c
0x18cee354: 1a4c9408 1a59cb78 0000001b 0000001b
0x18cee364: 00000012 00000000 00000000 ffffffff
0x18cee374: 6a8e2d0c 18feccc8 00000000 00000000
0x18cee384: ffffffff 0000002c 1a59cb78 0000001c
0x18cee394: 4d36e978 11cee325 0008c1bf 1803e12b
Instructions: (pc=0x6a8c70c1)
0x6a8c70a1: 0c 0f b7 c2 66 0f 6e c0 f2 0f 70 c0 00 66 0f 70
0x6a8c70b1: d0 00 8b c1 25 ff 0f 00 00 3d f0 0f 00 00 77 22
0x6a8c70c1: 0f 10 09 0f 28 05 e0 f0 8d 6a 66 0f 75 c1 66 0f
0x6a8c70d1: 75 ca 66 0f eb c1 66 0f d7 c0 85 c0 75 18 6a 10
Register to memory mapping:
EAX=0x00000002 is an unknown value
EBX=0x00000002 is an unknown value
ECX=0x00000002 is an unknown value
EDX=0x1a5e002e is an unknown value
ESP=0x18cee324 is pointing into the stack for thread: 0x1532c000
EBP=0x18cee324 is pointing into the stack for thread: 0x1532c000
ESI=0x00000000 is an unknown value
EDI=0x1a5efde0 is an unknown value
Stack: [0x18ca0000,0x18cf0000], sp=0x18cee324, free space=312k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x6a8c70c1
C 0x6a8c2160
C 0x4d36e978
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.fazecast.jSerialComm.SerialPort.retrievePortDetails()V+0
j com.fazecast.jSerialComm.SerialPort.getCommPort(Ljava/lang/String;)Lcom/fazecast/jSerialComm/SerialPort;+279
j com.alo.FriLink.DriverConnections.Serial.JSerialComm.JSerialCommListener.open(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;ILjava/lang/String;)Z+760
j com.alo.FriLink.Driver.RheolabQCV01.Connector.RheolabSerialConnectorV1.connect()Z+77
j com.alo.FriLink.Driver.RheolabQCV01.RheolabQCDataModelV01.connect(Lcom/alo/FriLink/Driver/RheolabQCV01/Connector/RheolabQCInterfaceV01;)Z+11
j com.alo.FriLink.Driver.RheolabQCV01.RheolabQCV01.localPrepareMeasurement()V+828
j com.alo.FriLink.Driver.RheolabQCV01.RheolabQCV01.requestDataTransfer(Ljava/util/Vector;)V+127
j com.alo.FriLink.UserInterface.Default.ActionListener.AlOpenSamplesStartMeasure.actionPerformed(Ljava/awt/event/ActionEvent;)V+411
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+83
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+34
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.AWTEventMulticaster.mouseReleased(Ljava/awt/event/MouseEvent;)V+8
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+589
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+327
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+155
j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j java.awt.EventQueue.access$500(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j java.awt.EventQueue$3.run()Ljava/lang/Void;+32
j java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
J 773 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x0240dc87 [0x0240dc20+0x67]
j java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+18
j java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j java.awt.EventQueue$4.run()Ljava/lang/Void;+11
j java.awt.EventQueue$4.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
J 773 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x0240dc87 [0x0240dc20+0x67]
j java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+18
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
j java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+245
j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x1b0d9400 JavaThread "Thread-14" [_thread_blocked, id=10832, stack(0x1d410000,0x1d460000)]
0x1b0d5400 JavaThread "Thread-13" [_thread_blocked, id=8604, stack(0x1d380000,0x1d3d0000)]
0x1b0d6000 JavaThread "Thread-12" [_thread_blocked, id=11076, stack(0x1d2f0000,0x1d340000)]
0x1b0d9800 JavaThread "Direct Clip" daemon [_thread_blocked, id=11016, stack(0x1d2a0000,0x1d2f0000)]
0x1b0d8400 JavaThread "Direct Clip" daemon [_thread_blocked, id=11088, stack(0x1c8e0000,0x1c930000)]
0x1b0d4c00 JavaThread "Direct Clip" daemon [_thread_blocked, id=8088, stack(0x1c6e0000,0x1c730000)]
0x1b0d8c00 JavaThread "Direct Clip" daemon [_thread_blocked, id=5260, stack(0x1abc0000,0x1ac10000)]
0x1afb7000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8392, stack(0x1d240000,0x1d290000)]
0x1afb6800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8396, stack(0x1d1b0000,0x1d200000)]
0x1afb5c00 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=11084, stack(0x1a9c0000,0x1aa10000)]
0x1afb5800 JavaThread "TimerQueue" daemon [_thread_blocked, id=4504, stack(0x1bc40000,0x1bc90000)]
0x1afb6400 JavaThread "SwingWorker-pool-4-thread-1" daemon [_thread_blocked, id=5344, stack(0x1bbb0000,0x1bc00000)]
0x1afa2800 JavaThread "Swing-Shell" daemon [_thread_blocked, id=9008, stack(0x199b0000,0x19a00000)]
0x1af2d400 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=13004, stack(0x19210000,0x19260000)]
0x1534e000 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=11932, stack(0x18f40000,0x18f90000)]
=>0x1532c000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=528, stack(0x18ca0000,0x18cf0000)]
0x152a6400 JavaThread "Image Animator 0" daemon [_thread_blocked, id=524, stack(0x16af0000,0x16b40000)]
0x1529f800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=656, stack(0x15da0000,0x15df0000)]
0x1529f000 JavaThread "AWT-Shutdown" [_thread_blocked, id=8832, stack(0x15d10000,0x15d60000)]
0x1529e400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8836, stack(0x15c80000,0x15cd0000)]
0x14908400 JavaThread "Service Thread" daemon [_thread_blocked, id=12856, stack(0x14fa0000,0x14ff0000)]
0x148e7000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5600, stack(0x14f10000,0x14f60000)]
0x148e6000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1056, stack(0x14e80000,0x14ed0000)]
0x148e4000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10356, stack(0x14df0000,0x14e40000)]
0x148db000 JavaThread "Finalizer" daemon [_thread_blocked, id=7396, stack(0x14c20000,0x14c70000)]
0x148c5400 JavaThread "Reference Handler" daemon [_thread_blocked, id=12956, stack(0x14b90000,0x14be0000)]
0x021cd800 JavaThread "main" [_thread_blocked, id=12632, stack(0x02140000,0x02190000)]
Other Threads:
0x022ee800 VMThread [stack: 0x14b00000,0x14b50000] [id=8060]
0x1490cc00 WatcherThread [stack: 0x15030000,0x15080000] [id=6888]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
def new generation total 4992K, used 1281K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 18% used [0x04400000, 0x044d4010, 0x04860000)
from space 512K, 84% used [0x048e0000, 0x0494c750, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 7386K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 67% used [0x09950000, 0x0a086b70, 0x0a086c00, 0x0a400000)
Metaspace used 14703K, capacity 14942K, committed 15104K, reserved 15744K
Card table byte_map: [0x04370000,0x04400000] byte_map_base: 0x0434e000
Polling page: 0x02190000
CodeCache: size=32768Kb used=2274Kb max_used=2274Kb free=30493Kb
bounds [0x022f0000, 0x02530000, 0x042f0000]
total_blobs=1344 nmethods=1065 adapters=209
compilation: enabled
Compilation events (10 events):
Event: 7.966 Thread 0x148e7000 1072 java.util.Arrays$ArrayList::get (7 bytes)
Event: 7.966 Thread 0x148e7000 nmethod 1072 0x025261c8 code [0x025262c0, 0x02526360]
Event: 7.976 Thread 0x148e7000 1073 java.lang.ref.Reference::clear (6 bytes)
Event: 7.977 Thread 0x148e7000 nmethod 1073 0x025266c8 code [0x025267c0, 0x02526850]
Event: 7.978 Thread 0x148e7000 1074 java.util.zip.ZipCoder::getBytes (192 bytes)
Event: 7.979 Thread 0x148e7000 nmethod 1074 0x02526888 code [0x02526aa0, 0x025275a0]
Event: 7.987 Thread 0x148e7000 1075 java.lang.AbstractStringBuilder::setLength (45 bytes)
Event: 7.987 Thread 0x148e7000 nmethod 1075 0x02527e48 code [0x02527f80, 0x02528270]
Event: 7.993 Thread 0x148e7000 1076 ! java.lang.ClassLoader::findNative (86 bytes)
Event: 7.994 Thread 0x148e7000 nmethod 1076 0x02528508 code [0x02528640, 0x02528ab8]
GC Heap History (10 events):
Event: 5.419 GC heap before
{Heap before GC invocations=10 (full 1):
def new generation total 4992K, used 4992K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 100% used [0x04400000, 0x04860000, 0x04860000)
from space 512K, 100% used [0x04860000, 0x048e0000, 0x048e0000)
to space 512K, 0% used [0x048e0000, 0x048e0000, 0x04960000)
tenured generation total 10944K, used 4809K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 43% used [0x09950000, 0x09e02708, 0x09e02800, 0x0a400000)
Metaspace used 12617K, capacity 12849K, committed 12928K, reserved 13696K
Event: 5.421 GC heap after
Heap after GC invocations=11 (full 1):
def new generation total 4992K, used 268K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 0% used [0x04400000, 0x04400000, 0x04860000)
from space 512K, 52% used [0x048e0000, 0x04923198, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 5309K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 48% used [0x09950000, 0x09e7f540, 0x09e7f600, 0x0a400000)
Metaspace used 12617K, capacity 12849K, committed 12928K, reserved 13696K
}
Event: 5.473 GC heap before
{Heap before GC invocations=11 (full 1):
def new generation total 4992K, used 4748K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 100% used [0x04400000, 0x04860000, 0x04860000)
from space 512K, 52% used [0x048e0000, 0x04923198, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 5309K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 48% used [0x09950000, 0x09e7f540, 0x09e7f600, 0x0a400000)
Metaspace used 12968K, capacity 13231K, committed 13312K, reserved 13696K
Event: 5.475 GC heap after
Heap after GC invocations=12 (full 1):
def new generation total 4992K, used 221K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 0% used [0x04400000, 0x04400000, 0x04860000)
from space 512K, 43% used [0x04860000, 0x04897528, 0x048e0000)
to space 512K, 0% used [0x048e0000, 0x048e0000, 0x04960000)
tenured generation total 10944K, used 5570K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 50% used [0x09950000, 0x09ec0908, 0x09ec0a00, 0x0a400000)
Metaspace used 12968K, capacity 13231K, committed 13312K, reserved 13696K
}
Event: 5.684 GC heap before
{Heap before GC invocations=12 (full 1):
def new generation total 4992K, used 4701K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 100% used [0x04400000, 0x04860000, 0x04860000)
from space 512K, 43% used [0x04860000, 0x04897528, 0x048e0000)
to space 512K, 0% used [0x048e0000, 0x048e0000, 0x04960000)
tenured generation total 10944K, used 5570K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 50% used [0x09950000, 0x09ec0908, 0x09ec0a00, 0x0a400000)
Metaspace used 13536K, capacity 13810K, committed 13952K, reserved 14720K
Event: 5.686 GC heap after
Heap after GC invocations=13 (full 1):
def new generation total 4992K, used 479K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 0% used [0x04400000, 0x04400000, 0x04860000)
from space 512K, 93% used [0x048e0000, 0x04957de0, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 5570K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 50% used [0x09950000, 0x09ec0908, 0x09ec0a00, 0x0a400000)
Metaspace used 13536K, capacity 13810K, committed 13952K, reserved 14720K
}
Event: 5.918 GC heap before
{Heap before GC invocations=13 (full 1):
def new generation total 4992K, used 4959K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 100% used [0x04400000, 0x04860000, 0x04860000)
from space 512K, 93% used [0x048e0000, 0x04957de0, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 5570K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 50% used [0x09950000, 0x09ec0908, 0x09ec0a00, 0x0a400000)
Metaspace used 14498K, capacity 14750K, committed 14848K, reserved 15744K
Event: 5.923 GC heap after
Heap after GC invocations=14 (full 1):
def new generation total 4992K, used 512K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 0% used [0x04400000, 0x04400000, 0x04860000)
from space 512K, 100% used [0x04860000, 0x048e0000, 0x048e0000)
to space 512K, 0% used [0x048e0000, 0x048e0000, 0x04960000)
tenured generation total 10944K, used 6831K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 62% used [0x09950000, 0x09ffbf30, 0x09ffc000, 0x0a400000)
Metaspace used 14498K, capacity 14750K, committed 14848K, reserved 15744K
}
Event: 7.968 GC heap before
{Heap before GC invocations=14 (full 1):
def new generation total 4992K, used 4954K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 99% used [0x04400000, 0x048568b0, 0x04860000)
from space 512K, 100% used [0x04860000, 0x048e0000, 0x048e0000)
to space 512K, 0% used [0x048e0000, 0x048e0000, 0x04960000)
tenured generation total 10944K, used 6882K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 62% used [0x09950000, 0x0a008908, 0x0a008a00, 0x0a400000)
Metaspace used 14589K, capacity 14846K, committed 14976K, reserved 15744K
Event: 7.971 GC heap after
Heap after GC invocations=15 (full 1):
def new generation total 4992K, used 433K [0x04400000, 0x04960000, 0x09950000)
eden space 4480K, 0% used [0x04400000, 0x04400000, 0x04860000)
from space 512K, 84% used [0x048e0000, 0x0494c750, 0x04960000)
to space 512K, 0% used [0x04860000, 0x04860000, 0x048e0000)
tenured generation total 10944K, used 7386K [0x09950000, 0x0a400000, 0x14400000)
the space 10944K, 67% used [0x09950000, 0x0a086b70, 0x0a086c00, 0x0a400000)
Metaspace used 14589K, capacity 14846K, committed 14976K, reserved 15744K
}
Deoptimization events (0 events):
No events
Classes redefined (0 events):
No events
Internal exceptions (10 events):
Event: 0.380 Thread 0x021cd800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x046dec28) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 0.411 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x0440be78) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.420 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x0442bd38) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.437 Thread 0x021cd800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x044f0450) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167]
Event: 0.438 Thread 0x021cd800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x044fc560) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167]
Event: 0.497 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x046bf738) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 6.001 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x04650988) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 6.001 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x04652cf8) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 6.001 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x04657470) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 6.246 Thread 0x021cd800 Exception <a 'java/io/FileNotFoundException'> (0x046b0578) thrown at [C:\workspace\8-2-build-windows-i586-cygwin\jdk8u152\9742\hotspot\src\share\vm\prims\jni.cpp, line 709]
Events (10 events):
Event: 7.990 loading class java/util/concurrent/locks/ReentrantLock$FairSync
Event: 7.990 loading class java/util/concurrent/locks/ReentrantLock$FairSync done
Event: 7.991 loading class java/lang/ClassLoaderHelper
Event: 7.991 loading class java/lang/ClassLoaderHelper done
Event: 7.994 loading class com/fazecast/jSerialComm/SerialPortThreadFactory
Event: 7.994 loading class com/fazecast/jSerialComm/SerialPortThreadFactory done
Event: 7.994 loading class com/fazecast/jSerialComm/SerialPortThreadFactory$1
Event: 7.994 loading class com/fazecast/jSerialComm/SerialPortThreadFactory$1 done
Event: 7.995 loading class com/fazecast/jSerialComm/SerialPort$1
Event: 7.995 loading class com/fazecast/jSerialComm/SerialPort$1 done
Dynamic libraries:
0x00360000 - 0x00393000 C:\Users\Public\Documents\jre1.8.0_152\bin\javaw.exe
0x77080000 - 0x77224000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x75af0000 - 0x75be0000 C:\WINDOWS\System32\KERNEL32.DLL
0x764c0000 - 0x766fa000 C:\WINDOWS\System32\KERNELBASE.dll
0x75d50000 - 0x75dcc000 C:\WINDOWS\System32\ADVAPI32.dll
0x75840000 - 0x758ff000 C:\WINDOWS\System32\msvcrt.dll
0x76440000 - 0x764b6000 C:\WINDOWS\System32\sechost.dll
0x76c40000 - 0x76cff000 C:\WINDOWS\System32\RPCRT4.dll
0x76820000 - 0x769bc000 C:\WINDOWS\System32\USER32.dll
0x756f0000 - 0x75708000 C:\WINDOWS\System32\win32u.dll
0x75710000 - 0x75734000 C:\WINDOWS\System32\GDI32.dll
0x769e0000 - 0x76ac5000 C:\WINDOWS\System32\gdi32full.dll
0x75f80000 - 0x75ffb000 C:\WINDOWS\System32\msvcp_win.dll
0x76700000 - 0x76820000 C:\WINDOWS\System32\ucrtbase.dll
0x73eb0000 - 0x740c0000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_a8625c1886757984\COMCTL32.dll
0x76bb0000 - 0x76bd5000 C:\WINDOWS\System32\IMM32.DLL
0x6c0d0000 - 0x6c18f000 C:\Users\Public\Documents\jre1.8.0_152\bin\msvcr100.dll
0x6bd00000 - 0x6c0cf000 C:\Users\Public\Documents\jre1.8.0_152\bin\client\jvm.dll
0x76de0000 - 0x76de6000 C:\WINDOWS\System32\PSAPI.DLL
0x742f0000 - 0x74318000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x74470000 - 0x74478000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x74320000 - 0x74328000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x75f00000 - 0x75f63000 C:\WINDOWS\System32\WS2_32.dll
0x71d20000 - 0x71d2c000 C:\Users\Public\Documents\jre1.8.0_152\bin\verify.dll
0x71cf0000 - 0x71d12000 C:\Users\Public\Documents\jre1.8.0_152\bin\java.dll
0x71cd0000 - 0x71ce4000 C:\Users\Public\Documents\jre1.8.0_152\bin\zip.dll
0x75130000 - 0x756e6000 C:\WINDOWS\System32\SHELL32.dll
0x74790000 - 0x74d9c000 C:\WINDOWS\SYSTEM32\windows.storage.dll
0x76df0000 - 0x77070000 C:\WINDOWS\System32\combase.dll
0x74760000 - 0x74785000 C:\WINDOWS\SYSTEM32\Wldp.dll
0x75e70000 - 0x75ef7000 C:\WINDOWS\System32\SHCORE.dll
0x757f0000 - 0x75835000 C:\WINDOWS\System32\shlwapi.dll
0x74700000 - 0x7471c000 C:\WINDOWS\SYSTEM32\profapi.dll
0x71cc0000 - 0x71cca000 C:\Users\Public\Documents\jre1.8.0_152\bin\management.dll
0x71860000 - 0x71875000 C:\Users\Public\Documents\jre1.8.0_152\bin\net.dll
0x726a0000 - 0x726f2000 C:\WINDOWS\system32\mswsock.dll
0x71840000 - 0x71851000 C:\WINDOWS\system32\napinsp.dll
0x71820000 - 0x71836000 C:\WINDOWS\system32\pnrpnsp.dll
0x71cb0000 - 0x71cc0000 C:\WINDOWS\system32\wshbth.dll
0x71630000 - 0x71646000 C:\WINDOWS\system32\NLAapi.dll
0x74390000 - 0x743c2000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
0x723c0000 - 0x72450000 C:\WINDOWS\SYSTEM32\DNSAPI.dll
0x75dd0000 - 0x75dd7000 C:\WINDOWS\System32\NSI.dll
0x71620000 - 0x7162e000 C:\WINDOWS\System32\winrnr.dll
0x723b0000 - 0x723b8000 C:\Windows\System32\rasadhlp.dll
0x74410000 - 0x74469000 C:\WINDOWS\System32\fwpuclnt.dll
0x750c0000 - 0x750d9000 C:\WINDOWS\System32\bcrypt.dll
0x71610000 - 0x7161f000 C:\Users\Public\Documents\jre1.8.0_152\bin\nio.dll
0x6b750000 - 0x6b895000 C:\Users\Public\Documents\jre1.8.0_152\bin\awt.dll
0x759f0000 - 0x75a86000 C:\WINDOWS\System32\OLEAUT32.dll
0x73050000 - 0x730f0000 C:\WINDOWS\SYSTEM32\apphelp.dll
0x74ea0000 - 0x74f14000 C:\WINDOWS\system32\uxtheme.dll
0x76d00000 - 0x76dd4000 C:\WINDOWS\System32\MSCTF.dll
0x75900000 - 0x759e3000 C:\WINDOWS\System32\ole32.dll
0x74e90000 - 0x74e9f000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
0x74f60000 - 0x74fbf000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x744b0000 - 0x744d6000 C:\WINDOWS\system32\DWMAPI.DLL
0x6bcc0000 - 0x6bcf9000 C:\Users\Public\Documents\jre1.8.0_152\bin\fontmanager.dll
0x6b640000 - 0x6b743000 C:\WINDOWS\system32\opengl32.dll
0x6bc80000 - 0x6bcbf000 C:\WINDOWS\SYSTEM32\GLU32.dll
0x6b4b0000 - 0x6b63f000 C:\WINDOWS\system32\d3d9.dll
0x6aee0000 - 0x6b4a2000 C:\WINDOWS\SYSTEM32\d3d10warp.dll
0x715e0000 - 0x7160c000 C:\WINDOWS\SYSTEM32\dxcore.dll
0x74f20000 - 0x74f5b000 C:\WINDOWS\System32\cfgmgr32.dll
0x6bc40000 - 0x6bc72000 C:\Users\Public\Documents\jre1.8.0_152\bin\t2k.dll
0x721a0000 - 0x7225a000 C:\WINDOWS\SYSTEM32\textinputframework.dll
0x71e80000 - 0x720fe000 C:\WINDOWS\System32\CoreUIComponents.dll
0x72100000 - 0x7219b000 C:\WINDOWS\System32\CoreMessaging.dll
0x73630000 - 0x73659000 C:\WINDOWS\SYSTEM32\ntmarta.dll
0x71da0000 - 0x71e7b000 C:\WINDOWS\SYSTEM32\wintypes.dll
0x6ae40000 - 0x6aed3000 C:\WINDOWS\SYSTEM32\mscms.dll
0x718c0000 - 0x718e5000 C:\WINDOWS\SYSTEM32\USERENV.dll
0x715b0000 - 0x715bc000 C:\WINDOWS\SYSTEM32\ColorAdapterClient.dll
0x6bc00000 - 0x6bc3e000 C:\WINDOWS\SYSTEM32\icm32.dll
0x72650000 - 0x72663000 C:\WINDOWS\SYSTEM32\CRYPTSP.dll
0x72620000 - 0x7264f000 C:\WINDOWS\system32\rsaenh.dll
0x72670000 - 0x7267a000 C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
0x713f0000 - 0x71404000 C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL
0x713d0000 - 0x713e6000 C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL
0x6bab0000 - 0x6bb3d000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.19041.1110_none_c0da534e38c01f4d\comctl32.dll
0x76ad0000 - 0x76b4e000 C:\WINDOWS\System32\clbcatq.dll
0x74da0000 - 0x74e62000 C:\WINDOWS\SYSTEM32\PROPSYS.dll
0x71590000 - 0x715a3000 C:\WINDOWS\system32\NetworkExplorer.dll
0x743d0000 - 0x743e9000 C:\WINDOWS\SYSTEM32\MPR.dll
0x742d0000 - 0x742e1000 C:\WINDOWS\System32\vmhgfs.dll
0x740f0000 - 0x74105000 C:\WINDOWS\System32\VCRUNTIME140.dll
0x742c0000 - 0x742c9000 C:\WINDOWS\System32\drprov.dll
0x73890000 - 0x738d7000 C:\WINDOWS\System32\WINSTA.dll
0x740d0000 - 0x740e8000 C:\WINDOWS\System32\ntlanman.dll
0x73120000 - 0x73139000 C:\WINDOWS\System32\davclnt.dll
0x740c0000 - 0x740ca000 C:\WINDOWS\System32\DAVHLPR.dll
0x73100000 - 0x73113000 C:\WINDOWS\System32\wkscli.dll
0x730f0000 - 0x730fe000 C:\WINDOWS\SYSTEM32\cscapi.dll
0x74400000 - 0x7440b000 C:\WINDOWS\System32\netutils.dll
0x73000000 - 0x73043000 C:\Windows\System32\dlnashext.dll
0x72fb0000 - 0x72ff9000 C:\Windows\System32\PlayToDevice.dll
0x72f90000 - 0x72fab000 C:\Windows\System32\DevDispItemProvider.dll
0x72f20000 - 0x72f8b000 C:\WINDOWS\System32\MMDevApi.dll
0x72ef0000 - 0x72f19000 C:\WINDOWS\System32\DEVOBJ.dll
0x72e60000 - 0x72eeb000 C:\WINDOWS\system32\wpdshext.dll
0x738e0000 - 0x73a47000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.2251_none_d9513b1fe1046fc7\gdiplus.dll
0x72dd0000 - 0x72e53000 C:\Windows\System32\PortableDeviceApi.dll
0x76000000 - 0x76438000 C:\WINDOWS\System32\SETUPAPI.dll
0x750e0000 - 0x7512c000 C:\WINDOWS\System32\WINTRUST.dll
0x74fc0000 - 0x750c0000 C:\WINDOWS\System32\CRYPT32.dll
0x72dc0000 - 0x72dce000 C:\WINDOWS\System32\MSASN1.dll
0x72d80000 - 0x72dc0000 C:\WINDOWS\system32\audiodev.dll
0x72b70000 - 0x72d7d000 C:\WINDOWS\system32\WMVCore.DLL
0x72b30000 - 0x72b6d000 C:\WINDOWS\system32\WMASF.DLL
0x72a20000 - 0x72b26000 C:\WINDOWS\system32\mfperfhelper.dll
0x6bbf0000 - 0x6bbfb000 C:\WINDOWS\SYSTEM32\LINKINFO.dll
0x74580000 - 0x746f1000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
0x74350000 - 0x74381000 C:\WINDOWS\system32\dataexchange.dll
0x732e0000 - 0x734c0000 C:\WINDOWS\system32\d3d11.dll
0x734c0000 - 0x73624000 C:\WINDOWS\system32\dcomp.dll
0x74110000 - 0x741d2000 C:\WINDOWS\system32\dxgi.dll
0x73140000 - 0x732d4000 C:\WINDOWS\system32\twinapi.appcore.dll
0x6bbe0000 - 0x6bbea000 C:\Users\Public\Documents\jre1.8.0_152\bin\jsound.dll
0x6bbd0000 - 0x6bbd9000 C:\Users\Public\Documents\jre1.8.0_152\bin\jsoundds.dll
0x6adc0000 - 0x6ae3f000 C:\WINDOWS\SYSTEM32\DSOUND.dll
0x6ad70000 - 0x6adb4000 C:\WINDOWS\SYSTEM32\powrprof.dll
0x71360000 - 0x7137d000 C:\WINDOWS\SYSTEM32\winmmbase.dll
0x6ad60000 - 0x6ad6d000 C:\WINDOWS\SYSTEM32\UMPDC.dll
0x6ad20000 - 0x6ad5a000 C:\WINDOWS\SYSTEM32\wdmaud.drv
0x6ad10000 - 0x6ad17000 C:\WINDOWS\SYSTEM32\ksuser.dll
0x6ad00000 - 0x6ad08000 C:\WINDOWS\SYSTEM32\AVRT.dll
0x6acd0000 - 0x6acf4000 C:\Users\Public\Documents\jre1.8.0_152\bin\dcpr.dll
0x6ab90000 - 0x6acc6000 C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8
java_command: com.alo.FriLink.FriLink
java_class_path (initial): C:\Users\cf\Workspaces\git-dev\frilink\FriLink\bin;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\apache-log4j-2.1-bin\log4j-api-2.1.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\apache-log4j-2.1-bin\log4j-core-2.1.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\commons-logging-1.2\commons-logging-1.2.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\javacommapi-win32\comm.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\jdom-2.0.6\jdom-2.0.6.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\jfreechart-1.0.3\jcommon-1.0.6.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\jfreechart-1.0.3\jfreechart-1.0.3.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\license4j\LICENSE4J-Runtime-Library.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\PDFBox-1.8.4\commons-logging-1.1.3.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\PDFBox-1.8.4\commons-logging-api-1.1.3.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\PDFBox-2.0.15\fontbox-2.0.15.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\PDFBox-2.0.15\pdfbox-2.0.15.jar;C:\Users\cf\Workspaces\git-dev\fritools\FriTools\bin;C:\Users\cf\Workspaces\git-dev\fritools\FriTools\binary\jdom-2.0.6\jdom-2.0.6.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distribution-Related-Files\binary\PDFBox-2.0.15\pdfbox-tools-2.0.15.jar;C:\Users\cf\Workspaces\git-dev\frilink\FriLink\Distrib
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Program Files/Java/jre1.8.0_231/bin/server;C:/Program Files/Java/jre1.8.0_231/bin;C:/Program Files/Java/jre1.8.0_231/lib/amd64;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\cf\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\eclipse-java-2019-03-R-win32-x86_64\eclipse;
USERNAME=cf
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 10.0 , 64 bit Build 19041 (10.0.19041.3155)
CPU:total 4 (initial active 4) (2 cores per cpu, 1 threads per core) family 6 model 158 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, tsc, tscinvbit, bmi1, bmi2, adx
Memory: 4k page, physical 8388084k(4283056k free), swap 9698804k(5255496k free)
vm_info: Java HotSpot(TM) Client VM (25.152-b16) for windows-x86 JRE (1.8.0_152-b16), built on Sep 14 2017 02:22:24 by "java_re" with MS VC++ 10.0 (VS2010)
time: Tue Aug 08 19:18:51 2023
elapsed time: 8 seconds (0d 0h 0m 8s)
One thing to check...I just noticed from the crash dump, it looks like you are running a 32-bit version of Java on a 64-bit version of Windows. Could you retest this using a correctly matched JVM architecture and see if the issue persists? (I'm not sure why the crash would be happening in the place that it is, but this could at least indicate a place for me to start looking.)
I checked that with:
-JRE version: Java(TM) SE Runtime Environment (8.0_381) (build 1.8.0_381-b09)
-Java VM: Java HotSpot(TM) 64-Bit Server VM (25.381-b09 mixed mode windows-amd64 compressed oops)
The hs_err_pid file is attached. PLease let me know when you need additional information!
This is bizarre! Your error log looks like it's crashing in the native call to retrievePortDetails()
which does nothing other than to enumerate the ports on your machine to fill in the missing details on the Java side. Out of curiosity, does it crash if you call SerialPort.getCommPorts()
instead of specifying the port directly? My guess/hope is that it will still crash, otherwise this is even weirder.
You are right, when i enumerate the ports it chrashes also. I am swichtching from the deprecated javacomm to jSerialComm, and with the javacomm component it works without any issue.
Are there any news on this issue? Can i help to fix it?
Sorry for the delay on this issue...I'm unable to reproduce on my side, and I haven't seen any other users with this issue. Would you be able to test some native Windows binaries for me that do the exact same thing as the native port enumeration code on jSerialComm except without all the Java stuff? If so, I'll compile a couple of tests for you that can hopefully help us narrow down where exactly the crash is occurring.
I am happy that i can help. Please send me some binaries and some instructions :)
Great, thank you! I'll be out of town until Monday, so most likely won't get you anything until mid-next-week. Appreciate the help!
When you get a chance, could you please download the following file, change its extension from .dmp
to .exe
(GitHub won't let me upload the file with the exe extension), and then run it in a terminal with the fewest number of USB/Serial port devices attached to your computer possible (preferably just the Edgeports device that seems to cause problems with jSerialComm):
Once you've done that, please post the output that is printed from your terminal. It should print out a ton of numbers, followed, I assume, by a crash. At this point, I'm just trying to figure out which line it is crashing on. (By the way, the source code for this test is in this repo under src/test/c/testEnumerateWindows.c
without all the print statements). Thanks!
I used your EXE File on the same virtual machine i reported the other errors.Here i send you some variations of the configuration:
- EdgePort USB to 4 Serial Adapter and Prolific USB to Serial Adapter ans VMWare Serial Port
- Only EdgePort and VMWare Serial Port
- Only VMWare Serial Port and Prolific USB to Serial Adapter
- The Error i get from eclipse when using jSerialComm
FazeCast - EdgePort and Prolific.txt
FazeCast - Only EdgePort.txt
FazeCast - Eclipse Error.txt
FazeCast - Only VMWare SerialPort and Prolific USB to Serial Port.txt
I hope that will help! Please let me know if there is anything more i can do!
Yes, very helpful! I can see that the code is choking when trying to determine the Bus location of the port (it's returning a string in a format that is not understood). Please try the following program, and let me know what string it prints. (Only need this for the EdgePort device):
Thanks!
I testet your Programm with all variations from above and all works in the same way. I think that looks pretty good :)
Great! Can you re-upload the results file...it's just an empty 0B file when I download it.
Great! Last test, please try the following and see if it works and also if it populates the serial number correctly:
Seems to work, and now there is also the second enumeration. By the way: If i connect the EdgePort/4 to the virtual machine it splits into two devices. That is the reason why the ports are not all together. The behavior itself is in the virtual machine and on real hardware the same. Also the Configuration tool for the EdgePort/4 works fine.
Is the result as you expected / is there a possibility to fix that?
Yes, this looks good - I also fixed it so that serial number will get updated properly. I have a couple more issues to fix (unrelated to this), and it will be available in the next release.
Thats very good! After your release i will test it on the 5 installations which have the Edgeports and can give a feedback :) Thank you very much
Fixed with v2.10.4 release