Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263334

crash with # Problematic frame: # C [jSSC-2.8_x86_64.dll+0xb5db]

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      HP laptop/windows 10/jre1.8.0_281

      A DESCRIPTION OF THE PROBLEM :
      I was working on this program for past 3 years. this error arises now. And it is working on the near by machine(another windows machine).

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=16492, tid=0x0000000000004568
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_271-b09) (build 1.8.0_271-b09)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.271-b09 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [jSSC-2.8_x86_64.dll+0xb5db]
      #
      # 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 (0x00000238ba648000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=17768, stack(0x0000004163e00000,0x0000004163f00000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffbc755378

      Registers:
      RAX=0xffffffffbc755378, RBX=0x0000004163efcc30, RCX=0x00007ffc123bc8d4, RDX=0x0000000000000000
      RSP=0x0000004163efcbc0, RBP=0x0000004163efcd40, RSI=0x00000238ba6481f8, RDI=0x000000000000056c
      R8 =0x0000004163efcab8, R9 =0x0000004163efcbb0, R10=0x0000000000000000, R11=0x0000000000000246
      R12=0x0000004163efcdf8, R13=0x00000238ba382780, R14=0x0000004163efccf0, R15=0x00000238ba648000
      RIP=0x000000007110b5db, EFLAGS=0x0000000000010202

      Top of Stack: (sp=0x0000004163efcbc0)
      0x0000004163efcbc0: 00000238ba32bcf0 0000001e123606e1
      0x0000004163efcbd0: 000000007110b230 00000238ba382550
      0x0000004163efcbe0: 0000004163efcd40 0000000000000004
      0x0000004163efcbf0: 00000238ba6481f8 000000000000056c
      0x0000004163efcc00: 0000004163efcd40 0000000071112590
      0x0000004163efcc10: 00000238ba648000 0000004163efccf0
      0x0000004163efcc20: 00000238ba382780 0000004163efcdf8
      0x0000004163efcc30: 00000238ba382780 00007ffc123606e1
      0x0000004163efcc40: 0000004163efcc70 00000238a22c0000
      0x0000004163efcc50: 0000004163efcd40 0000000000000000
      0x0000004163efcc60: 0000000071113500 0000000071113be8
      0x0000004163efcc70: 0000004163efcca0 0000000071112641
      0x0000004163efcc80: 0000004163efcc10 00000238ba6481f8
      0x0000004163efcc90: 0000000000000000 0000000000000000
      0x0000004163efcca0: 0000004163efcd40 0000000071101595
      0x0000004163efccb0: 000000000000001c 0000023800000000

      Instructions: (pc=0x000000007110b5db)
      0x000000007110b5bb: c5 0f 1f 40 00 55 57 56 53 48 83 ec 28 48 8b 05
      0x000000007110b5cb: 39 33 01 00 48 89 cb 48 85 c0 0f 84 c5 00 00 00
      0x000000007110b5db: 8b 38 85 ff 0f 88 ab 00 00 00 48 8b 05 1c 33 01
      0x000000007110b5eb: 00 48 85 c0 0f 84 bc 00 00 00 8b 30 85 f6 74 57


      Register to memory mapping:

      RAX=0xffffffffbc755378 is an unknown value
      RBX=0x0000004163efcc30 is pointing into the stack for thread: 0x00000238ba648000
      RCX=0x00007ffc123bc8d4 is an unknown value
      RDX=0x0000000000000000 is an unknown value
      RSP=0x0000004163efcbc0 is pointing into the stack for thread: 0x00000238ba648000
      RBP=0x0000004163efcd40 is pointing into the stack for thread: 0x00000238ba648000
      RSI=0x00000238ba6481f8 is an unknown value
      RDI=0x000000000000056c is an unknown value
      R8 =0x0000004163efcab8 is pointing into the stack for thread: 0x00000238ba648000
      R9 =0x0000004163efcbb0 is pointing into the stack for thread: 0x00000238ba648000
      R10=0x0000000000000000 is an unknown value
      R11=0x0000000000000246 is an unknown value
      R12=0x0000004163efcdf8 is pointing into the stack for thread: 0x00000238ba648000
      R13=0x00000238ba382780 is an unknown value
      R14=0x0000004163efccf0 is pointing into the stack for thread: 0x00000238ba648000
      R15=0x00000238ba648000 is a thread


      Stack: [0x0000004163e00000,0x0000004163f00000], sp=0x0000004163efcbc0, free space=1010k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [jSSC-2.8_x86_64.dll+0xb5db]
      C [jSSC-2.8_x86_64.dll+0x12590]
      C [jSSC-2.8_x86_64.dll+0x1595]
      C 0x00000238a3bc9f4e

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J+0
      j jssc.SerialPort.openPort()Z+65
      j MainClass$2.actionPerformed(Ljava/awt/event/ActionEvent;)V+40
      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.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+349
      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 515 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00000238a3dbb066 [0x00000238a3dbb000+0x66]
      J 533 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x00000238a3dc0dac [0x00000238a3dc0940+0x46c]
      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 515 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00000238a3dbb066 [0x00000238a3dbb000+0x66]
      J 533 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x00000238a3dc0dac [0x00000238a3dc0940+0x46c]
      j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
      j java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+140
      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 )
        0x00000238ba9a2800 JavaThread "TimerQueue" daemon [_thread_blocked, id=364, stack(0x0000004163f00000,0x0000004164000000)]
        0x00000238a22f8800 JavaThread "DestroyJavaVM" [_thread_blocked, id=18840, stack(0x0000004162700000,0x0000004162800000)]
      =>0x00000238ba648000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=17768, stack(0x0000004163e00000,0x0000004163f00000)]
        0x00000238ba637800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=18904, stack(0x0000004163d00000,0x0000004163e00000)]
        0x00000238ba5e5000 JavaThread "AWT-Shutdown" [_thread_blocked, id=14000, stack(0x0000004163c00000,0x0000004163d00000)]
        0x00000238ba5e4000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=15220, stack(0x0000004163b00000,0x0000004163c00000)]
        0x00000238b8f1c800 JavaThread "Service Thread" daemon [_thread_blocked, id=7832, stack(0x0000004163900000,0x0000004163a00000)]
        0x00000238b8ea0000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=8844, stack(0x0000004163800000,0x0000004163900000)]
        0x00000238b8e9e000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=13276, stack(0x0000004163700000,0x0000004163800000)]
        0x00000238b8e98800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=8472, stack(0x0000004163600000,0x0000004163700000)]
        0x00000238b8e8f800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=12516, stack(0x0000004163500000,0x0000004163600000)]
        0x00000238b8e8c800 JavaThread "Attach Listener" daemon [_thread_blocked, id=16980, stack(0x0000004163400000,0x0000004163500000)]
        0x00000238b8e8c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=19352, stack(0x0000004163300000,0x0000004163400000)]
        0x00000238b8e70000 JavaThread "Finalizer" daemon [_thread_blocked, id=12364, stack(0x0000004163200000,0x0000004163300000)]
        0x00000238b8269000 JavaThread "Reference Handler" daemon [_thread_blocked, id=15348, stack(0x0000004163100000,0x0000004163200000)]

      Other Threads:
        0x00000238b8e44800 VMThread [stack: 0x0000004163000000,0x0000004163100000] [id=14592]
        0x00000238ba27d000 WatcherThread [stack: 0x0000004163a00000,0x0000004163b00000] [id=16788]

      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 14997K [0x00000000d5f00000, 0x00000000d8980000, 0x0000000100000000)
        eden space 33280K, 45% used [0x00000000d5f00000,0x00000000d6da5600,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 10802K, capacity 10946K, committed 11008K, reserved 1058816K
        class space used 1441K, capacity 1511K, committed 1536K, reserved 1048576K

      Card table byte_map: [0x00000238b2f70000,0x00000238b3370000] byte_map_base: 0x00000238b2b62000

      Marking Bits: (ParMarkBitMap*) 0x0000000058ca7fe0
       Begin Bits: [0x00000238b3620000, 0x00000238b55b0000)
       End Bits: [0x00000238b55b0000, 0x00000238b7540000)

      Polling page: 0x00000238a22b0000

      CodeCache: size=245760Kb used=2125Kb max_used=2125Kb free=243634Kb
       bounds [0x00000238a3bb0000, 0x00000238a3e20000, 0x00000238b2bb0000]
       total_blobs=1003 nmethods=541 adapters=375
       compilation: enabled

      Compilation events (10 events):
      Event: 2.203 Thread 0x00000238b8ea0000 538 3 sun.awt.image.PixelConverter$Xrgb::rgbToPixel (2 bytes)
      Event: 2.203 Thread 0x00000238b8ea0000 nmethod 538 0x00000238a3dc2590 code [0x00000238a3dc26e0, 0x00000238a3dc2838]
      Event: 2.203 Thread 0x00000238b8ea0000 539 3 java.awt.Component::getForeground (29 bytes)
      Event: 2.204 Thread 0x00000238b8ea0000 nmethod 539 0x00000238a3dc28d0 code [0x00000238a3dc2a60, 0x00000238a3dc2e90]
      Event: 2.204 Thread 0x00000238b8ea0000 535 1 javax.swing.JComponent::getBorder (5 bytes)
      Event: 2.204 Thread 0x00000238b8ea0000 nmethod 535 0x00000238a3dc2fd0 code [0x00000238a3dc3120, 0x00000238a3dc3238]
      Event: 2.204 Thread 0x00000238b8ea0000 540 1 sun.java2d.loops.RenderCache$Entry::getValue (5 bytes)
      Event: 2.204 Thread 0x00000238b8ea0000 nmethod 540 0x00000238a3dc3290 code [0x00000238a3dc33e0, 0x00000238a3dc34f8]
      Event: 2.245 Thread 0x00000238b8ea0000 541 3 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject::signalAll (33 bytes)
      Event: 2.245 Thread 0x00000238b8ea0000 nmethod 541 0x00000238a3dc3550 code [0x00000238a3dc36e0, 0x00000238a3dc3a50]

      GC Heap History (0 events):
      No events

      Deoptimization events (1 events):
      Event: 2.046 Thread 0x00000238ba648000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000238a3d20020 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8

      Classes redefined (0 events):
      No events

      Internal exceptions (10 events):
      Event: 0.028 Thread 0x00000238a22f8800 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\jdk8u271\605\hots
      Event: 0.028 Thread 0x00000238a22f8800 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\jdk8u271\605\hotspot\src\share\vm\p
      Event: 0.129 Thread 0x00000238a22f8800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5fa0b68) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jvm.cpp, line 1512]
      Event: 0.129 Thread 0x00000238a22f8800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5fa0d78) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jvm.cpp, line 1512]
      Event: 0.129 Thread 0x00000238a22f8800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5fa49e8) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jvm.cpp, line 1512]
      Event: 0.129 Thread 0x00000238a22f8800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5fa4bf8) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jvm.cpp, line 1512]
      Event: 0.137 Thread 0x00000238a22f8800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d6054cc0) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jni.cpp, line 710]
      Event: 0.164 Thread 0x00000238a22f8800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d6126650) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\methodHandles.cpp, line 1169]
      Event: 0.165 Thread 0x00000238a22f8800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d6133a20) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\methodHandles.cpp, line 1169]
      Event: 0.221 Thread 0x00000238ba648000 Exception <a 'java/io/FileNotFoundException'> (0x00000000d6303930) thrown at [C:\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jni.cpp, line 710]

      Events (10 events):
      Event: 2.046 Thread 0x00000238ba648000 DEOPT PACKING pc=0x00000238a3d20020 sp=0x0000004163efcc60
      Event: 2.046 Thread 0x00000238ba648000 DEOPT UNPACKING pc=0x00000238a3bf5843 sp=0x0000004163efcbf0 mode 2
      Event: 2.245 loading class java/lang/SecurityException
      Event: 2.246 loading class java/lang/SecurityException done
      Event: 2.246 loading class jssc/SerialPort$EventThread
      Event: 2.246 loading class jssc/SerialPort$EventThread done
      Event: 2.246 loading class jssc/SerialPort$LinuxEventThread
      Event: 2.246 loading class jssc/SerialPort$LinuxEventThread done
      Event: 2.247 loading class jssc/SerialPortTimeoutException
      Event: 2.247 loading class jssc/SerialPortTimeoutException done


      Dynamic libraries:
      0x00007ff7852e0000 - 0x00007ff785327000 C:\Program Files\Java\jre1.8.0_271\bin\javaw.exe
      0x00007ffc12320000 - 0x00007ffc12510000 C:\WINDOWS\SYSTEM32\ntdll.dll
      0x00007ffc10890000 - 0x00007ffc10942000 C:\WINDOWS\System32\KERNEL32.DLL
      0x00007ffc0f540000 - 0x00007ffc0f7e5000 C:\WINDOWS\System32\KERNELBASE.dll
      0x00007ffc11e80000 - 0x00007ffc11f23000 C:\WINDOWS\System32\ADVAPI32.dll
      0x00007ffc107f0000 - 0x00007ffc1088e000 C:\WINDOWS\System32\msvcrt.dll
      0x00007ffc111c0000 - 0x00007ffc11257000 C:\WINDOWS\System32\sechost.dll
      0x00007ffc103a0000 - 0x00007ffc104bf000 C:\WINDOWS\System32\RPCRT4.dll
      0x00007ffc11f30000 - 0x00007ffc120c4000 C:\WINDOWS\System32\USER32.dll
      0x00007ffc0f8a0000 - 0x00007ffc0f8c1000 C:\WINDOWS\System32\win32u.dll
      0x00007ffc11440000 - 0x00007ffc11466000 C:\WINDOWS\System32\GDI32.dll
      0x00007ffc0f920000 - 0x00007ffc0fab8000 C:\WINDOWS\System32\gdi32full.dll
      0x00007ffc0f4a0000 - 0x00007ffc0f53e000 C:\WINDOWS\System32\msvcp_win.dll
      0x00007ffc102a0000 - 0x00007ffc1039a000 C:\WINDOWS\System32\ucrtbase.dll
      0x00007ffc04e20000 - 0x00007ffc050a4000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1316_none_9e7a364fe461dbd7\COMCTL32.dll
      0x00007ffc11ad0000 - 0x00007ffc11e07000 C:\WINDOWS\System32\combase.dll
      0x00007ffc0f290000 - 0x00007ffc0f311000 C:\WINDOWS\System32\bcryptPrimitives.dll
      0x00007ffc12280000 - 0x00007ffc122ae000 C:\WINDOWS\System32\IMM32.DLL
      0x00007ffc07630000 - 0x00007ffc07645000 C:\Program Files\Java\jre1.8.0_271\bin\vcruntime140.dll
      0x00007ffc05a20000 - 0x00007ffc05abb000 C:\Program Files\Java\jre1.8.0_271\bin\msvcp140.dll
      0x00000000584b0000 - 0x0000000058d1f000 C:\Program Files\Java\jre1.8.0_271\bin\server\jvm.dll
      0x00007ffc10950000 - 0x00007ffc10958000 C:\WINDOWS\System32\PSAPI.DLL
      0x00007ffc0cd00000 - 0x00007ffc0cd24000 C:\WINDOWS\SYSTEM32\WINMM.dll
      0x00007ffbfa5e0000 - 0x00007ffbfa5e9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
      0x00007ffc08d50000 - 0x00007ffc08d5a000 C:\WINDOWS\SYSTEM32\VERSION.dll
      0x00007ffc110f0000 - 0x00007ffc1115f000 C:\WINDOWS\System32\WS2_32.dll
      0x00007ffc0ccd0000 - 0x00007ffc0ccfd000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
      0x00007ffc0f8d0000 - 0x00007ffc0f91a000 C:\WINDOWS\System32\cfgmgr32.dll
      0x00007ffc0f250000 - 0x00007ffc0f261000 C:\WINDOWS\System32\kernel.appcore.dll
      0x00007ffc0ce20000 - 0x00007ffc0ce30000 C:\Program Files\Java\jre1.8.0_271\bin\verify.dll
      0x00007ffc07770000 - 0x00007ffc0779b000 C:\Program Files\Java\jre1.8.0_271\bin\java.dll
      0x00007ffc0afe0000 - 0x00007ffc0aff8000 C:\Program Files\Java\jre1.8.0_271\bin\zip.dll
      0x00007ffc10960000 - 0x00007ffc11048000 C:\WINDOWS\System32\SHELL32.dll
      0x00007ffc10740000 - 0x00007ffc107e7000 C:\WINDOWS\System32\shcore.dll
      0x00007ffc0fb20000 - 0x00007ffc1029b000 C:\WINDOWS\System32\windows.storage.dll
      0x00007ffc0f1d0000 - 0x00007ffc0f1f3000 C:\WINDOWS\System32\profapi.dll
      0x00007ffc0f200000 - 0x00007ffc0f24a000 C:\WINDOWS\System32\powrprof.dll
      0x00007ffc0f1a0000 - 0x00007ffc0f1b0000 C:\WINDOWS\System32\UMPDC.dll
      0x00007ffc113e0000 - 0x00007ffc11432000 C:\WINDOWS\System32\shlwapi.dll
      0x00007ffc0f270000 - 0x00007ffc0f287000 C:\WINDOWS\System32\cryptsp.dll
      0x00007ffbc6c40000 - 0x00007ffbc6dd4000 C:\Program Files\Java\jre1.8.0_271\bin\awt.dll
      0x00007ffc10540000 - 0x00007ffc10605000 C:\WINDOWS\System32\OLEAUT32.dll
      0x00007ffc0ce90000 - 0x00007ffc0cf1f000 C:\WINDOWS\SYSTEM32\apphelp.dll
      0x00007ffc0cfc0000 - 0x00007ffc0d059000 C:\WINDOWS\system32\uxtheme.dll
      0x00007ffc118e0000 - 0x00007ffc11a15000 C:\WINDOWS\System32\MSCTF.dll
      0x00007ffc11260000 - 0x00007ffc113b7000 C:\WINDOWS\System32\ole32.dll
      0x00007ffc0d500000 - 0x00007ffc0d52d000 C:\WINDOWS\system32\DWMAPI.DLL
      0x00007ffc02780000 - 0x00007ffc028d6000 C:\WINDOWS\system32\opengl32.dll
      0x00007ffc052c0000 - 0x00007ffc052ec000 C:\WINDOWS\SYSTEM32\GLU32.dll
      0x00007ffc0de10000 - 0x00007ffc0de30000 C:\WINDOWS\SYSTEM32\dxcore.dll
      0x0000000071100000 - 0x0000000071125000 C:\Users\Prabakaran DyAnsys\.jssc\windows\jSSC-2.8_x86_64.dll
      0x00007ffc02c70000 - 0x00007ffc02cb9000 C:\Program Files\Java\jre1.8.0_271\bin\fontmanager.dll
      0x00007ffc077d0000 - 0x00007ffc077ec000 C:\Program Files\Java\jre1.8.0_271\bin\net.dll
      0x00007ffc0e980000 - 0x00007ffc0e9e7000 C:\WINDOWS\system32\mswsock.dll
      0x00007ffc077b0000 - 0x00007ffc077c3000 C:\Program Files\Java\jre1.8.0_271\bin\nio.dll
      0x00007ffc02c20000 - 0x00007ffc02c63000 C:\Program Files\Java\jre1.8.0_271\bin\t2k.dll
      0x00007ffc02410000 - 0x00007ffc024ad000 C:\WINDOWS\System32\TextInputFramework.dll
      0x00007ffc0b550000 - 0x00007ffc0b624000 C:\WINDOWS\System32\CoreMessaging.dll
      0x00007ffc09ca0000 - 0x00007ffc09fca000 C:\WINDOWS\System32\CoreUIComponents.dll
      0x00007ffc0e150000 - 0x00007ffc0e181000 C:\WINDOWS\SYSTEM32\ntmarta.dll
      0x00007ffc0a580000 - 0x00007ffc0a6d2000 C:\WINDOWS\SYSTEM32\wintypes.dll
      0x00007ffc00980000 - 0x00007ffc00c27000 C:\WINDOWS\System32\iertutil.dll
      0x00007ffc0dae0000 - 0x00007ffc0dcd4000 C:\WINDOWS\SYSTEM32\dbghelp.dll

      VM Arguments:
      jvm_args: -Dfile.encoding=UTF-8
      java_command: MainClass
      java_class_path (initial): C:\Program Files\Java\jre1.8.0_271\lib\resources.jar;C:\Program Files\Java\jre1.8.0_271\lib\rt.jar;C:\Program Files\Java\jre1.8.0_271\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_271\lib\jce.jar;C:\Program Files\Java\jre1.8.0_271\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_271\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\cldrdata.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\jaccess.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\jfxrt.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\localedata.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\nashorn.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\sunec.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jre1.8.0_271\lib\ext\zipfs.jar;H:\JAVA\Year2020\ECG_ANSISCOPE\bin;H:\JAVA\Year2020\ECG_ANSISCOPE\libs\commons-lang3-3.1.jar;H:\JAVA\Year2020\ECG_ANSISCOPE\libs\jssc-2.8.0.jar
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
      USERNAME=Prabakaran DyAnsys
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel



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

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

      CPU:total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 10, 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 8272100k(1863256k free), swap 11811044k(1781020k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (25.271-b09) for windows-amd64 JRE (1.8.0_271-b09), built on Sep 16 2020 19:14:59 by "" with MS VC++ 15.9 (VS2017)

      time: Tue Feb 2 15:11:34 2021
      timezone: India Standard Time
      elapsed time: 2.384027 seconds (0d 0h 0m 2s)



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      step 1: connect any usb-cdc device into laptop.
      step 2: run the program
      step 3: click "start ecg" button
      then we will see the error

      ACTUAL -
      It will successfully open the usb port and wait for input to read.

      ---------- BEGIN SOURCE ----------
      import java.awt.Color;
      import java.awt.EventQueue;
      import java.awt.Font;
      import java.awt.Graphics;
      import java.awt.Graphics2D;
      import java.awt.GraphicsDevice;
      import java.awt.GraphicsEnvironment;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import java.awt.event.WindowAdapter;
      import java.awt.event.WindowEvent;
      import java.io.UnsupportedEncodingException;
      import java.math.BigInteger;
      import java.util.ArrayList;
      import java.util.List;

      import javax.swing.JButton;
      import javax.swing.JComboBox;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.Timer;

      import jssc.SerialPort;
      import jssc.SerialPortEvent;
      import jssc.SerialPortEventListener;
      import jssc.SerialPortException;
      import jssc.SerialPortList;

      @SuppressWarnings("serial")
      class SurfaceTwo extends JPanel implements ActionListener {

      private final int DELAY = 150;
      private Timer timer;

      public SurfaceTwo() {

      initTimer();
      }

      private void initTimer() {

      timer = new Timer(DELAY, this);
      timer.start();
      }

      public Timer getTimer() {

      return timer;
      }

      private void doDrawing(Graphics g) {

      Graphics2D g2d = (Graphics2D) g;

      g2d.setColor(Color.black);
      g2d.fillRect(0, 0, this.getWidth(), this.getHeight());

      g2d.setPaint(Color.cyan);

      g2d.drawLine(0, 50, 600, 50);
      g2d.drawLine(0, 50 + (100), 600, 50 + (100)); // 1st Line
      g2d.drawLine(0, 50 + (100 * 2), 600, 50 + (100 * 2)); // 2st Line
      g2d.drawLine(0, 50 + (100 * 3), 600, 50 + (100 * 3)); // 3st Line
      g2d.drawLine(0, 50 + (100 * 4), 600, 50 + (100 * 4)); // 4st Line
      g2d.drawLine(0, 50 + (100 * 5), 600, 50 + (100 * 5)); // 5st Line
      g2d.drawLine(0, 50 + (100 * 6), 600, 50 + (100 * 6)); // 5st Line

      // g2d.drawLine(500, 50, 500, 800);
      // g2d.drawLine(510, 50, 510, 800);
      g2d.drawLine(600, 50, 600, 800);

      g2d.drawLine(600, 50 + (100 * 0), 1200, 50 + (100 * 0)); // 1st Line
      g2d.drawLine(600, 50 + (100 * 1), 1200, 50 + (100 * 1));
      g2d.drawLine(600, 50 + (100 * 2), 1200, 50 + (100 * 2)); // 2st Line
      g2d.drawLine(600, 50 + (100 * 3), 1200, 50 + (100 * 3)); // 3st Line
      g2d.drawLine(600, 50 + (100 * 4), 1200, 50 + (100 * 4)); // 4st Line
      g2d.drawLine(600, 50 + (100 * 5), 1200, 50 + (100 * 5)); // 5st Line
      g2d.drawLine(600, 50 + (100 * 6), 1200, 50 + (100 * 6)); // 5st Line

      g2d.drawLine(1200, 50, 1200, 800);

      g2d.setPaint(Color.YELLOW);
      Font font = new Font("Verdana", Font.BOLD, 13);
      g2d.setFont(font);
      // g2d.setPaint(Color.MAGENTA);
      g2d.drawString("L 1", 10, 70);
      g2d.drawString("L II", 10, 170);
      g2d.drawString("L III", 10, 270);
      g2d.drawString("AVR", 10, 370);
      g2d.drawString("AVL", 10, 470);
      g2d.drawString("AVF", 10, 570);

      for (int i = 1, j = 1; i < MainClass.ECG_I.size(); i++, j = j + 2) {

      g2d.drawLine(j + 50 - 2, MainClass.ECG_I.get(i - 1), j + 50, MainClass.ECG_I.get(i));

      }

      font = new Font("Verdana", Font.BOLD, 20);
      g2d.setFont(font);
      g2d.drawString("HR : " + MainClass.Hr, 1500, 200);
      g2d.drawString("RR : " + MainClass.RR, 1500, 300);

      g2d.drawString("Sp : " + MainClass.sp, 1500, 400);
      g2d.drawString("Psp : " + MainClass.psp, 1500, 500);

      font = new Font("Verdana", Font.BOLD, 20);
      g2d.setFont(font);
      g2d.drawString("HR : " + MainClass.Hr, 1500, 200);
      g2d.drawString("RR : " + MainClass.RR, 1500, 300);

      g2d.drawString("Sp : " + MainClass.sp, 1500, 400);
      g2d.drawString("Psp : " + MainClass.psp, 1500, 500);

      }

      @Override
      public void paintComponent(Graphics g) {

      super.paintComponent(g);
      try {
      doDrawing(g);
      } catch (NullPointerException e) {
      System.out.println("Null");
      }
      }

      public void actionPerformed(ActionEvent e) {
      repaint();
      }
      }

      @SuppressWarnings("serial")
      public class MainClass extends JFrame {
      private static SerialPort serialPort_ECG;
      private static SerialPort serialPort_PPG;

      public MainClass() {
      ECG_I = new ArrayList<Integer>();
      PPG_I = new ArrayList<Integer>();

      initUI();

      }

      public static void main(String[] args) {
      // TODO Auto-generated method stub
      EventQueue.invokeLater(new Runnable() {
      public void run() {

      MainClass ex = new MainClass();
      ex.setVisible(true);
      }
      });
      }

      JButton button1, button2, localStop, Start;

      static int Hr = 0;

      static int RR = 0;
      static double sp = 0, psp = 0;

      private JComboBox portList = new JComboBox();


      // private JButton start = new JButton("Add items");

      private int count = 0;

      private void initUI() {

      // getsetBackground(Color.black);

      Hr = 0;
      RR = 0;

      portNames = SerialPortList.getPortNames();

      for (int i = 0; i < portNames.length; i++) {
      portList.addItem(portNames[i]);
      }

      if (portNames.length > 0) {
      portName = portNames[0];
      }

      button1 = new JButton("Simulator");
      button2 = new JButton("Product");
      localStop = new JButton("Stop");
      Start = new JButton("Start_ECG");


      Start.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {

      try {

      System.out.println("PortName in ECG : " + portName);
      serialPort_ECG = new SerialPort(portName);

      // opening port
      serialPort_ECG.openPort();

      serialPort_ECG.setParams(SerialPort.BAUDRATE_9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,
      SerialPort.PARITY_NONE);

      serialPort_ECG
      .setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN | SerialPort.FLOWCONTROL_RTSCTS_OUT);
      serialPort_ECG.setFlowControlMode(0);

      serialPort_ECG.addEventListener(new PortReader(), SerialPort.MASK_RXCHAR);
      // writing string to port
      // serialPort_ECG.writeByte((byte) 0x01);//("Hurrah!!!");
      //serialPort_ECG.writeString("^ANSiscop");// ^//MainClass//^ANSiscop

      System.out.println("String wrote to port, waiting for response..");

      //Start.setEnabled(false);
      } catch (SerialPortException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      } // ("Hurrah!!!");

      }

      });

      localStop.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {

      try {
      // byte buffer[] = { '@MainClass@' };
      serialPort_ECG.writeString("@ANSiscop");

      // serialPort_ECG.writeString("zzzzzzzzz");

      serialPort_ECG.closePort();
      Start.setEnabled(true);
      Start.setText("Resume");

      } catch (SerialPortException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      }

      }

      });

      button1.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {

      try {
      serialPort_PPG = new SerialPort(portNamePPG);

      // opening port
      serialPort_PPG.openPort();

      serialPort_PPG.setParams(SerialPort.BAUDRATE_9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,
      SerialPort.PARITY_NONE);

      serialPort_PPG
      .setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN | SerialPort.FLOWCONTROL_RTSCTS_OUT);
      serialPort_PPG.setFlowControlMode(0);

      serialPort_PPG.addEventListener(new PortPPGReader(), SerialPort.MASK_RXCHAR);
      } catch (SerialPortException e1) {

      }
      }

      });

      button2.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {

      try {
      serialPort_ECG.writeString("?�?�?�?�?�?�?�?�");
      } catch (SerialPortException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      } // ("Hurrah!!!");

      }

      });

      portList.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
      /*
      * t.setText("index: " + c.getSelectedIndex() + " " + ((JComboBox)
      * e.getSource()).getSelectedItem());
      */
      portName = portNames[portList.getSelectedIndex()];
      }
      });



      final SurfaceTwo surface = new SurfaceTwo();
      surface.add(portList);

      surface.add(Start);
      surface.add(button1);
      surface.add(button2);
      surface.add(localStop);
      add(surface);

      addWindowListener(new WindowAdapter() {
      @Override
      public void windowClosing(WindowEvent e) {
      try {
      if (serialPort_ECG.isOpened()) {
      serialPort_ECG.writeString("@ANSiscop");
      System.out.println("Port is stopped successfully");
      } else {
      System.out.println("Port is closed successfully");
      }
      /////////////////
      Timer timer = surface.getTimer();
      timer.stop();
      if (serialPort_ECG != null) {
      try {
      if (serialPort_ECG.isOpened()) {
      serialPort_ECG.closePort();
      }

      } catch (SerialPortException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      }
      }

      if (serialPort_PPG.isOpened()) {
      serialPort_PPG.writeString("@ANSiscop");
      System.out.println("Port is stopped successfully");
      } else {
      System.out.println("Port is closed successfully");
      }
      /////////////////
      Timer timer2 = surface.getTimer();
      timer2.stop();
      if (serialPort_PPG != null) {
      try {
      if (serialPort_PPG.isOpened()) {
      serialPort_PPG.closePort();
      }

      } catch (SerialPortException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      }
      }

      } catch (SerialPortException e2) {
      // TODO Auto-generated catch block
      e2.printStackTrace();
      } catch (NullPointerException e3) {

      }

      }
      });

      int[] WandH = getScreenSize();

      setTitle("MainClass");
      setSize(WandH[0], WandH[1]);
      setLocationRelativeTo(null);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }

      static String portName = "com15";
      static String portNamePPG = "com25";

      String[] portNames = null;

      public static String toHex(String arg) {
      try {
      String result = "";
      for (int i = 0; i < arg.length(); i++) {
      result = result + " "
      + String.format("%02x", new BigInteger(1, (arg.charAt(i) + "").getBytes("ISO-8859-1")));
      }

      return result;
      } catch (UnsupportedEncodingException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      }
      return arg;

      }

      private final static char[] hexArray = "0123456789ABCDEF".toCharArray();

      public static String bytesToHex(int[] bytes) {
      char[] hexChars = new char[bytes.length * 2];
      for (int j = 0; j < bytes.length; j++) {
      int v = bytes[j] & 0xFF;
      hexChars[j * 2] = hexArray[v >>> 4];
      hexChars[j * 2 + 1] = hexArray[v & 0x0F];
      }
      return new String(hexChars);
      }

      public static String bytesToHex(int bytes) {
      char[] hexChars = new char[2];
      for (int j = 0; j < 1; j++) {
      int v = bytes & 0xFF;
      hexChars[j * 2] = hexArray[v >>> 4];
      hexChars[j * 2 + 1] = hexArray[v & 0x0F];
      }
      return new String(hexChars);
      }

      // receiving response from port

      private static class PortReader implements SerialPortEventListener {

      int L1;

      public Integer twosComp(int msb, int lsb) throws java.lang.Exception {
      int num;
      num = (msb << 8 | lsb);
      return (num > 32767) ? num - 65536 : num;
      }

      @SuppressWarnings("unchecked")
      public void serialEvent(SerialPortEvent event) {
      if (event.isRXCHAR() && event.getEventValue() > 0) {
      try {

      byte[] bytes = serialPort_ECG.readBytes(64);// 31//69

      for (byte i = 0; i < (bytes.length/* - 53 */) ; i++) {
      MainClass.ECG_I.add(L1);
      }

      if (MainClass.ECG_I.size() >= 600) {
      MainClass.ECG_I.clear();
      }

      } catch (SerialPortException ex) {
      System.out.println("Error in receiving response from port: ");
      } catch (NumberFormatException e) {
      System.out.println("NumberFormatException");
      }
      }
      }
      }

      private static class PortPPGReader implements SerialPortEventListener {

      int L1;

      public Integer twosComp(int msb, int lsb) throws java.lang.Exception {
      int num;
      num = (msb << 8 | lsb);
      return (num > 32767) ? num - 65536 : num;
      }

      @SuppressWarnings("unchecked")
      public void serialEvent(SerialPortEvent event) {
      if (event.isRXCHAR() && event.getEventValue() > 0) {
      try {

      byte[] bytes = serialPort_PPG.readBytes(64);// 31//69

      for (byte i = 0; i < (bytes.length/* - 53 */) ; i++) {
      MainClass.PPG_I.add(L1);
      }

      if (MainClass.PPG_I.size() >= 600) {
      MainClass.PPG_I.clear();
      }

      } catch (SerialPortException ex) {
      System.out.println("Error in receiving response from port: ");
      } catch (NumberFormatException e) {
      System.out.println("NumberFormatException");
      }
      }
      }
      }


      protected int[] getScreenSize() {
      int WandH[] = new int[2];
      GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
      WandH[0] = gd.getDisplayMode().getWidth();
      WandH[1] = gd.getDisplayMode().getHeight();
      return WandH;
      }

      public static ArrayList<Integer> ECG_I = new ArrayList<Integer>();
      public static ArrayList<Integer> PPG_I = new ArrayList<Integer>();
      static List<Integer> receivedDatainB = new ArrayList<Integer>();

      }

      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            sswsharm swati sharma
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: