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

Dialog with Listview opened by right click on contextmenu item cause JVM crash : EXCEPTION_ACCESS_VIOLATION

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_112"
      Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
      Java HotSpot(TM) Client VM (build 25.112-b15, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [version 10.0.14393]

      A DESCRIPTION OF THE PROBLEM :
      Creating a Dialog with a ListView crash the JVM if the dialog if open by right click on a menuItem in a context Menu

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Launch the sample app.
      Right click on the label "Right Click on me".
      In the context menu : RIGHT-CLICK on the menuitem "RIGHT-CLICK On Me".
      In the dialog Left-click on the Cancel Button.

      The jvm should crash, otherwise exit the app and relaunch it.

      It might be necessary to close and relaunch the app sometimes

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION
      ...
      ACTUAL -
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5f8ba084, pid=12260, tid=0x00000720
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
      # Java VM: Java HotSpot(TM) Client VM (25.112-b15 mixed mode windows-x86 )
      # Problematic frame:
      # C [glass.dll+0x1a084]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # C:\Users\cfischer\Documents\NetBeansProjects\tmp\hs_err_pid12260.log
      #
      # 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.
      #

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5f8ba084, pid=11360, tid=0x00001a88
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
      # Java VM: Java HotSpot(TM) Client VM (25.112-b15 mixed mode windows-x86 )
      # Problematic frame:
      # C [glass.dll+0x1a084]
      #
      # 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 (0x15770000): JavaThread "JavaFX Application Thread" [_thread_in_native, id=6792, stack(0x15f00000,0x15f50000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x0000000a

      Registers:
      EAX=0x15770140, EBX=0x00000200, ECX=0x00000006, EDX=0x6012b4a4
      ESP=0x15f4f5fc, EBP=0x00000000, ESI=0x15770140, EDI=0x1a33d49c
      EIP=0x5f8ba084, EFLAGS=0x00210206

      Top of Stack: (sp=0x15f4f5fc)
      0x15f4f5fc: 00000205 1a33d488 00000004 0000042f
      0x15f4f60c: 0000028e 0000042f 0000028e 00000000
      0x15f4f61c: 00000205 15f4f6a8 77141ec1 a4e6dc19
      0x15f4f62c: 5f8b67cc 00000004 0000007b 00000004
      0x15f4f63c: 028e042f 00600718 1a33d488 001a003f
      0x15f4f64c: 00000205 00000205 001a003f 00000000
      0x15f4f65c: 00000000 76afda19 00600718 0000c0a9
      0x15f4f66c: 00000000 a4e6dc41 5f8a16ef 00000205

      Instructions: (pc=0x5f8ba084)
      0x5f8ba064: 00 00 00 2b 44 24 1c 0f 48 c1 2b 44 24 0c 89 44
      0x5f8ba074: 24 0c e8 95 f1 ff ff 8b 4f 04 8b f0 85 c9 74 05
      0x5f8ba084: 8b 49 04 eb 02 33 c9 0f b6 c3 50 ff 74 24 1c ff
      0x5f8ba094: 74 24 1c ff 74 24 1c ff 74 24 1c ff 35 6c bd 8c


      Register to memory mapping:

      EAX=0x15770140 is an unknown value
      EBX=0x00000200 is an unknown value
      ECX=0x00000006 is an unknown value
      EDX=0x6012b4a4 is an unknown value
      ESP=0x15f4f5fc is pointing into the stack for thread: 0x15770000
      EBP=0x00000000 is an unknown value
      ESI=0x15770140 is an unknown value
      EDI=0x1a33d49c is an unknown value


      Stack: [0x15f00000,0x15f50000], sp=0x15f4f5fc, free space=317k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [glass.dll+0x1a084]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j com.sun.glass.ui.win.WinApplication._runLoop(Ljava/lang/Runnable;)V+0
      j com.sun.glass.ui.win.WinApplication.lambda$null$148(ILjava/lang/Runnable;)V+8
      j com.sun.glass.ui.win.WinApplication$$Lambda$38.run()V+12
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x1a491c00 JavaThread "Prism Font Disposer" daemon [_thread_blocked, id=4268, stack(0x1c530000,0x1c580000)]
        0x1a3c7000 JavaThread "Thread-3" daemon [_thread_in_native, id=11292, stack(0x1a7e0000,0x1a830000)]
        0x1a3e5000 JavaThread "JavaFX-Launcher" [_thread_blocked, id=11332, stack(0x1a870000,0x1a8c0000)]
      =>0x15770000 JavaThread "JavaFX Application Thread" [_thread_in_native, id=6792, stack(0x15f00000,0x15f50000)]
        0x15757c00 JavaThread "Thread-1" daemon [_thread_blocked, id=11608, stack(0x15e70000,0x15ec0000)]
        0x15746c00 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=11588, stack(0x15ce0000,0x15d30000)]
        0x155d5800 JavaThread "Service Thread" daemon [_thread_blocked, id=11576, stack(0x15bc0000,0x15c10000)]
        0x155d9800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=11620, stack(0x15b30000,0x15b80000)]
        0x155d8800 JavaThread "Attach Listener" daemon [_thread_blocked, id=11600, stack(0x15aa0000,0x15af0000)]
        0x155d6400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9900, stack(0x15a10000,0x15a60000)]
        0x155b9400 JavaThread "Finalizer" daemon [_thread_blocked, id=11556, stack(0x15870000,0x158c0000)]
        0x155a3800 JavaThread "Reference Handler" daemon [_thread_blocked, id=11440, stack(0x157e0000,0x15830000)]
        0x02eec000 JavaThread "main" [_thread_blocked, id=11504, stack(0x01660000,0x016b0000)]

      Other Threads:
        0x02fecc00 VMThread [stack: 0x15550000,0x155a0000] [id=8020]
        0x155e0000 WatcherThread [stack: 0x15c50000,0x15ca0000] [id=7736]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap:
       def new generation total 4928K, used 3886K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 78% used [0x05000000, 0x053634b0, 0x05450000)
        from space 512K, 81% used [0x05450000, 0x054b8598, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 2755K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 25% used [0x0a550000, 0x0a800c20, 0x0a800e00, 0x0b000000)
       Metaspace used 8583K, capacity 9158K, committed 9216K, reserved 9600K

      Card table byte_map: [0x15000000,0x15090000] byte_map_base: 0x14fd8000

      Polling page: 0x013a0000

      CodeCache: size=32768Kb used=1542Kb max_used=1542Kb free=31225Kb
       bounds [0x02ff0000, 0x03178000, 0x04ff0000]
       total_blobs=983 nmethods=582 adapters=331
       compilation: enabled

      Compilation events (10 events):
      Event: 2.775 Thread 0x155d9800 582 javafx.scene.Node::localToParent (15 bytes)
      Event: 2.775 Thread 0x155d9800 nmethod 582 0x031710c8 code [0x031711d0, 0x03171298]
      Event: 2.805 Thread 0x155d9800 583 javafx.scene.Node::isVisible (19 bytes)
      Event: 2.805 Thread 0x155d9800 nmethod 583 0x03171308 code [0x03171410, 0x031714dc]
      Event: 2.806 Thread 0x155d9800 584 java.lang.Double::isNaN (12 bytes)
      Event: 2.806 Thread 0x155d9800 nmethod 584 0x03171588 code [0x03171680, 0x03171720]
      Event: 2.883 Thread 0x155d9800 585 com.sun.javafx.css.SimpleSelector::stateMatches (19 bytes)
      Event: 2.883 Thread 0x155d9800 nmethod 585 0x03171788 code [0x03171890, 0x0317193c]
      Event: 2.969 Thread 0x155d9800 586 com.sun.javafx.util.TempState::getInstance (10 bytes)
      Event: 2.969 Thread 0x155d9800 nmethod 586 0x031719c8 code [0x03171ad0, 0x03171b7c]

      GC Heap History (10 events):
      Event: 0.214 GC heap before
      {Heap before GC invocations=1 (full 0):
       def new generation total 4928K, used 4928K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 100% used [0x05000000, 0x05450000, 0x05450000)
        from space 512K, 100% used [0x054d0000, 0x05550000, 0x05550000)
        to space 512K, 0% used [0x05450000, 0x05450000, 0x054d0000)
       tenured generation total 10944K, used 146K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 1% used [0x0a550000, 0x0a5749e8, 0x0a574a00, 0x0b000000)
       Metaspace used 4353K, capacity 4664K, committed 4736K, reserved 5504K
      Event: 0.217 GC heap after
      Heap after GC invocations=2 (full 0):
       def new generation total 4928K, used 327K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 0% used [0x05000000, 0x05000000, 0x05450000)
        from space 512K, 63% used [0x05450000, 0x054a1e50, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 1093K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 9% used [0x0a550000, 0x0a661750, 0x0a661800, 0x0b000000)
       Metaspace used 4353K, capacity 4664K, committed 4736K, reserved 5504K
      }
      Event: 0.287 GC heap before
      {Heap before GC invocations=2 (full 0):
       def new generation total 4928K, used 4741K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 99% used [0x05000000, 0x0544f6b0, 0x05450000)
        from space 512K, 63% used [0x05450000, 0x054a1e50, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 1093K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 9% used [0x0a550000, 0x0a661750, 0x0a661800, 0x0b000000)
       Metaspace used 5446K, capacity 5750K, committed 5760K, reserved 6528K
      Event: 0.289 GC heap after
      Heap after GC invocations=3 (full 0):
       def new generation total 4928K, used 512K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 0% used [0x05000000, 0x05000000, 0x05450000)
        from space 512K, 100% used [0x054d0000, 0x05550000, 0x05550000)
        to space 512K, 0% used [0x05450000, 0x05450000, 0x054d0000)
       tenured generation total 10944K, used 1631K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 14% used [0x0a550000, 0x0a6e7f10, 0x0a6e8000, 0x0b000000)
       Metaspace used 5446K, capacity 5750K, committed 5760K, reserved 6528K
      }
      Event: 0.404 GC heap before
      {Heap before GC invocations=3 (full 0):
       def new generation total 4928K, used 4928K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 100% used [0x05000000, 0x05450000, 0x05450000)
        from space 512K, 100% used [0x054d0000, 0x05550000, 0x05550000)
        to space 512K, 0% used [0x05450000, 0x05450000, 0x054d0000)
       tenured generation total 10944K, used 1631K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 14% used [0x0a550000, 0x0a6e7f10, 0x0a6e8000, 0x0b000000)
       Metaspace used 6744K, capacity 7073K, committed 7168K, reserved 7552K
      Event: 0.406 GC heap after
      Heap after GC invocations=4 (full 0):
       def new generation total 4928K, used 274K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 0% used [0x05000000, 0x05000000, 0x05450000)
        from space 512K, 53% used [0x05450000, 0x054948d8, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 2126K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 19% used [0x0a550000, 0x0a763960, 0x0a763a00, 0x0b000000)
       Metaspace used 6744K, capacity 7073K, committed 7168K, reserved 7552K
      }
      Event: 1.505 GC heap before
      {Heap before GC invocations=4 (full 0):
       def new generation total 4928K, used 4690K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 100% used [0x05000000, 0x05450000, 0x05450000)
        from space 512K, 53% used [0x05450000, 0x054948d8, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 2126K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 19% used [0x0a550000, 0x0a763960, 0x0a763a00, 0x0b000000)
       Metaspace used 7934K, capacity 8395K, committed 8448K, reserved 8576K
      Event: 1.508 GC heap after
      Heap after GC invocations=5 (full 0):
       def new generation total 4928K, used 432K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 0% used [0x05000000, 0x05000000, 0x05450000)
        from space 512K, 84% used [0x054d0000, 0x0553c228, 0x05550000)
        to space 512K, 0% used [0x05450000, 0x05450000, 0x054d0000)
       tenured generation total 10944K, used 2366K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 21% used [0x0a550000, 0x0a79f8a8, 0x0a79fa00, 0x0b000000)
       Metaspace used 7934K, capacity 8395K, committed 8448K, reserved 8576K
      }
      Event: 2.254 GC heap before
      {Heap before GC invocations=5 (full 0):
       def new generation total 4928K, used 3994K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 80% used [0x05000000, 0x0537a6e0, 0x05450000)
        from space 512K, 84% used [0x054d0000, 0x0553c228, 0x05550000)
        to space 512K, 0% used [0x05450000, 0x05450000, 0x054d0000)
       tenured generation total 10944K, used 2366K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 21% used [0x0a550000, 0x0a79f8a8, 0x0a79fa00, 0x0b000000)
       Metaspace used 8548K, capacity 9092K, committed 9216K, reserved 9600K
      Event: 2.257 GC heap after
      Heap after GC invocations=6 (full 0):
       def new generation total 4928K, used 417K [0x05000000, 0x05550000, 0x0a550000)
        eden space 4416K, 0% used [0x05000000, 0x05000000, 0x05450000)
        from space 512K, 81% used [0x05450000, 0x054b8598, 0x054d0000)
        to space 512K, 0% used [0x054d0000, 0x054d0000, 0x05550000)
       tenured generation total 10944K, used 2755K [0x0a550000, 0x0b000000, 0x15000000)
         the space 10944K, 25% used [0x0a550000, 0x0a800c20, 0x0a800e00, 0x0b000000)
       Metaspace used 8548K, capacity 9092K, committed 9216K, reserved 9600K
      }

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 0.020 Thread 0x02eec000 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x05007138) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jni.cpp,
      Event: 0.082 Thread 0x02eec000 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0516df10) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
      Event: 0.082 Thread 0x02eec000 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0517a060) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
      Event: 0.093 Thread 0x02eec000 Exception <a 'java/security/PrivilegedActionException'> (0x051fa628) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.093 Thread 0x02eec000 Exception <a 'java/security/PrivilegedActionException'> (0x051fa828) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.094 Thread 0x02eec000 Exception <a 'java/security/PrivilegedActionException'> (0x051fe900) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.094 Thread 0x02eec000 Exception <a 'java/security/PrivilegedActionException'> (0x051feb00) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.094 Thread 0x02eec000 Exception <a 'java/lang/NullPointerException'> (0x051ff068) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\interpreter\linkResolver.cpp, line 1178]
      Event: 0.254 Thread 0x15770000 Exception <a 'java/lang/NullPointerException'> (0x0529e450) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\interpreter\linkResolver.cpp, line 1178]
      Event: 0.254 Thread 0x15770000 Exception <a 'java/lang/NullPointerException'> (0x0529e450) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u112\7884\hotspot\src\share\vm\prims\jvm.cpp, line 1394]

      Events (10 events):
      Event: 2.267 loading class com/sun/glass/ui/EventLoop
      Event: 2.267 loading class com/sun/glass/ui/EventLoop done
      Event: 2.268 loading class com/sun/glass/ui/EventLoop$State
      Event: 2.268 loading class com/sun/glass/ui/EventLoop$State done
      Event: 2.972 loading class com/sun/prism/GraphicsResource
      Event: 2.972 loading class com/sun/prism/GraphicsResource done
      Event: 2.972 loading class com/sun/prism/GraphicsResource
      Event: 2.972 loading class com/sun/prism/GraphicsResource done
      Event: 2.973 loading class java/util/Optional
      Event: 2.973 loading class java/util/Optional done


      Dynamic libraries:
      0x00b70000 - 0x00ba3000 C:\Program Files (x86)\Java\jdk1.8.0_112\bin\java.exe
      0x770c0000 - 0x77243000 C:\WINDOWS\SYSTEM32\ntdll.dll
      0x75ed0000 - 0x75fb0000 C:\WINDOWS\System32\KERNEL32.DLL
      0x76800000 - 0x769a1000 C:\WINDOWS\System32\KERNELBASE.dll
      0x72270000 - 0x72302000 C:\WINDOWS\system32\apphelp.dll
      0x76a70000 - 0x76ae7000 C:\WINDOWS\System32\ADVAPI32.dll
      0x75930000 - 0x759ee000 C:\WINDOWS\System32\msvcrt.dll
      0x73d70000 - 0x73db1000 C:\WINDOWS\System32\sechost.dll
      0x76600000 - 0x766c1000 C:\WINDOWS\System32\RPCRT4.dll
      0x73b60000 - 0x73b7e000 C:\WINDOWS\System32\SspiCli.dll
      0x73b50000 - 0x73b5a000 C:\WINDOWS\System32\CRYPTBASE.dll
      0x76a10000 - 0x76a6a000 C:\WINDOWS\System32\bcryptPrimitives.dll
      0x76af0000 - 0x76c4f000 C:\WINDOWS\System32\USER32.dll
      0x73b80000 - 0x73b95000 C:\WINDOWS\System32\win32u.dll
      0x75d20000 - 0x75d4b000 C:\WINDOWS\System32\GDI32.dll
      0x741d0000 - 0x7432b000 C:\WINDOWS\System32\gdi32full.dll
      0x72f10000 - 0x7311a000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.447_none_89c64d28dafea4b9\COMCTL32.dll
      0x75b00000 - 0x75d11000 C:\WINDOWS\System32\combase.dll
      0x73ba0000 - 0x73c80000 C:\WINDOWS\System32\ucrtbase.dll
      0x766d0000 - 0x766f5000 C:\WINDOWS\System32\IMM32.DLL
      0x72780000 - 0x7283f000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\msvcr100.dll
      0x5fe30000 - 0x601fe000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\client\jvm.dll
      0x757a0000 - 0x757a6000 C:\WINDOWS\System32\PSAPI.DLL
      0x602b0000 - 0x602d4000 C:\WINDOWS\SYSTEM32\WINMM.dll
      0x73730000 - 0x73738000 C:\WINDOWS\SYSTEM32\VERSION.dll
      0x73150000 - 0x73158000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
      0x75a90000 - 0x75af3000 C:\WINDOWS\System32\WS2_32.dll
      0x60280000 - 0x602a3000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
      0x76f00000 - 0x76f36000 C:\WINDOWS\System32\cfgmgr32.dll
      0x72730000 - 0x7273c000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\verify.dll
      0x72700000 - 0x72721000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\java.dll
      0x72470000 - 0x72483000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\zip.dll
      0x743b0000 - 0x75789000 C:\WINDOWS\System32\SHELL32.dll
      0x75fb0000 - 0x7651e000 C:\WINDOWS\System32\windows.storage.dll
      0x769c0000 - 0x76a05000 C:\WINDOWS\System32\powrprof.dll
      0x765b0000 - 0x765f6000 C:\WINDOWS\System32\shlwapi.dll
      0x75d50000 - 0x75d5d000 C:\WINDOWS\System32\kernel.appcore.dll
      0x76520000 - 0x765a8000 C:\WINDOWS\System32\shcore.dll
      0x75790000 - 0x7579f000 C:\WINDOWS\System32\profapi.dll
      0x5f980000 - 0x5fa6e000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\msvcr120.dll
      0x5f900000 - 0x5f971000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\msvcp120.dll
      0x5f8e0000 - 0x5f8fe000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\prism_d3d.dll
      0x631e0000 - 0x6333f000 C:\WINDOWS\system32\d3d9.dll
      0x72210000 - 0x7222f000 C:\WINDOWS\SYSTEM32\dwmapi.dll
      0x73440000 - 0x734b5000 C:\WINDOWS\system32\uxtheme.dll
      0x60d80000 - 0x631d4000 C:\WINDOWS\SYSTEM32\igdumdim32.dll
      0x76700000 - 0x76794000 C:\WINDOWS\System32\OLEAUT32.dll
      0x76e80000 - 0x76efb000 C:\WINDOWS\System32\msvcp_win.dll
      0x76d90000 - 0x76e7a000 C:\WINDOWS\System32\ole32.dll
      0x73dc0000 - 0x741cb000 C:\WINDOWS\System32\SETUPAPI.dll
      0x5f8a0000 - 0x5f8d3000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\glass.dll
      0x73c80000 - 0x73d65000 C:\WINDOWS\System32\COMDLG32.dll
      0x76c50000 - 0x76d85000 C:\WINDOWS\System32\MSCTF.dll
      0x60330000 - 0x60bfb000 C:\WINDOWS\SYSTEM32\igdusc32.dll
      0x5f880000 - 0x5f891000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\javafx_font.dll
      0x6f1c0000 - 0x6f3b5000 C:\WINDOWS\SYSTEM32\dwrite.dll
      0x76f60000 - 0x76fe4000 C:\WINDOWS\System32\clbcatq.dll
      0x6a030000 - 0x6a19e000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
      0x6ace0000 - 0x6ad24000 C:\WINDOWS\system32\dataexchange.dll
      0x6abc0000 - 0x6acd3000 C:\WINDOWS\system32\dcomp.dll
      0x6ef90000 - 0x6f1bf000 C:\WINDOWS\system32\d3d11.dll
      0x720e0000 - 0x72164000 C:\WINDOWS\system32\dxgi.dll
      0x6aac0000 - 0x6abb1000 C:\WINDOWS\system32\twinapi.appcore.dll
      0x73630000 - 0x7364b000 C:\WINDOWS\system32\bcrypt.dll
      0x5f850000 - 0x5f875000 C:\Program Files (x86)\Common Files\Microsoft Shared\Ink\rtscom.dll
      0x5faa0000 - 0x5faaf000 C:\Program Files (x86)\Java\jdk1.8.0_112\jre\bin\prism_common.dll
      0x5f700000 - 0x5f845000 C:\WINDOWS\SYSTEM32\dbghelp.dll

      VM Arguments:
      jvm_args: -Dfile.encoding=UTF-8
      java_command: javafxbug.RightClickMenuItemAndDialog
      java_class_path (initial): C:\Users\cfischer\Documents\repo\xxx\Editor\build\classes;C:\Users\cfischer\Documents\repo\xxx\Layout\build\classes;C:\Users\cfischer\Documents\NetBeansProjects\tmp\build\classes
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\KDiff3;C:\Program Files (x86)\GNU Emacs 25.1\bin;C:\Users\cfischer\AppData\Local\Microsoft\WindowsApps;
      USERNAME=cfischer
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel



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

      OS: Windows 10.0 , 64 bit Build 14393 (10.0.14393.0)

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

      Memory: 4k page, physical 8305276k(4429008k free), swap 16693884k(11318272k free)

      vm_info: Java HotSpot(TM) Client VM (25.112-b15) for windows-x86 JRE (1.8.0_112-b15), built on Sep 22 2016 21:03:20 by "java_re" with MS VC++ 10.0 (VS2010)

      time: Tue Dec 20 09:09:56 2016
      elapsed time: 2 seconds (0d 0h 0m 2s)



      REPRODUCIBILITY :
      This bug can be reproduced often.

      ---------- BEGIN SOURCE ----------
      /*
       * To change this license header, choose License Headers in Project Properties.
       * To change this template file, choose Tools | Templates
       * and open the template in the editor.
       */
      package javafxbug;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ButtonType;
      import javafx.scene.control.ContextMenu;
      import javafx.scene.control.Dialog;
      import javafx.scene.control.Label;
      import javafx.scene.control.ListView;
      import javafx.scene.control.MenuItem;
      import javafx.scene.layout.GridPane;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;

      /**
       *
       * @author cfischer
       */
      public class RightClickMenuItemAndDialog extends Application {

          //Restart close and relaunch the app if jvm doesn't crash
          @Override
          public void start(Stage primaryStage) {

              MenuItem rightClickItem = new MenuItem("RIGHT-CLICK On Me");
              rightClickItem.setOnAction(a -> {
                  showdialog();
              });
              ContextMenu menu = new ContextMenu(rightClickItem);

              Label text = new Label("Right Click on me");

              text.setContextMenu(menu);

              StackPane root = new StackPane(text);
              Scene scene = new Scene(root, 300, 250);

              primaryStage.setTitle("RightClick MenuItem And Dialog");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          private String showdialog() {
              Dialog<ButtonType> dialog = new Dialog<>();
              dialog.getDialogPane().getButtonTypes().add(ButtonType.CANCEL);
              GridPane dialogRoot = new GridPane();
              dialogRoot.getChildren().add(new ListView()); //bug if dialog contain a list view

              dialog.getDialogPane().setContent(dialogRoot);

              dialog.showAndWait();
              return null;
          }

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }

      }

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: