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

Java Swing with System LookAndFeel setting leads to JVM crash on "Windows 10 Creators Update"

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      other

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

      FULL OS VERSION :
      Windows 10 Pro Version 1703, Build: 15063.138 (Windows 10 Creators Update)

      A DESCRIPTION OF THE PROBLEM :
      Since I had the Windows 10 Creators Update on my private laptop one of my Java Applications crashed reporting an EXCEPTION_ACCESS_VIOLATION (0xc0000005).
      This site
      https://pcgenorg.atlassian.net/browse/CODE-3166?attachmentViewMode=list
      suggests a Look And Feel setting is at the core of this issue, which with my application was the case as well.
      If I remove the statement: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      the application will start without any problem, with the default Java Look And Feel.

      Trying to write an executable testcase revealed that not every Swing component suffers this problem.
      Therefore I borrowed the one from the related bug described at https://bugs.openjdk.java.net/browse/JDK-8178873

      My main purpose of submitting a new bug is to point out that the problem is related to using the System LookAndFeel setting.


      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the executable test case main method and see the JVM crash

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected to see a File Dialog to choose a file.
      Instead, the JVM crashed.
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005e916adf, pid=11984, tid=0x0000000000002414
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [msvcr100.dll+0x36adf]
      #
      # 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 (0x0000000017f68000): JavaThread "Swing-Shell" daemon [_thread_in_native, id=9236, stack(0x00000000198e0000,0x00000000199e0000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000

      Registers:
      RAX=0x0000000000000000, RBX=0x00000000199debb0, RCX=0x0000000000000000, RDX=0x00000000014d8e50
      RSP=0x00000000199deb58, RBP=0x00000000199ded60, RSI=0x0000000000000057, RDI=0x0000000017f681f8
      R8 =0x00000000014d8e50, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x00000000199dc210
      R12=0x0000000000000000, R13=0x00000000158bcdb8, R14=0x00000000199deda0, R15=0x0000000017f68000
      RIP=0x000000005e916adf, EFLAGS=0x0000000000010246

      Top of Stack: (sp=0x00000000199deb58)
      0x00000000199deb58: 000000005de99d36 0000000000000000
      0x00000000199deb68: 0000000017f681f8 0000000000000057
      0x00000000199deb78: 00000000014d8e50 0000000017f681f8
      0x00000000199deb88: 000000005de9a6f9 00000000014d8e50
      0x00000000199deb98: 0000000017f68000 0000000003438001
      0x00000000199deba8: 0000000017ea8da0 0000000000000000
      0x00000000199debb8: 0000000000000000 0000000017f68000
      0x00000000199debc8: 000000005e1c2ac2 0000000000000000
      0x00000000199debd8: 00000000eb3c15b8 00000000199ded70
      0x00000000199debe8: 00000000036ab874 0000000000000000
      0x00000000199debf8: 000000000366d935 0000000019e4f5b8
      0x00000000199dec08: 00000000199dec60 00000000eb793a80
      0x00000000199dec18: 00000000eb793a80 00000000199ded70
      0x00000000199dec28: 00000000036cc33c 0000000017f68000
      0x00000000199dec38: 000000005e1c2ac2 00000000eab089a0
      0x00000000199dec48: 00000000199dece8 000000001588a648

      Instructions: (pc=0x000000005e916adf)
      0x000000005e916abf: 99 03 00 cc 33 c0 48 8b 5c 24 40 48 8b 74 24 48
      0x000000005e916acf: 48 83 c4 30 5f c3 cc cc cc cc cc cc cc 48 8b c1
      0x000000005e916adf: 0f b7 10 48 83 c0 02 66 85 d2 75 f4 48 2b c1 48
      0x000000005e916aef: d1 f8 48 ff c8 c3 cc cc cc cc cc cc cc 45 33 c0


      Register to memory mapping:

      RAX=0x0000000000000000 is an unknown value
      RBX=0x00000000199debb0 is pointing into the stack for thread: 0x0000000017f68000
      RCX=0x0000000000000000 is an unknown value
      RDX=0x00000000014d8e50 is an unknown value
      RSP=0x00000000199deb58 is pointing into the stack for thread: 0x0000000017f68000
      RBP=0x00000000199ded60 is pointing into the stack for thread: 0x0000000017f68000
      RSI=0x0000000000000057 is an unknown value
      RDI=0x0000000017f681f8 is an unknown value
      R8 =0x00000000014d8e50 is an unknown value
      R9 =0x0000000000000000 is an unknown value
      R10=0x0000000000000000 is an unknown value
      R11=0x00000000199dc210 is pointing into the stack for thread: 0x0000000017f68000
      R12=0x0000000000000000 is an unknown value
      R13={method} {0x00000000158bcdc0} 'getDisplayNameOf' '(JJI)Ljava/lang/String;' in 'sun/awt/shell/Win32ShellFolder2'
      R14=0x00000000199deda0 is pointing into the stack for thread: 0x0000000017f68000
      R15=0x0000000017f68000 is a thread


      Stack: [0x00000000198e0000,0x00000000199e0000], sp=0x00000000199deb58, free space=1018k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [msvcr100.dll+0x36adf]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.shell.Win32ShellFolder2.getDisplayNameOf(JJI)Ljava/lang/String;+0
      j sun.awt.shell.Win32ShellFolder2.access$1600(JJI)Ljava/lang/String;+4
      j sun.awt.shell.Win32ShellFolder2$13.call()Ljava/lang/String;+15
      j sun.awt.shell.Win32ShellFolder2$13.call()Ljava/lang/Object;+1
      J 635 C1 java.util.concurrent.FutureTask.run()V (126 bytes) @ 0x00000000036af84c [0x00000000036af600+0x24c]
      j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95
      j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
      j sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run()V+7
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
      =>0x0000000017f68000 JavaThread "Swing-Shell" daemon [_thread_in_native, id=9236, stack(0x00000000198e0000,0x00000000199e0000)]
        0x0000000017ec3000 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=14140, stack(0x00000000197e0000,0x00000000198e0000)]
        0x0000000003335800 JavaThread "DestroyJavaVM" [_thread_blocked, id=8548, stack(0x0000000003230000,0x0000000003330000)]
        0x0000000017ea6000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=10656, stack(0x0000000018950000,0x0000000018a50000)]
        0x0000000017f0a800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1132, stack(0x00000000186e0000,0x00000000187e0000)]
        0x0000000017ea0800 JavaThread "AWT-Shutdown" [_thread_blocked, id=1540, stack(0x00000000185e0000,0x00000000186e0000)]
        0x0000000017e9f800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=14196, stack(0x00000000184e0000,0x00000000185e0000)]
        0x0000000017d54000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=4140, stack(0x0000000018260000,0x0000000018360000)]
        0x0000000015b5d000 JavaThread "Service Thread" daemon [_thread_blocked, id=8132, stack(0x0000000017860000,0x0000000017960000)]
        0x0000000015b11000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=9648, stack(0x0000000017360000,0x0000000017460000)]
        0x0000000015b08000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=13396, stack(0x0000000017260000,0x0000000017360000)]
        0x0000000015b06000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=240, stack(0x0000000017160000,0x0000000017260000)]
        0x0000000015b04800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5988, stack(0x0000000017060000,0x0000000017160000)]
        0x0000000015b03000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8264, stack(0x0000000016f60000,0x0000000017060000)]
        0x0000000015af0000 JavaThread "Finalizer" daemon [_thread_blocked, id=5524, stack(0x0000000016d50000,0x0000000016e50000)]
        0x0000000003426000 JavaThread "Reference Handler" daemon [_thread_blocked, id=6864, stack(0x0000000016c50000,0x0000000016d50000)]

      Other Threads:
        0x0000000015ac7000 VMThread [stack: 0x0000000016b50000,0x0000000016c50000] [id=2560]
        0x00000000174d5000 WatcherThread [stack: 0x0000000017960000,0x0000000017a60000] [id=7192]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap:
       PSYoungGen total 38400K, used 14620K [0x00000000eab00000, 0x00000000ed580000, 0x0000000100000000)
        eden space 33280K, 43% used [0x00000000eab00000,0x00000000eb9472e8,0x00000000ecb80000)
        from space 5120K, 0% used [0x00000000ed080000,0x00000000ed080000,0x00000000ed580000)
        to space 5120K, 0% used [0x00000000ecb80000,0x00000000ecb80000,0x00000000ed080000)
       ParOldGen total 87552K, used 0K [0x00000000c0000000, 0x00000000c5580000, 0x00000000eab00000)
        object space 87552K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000c5580000)
       Metaspace used 11715K, capacity 11898K, committed 12160K, reserved 1060864K
        class space used 1569K, capacity 1640K, committed 1664K, reserved 1048576K

      Card table byte_map: [0x00000000127f0000,0x0000000012a00000] byte_map_base: 0x00000000121f0000

      Marking Bits: (ParMarkBitMap*) 0x000000005e85c720
       Begin Bits: [0x0000000012f60000, 0x0000000013f60000)
       End Bits: [0x0000000013f60000, 0x0000000014f60000)

      Polling page: 0x0000000001430000

      CodeCache: size=245760Kb used=2709Kb max_used=2726Kb free=243051Kb
       bounds [0x0000000003430000, 0x00000000036e0000, 0x0000000012430000]
       total_blobs=1133 nmethods=673 adapters=373
       compilation: enabled

      Compilation events (10 events):
      Event: 2.366 Thread 0x0000000015b06000 669 4 java.lang.Math::min (11 bytes)
      Event: 2.366 Thread 0x0000000015b06000 nmethod 669 0x00000000036c8e50 code [0x00000000036c8f80, 0x00000000036c8fd8]
      Event: 2.379 Thread 0x0000000015b11000 670 3 java.awt.Component::getFont (5 bytes)
      Event: 2.379 Thread 0x0000000015b11000 nmethod 670 0x00000000036cb490 code [0x00000000036cb620, 0x00000000036cbb28]
      Event: 2.379 Thread 0x0000000015b11000 671 3 java.awt.Component::getFont_NoClientCode (29 bytes)
      Event: 2.379 Thread 0x0000000015b11000 nmethod 671 0x00000000036cad90 code [0x00000000036caf20, 0x00000000036cb348]
      Event: 2.400 Thread 0x0000000015b11000 672 3 javax.swing.DefaultListCellRenderer::firePropertyChange (40 bytes)
      Event: 2.401 Thread 0x0000000015b11000 nmethod 672 0x00000000036ca790 code [0x00000000036ca920, 0x00000000036cacb8]
      Event: 2.413 Thread 0x0000000015b11000 673 3 sun.font.FontDesignMetrics::getLatinCharWidth (29 bytes)
      Event: 2.414 Thread 0x0000000015b11000 nmethod 673 0x00000000036ca0d0 code [0x00000000036ca280, 0x00000000036ca5c8]

      GC Heap History (0 events):
      No events

      Deoptimization events (6 events):
      Event: 0.804 Thread 0x0000000003335800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000353e978 method=java.lang.String.hashCode()I @ 14
      Event: 0.832 Thread 0x0000000003335800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003584e4c method=java.io.BufferedReader.readLine(Z)Ljava/lang/String; @ 160
      Event: 1.592 Thread 0x0000000017ea6000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000356a8e8 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
      Event: 1.592 Thread 0x0000000017ea6000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000356a8e8 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
      Event: 1.592 Thread 0x0000000017ea6000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000356a8e8 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
      Event: 1.592 Thread 0x0000000017ea6000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000356a8e8 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8

      Internal exceptions (10 events):
      Event: 0.781 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb13fe78) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.781 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb140088) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.843 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb238ee0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.843 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb2390f0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.844 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb23bc50) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.844 Thread 0x0000000003335800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb23be60) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
      Event: 0.859 Thread 0x0000000003335800 Exception <a 'java/io/FileNotFoundException'> (0x00000000eb2666b8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jni.cpp, line 709]
      Event: 0.923 Thread 0x0000000003335800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000eb333d98) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
      Event: 0.926 Thread 0x0000000003335800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000eb341320) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
      Event: 1.048 Thread 0x0000000017ea6000 Exception <a 'java/io/FileNotFoundException'> (0x00000000eb5804c0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims\jni.cpp, line 709]

      Events (10 events):
      Event: 2.010 loading class sun/awt/shell/Win32ShellFolder2$11
      Event: 2.010 loading class sun/awt/shell/Win32ShellFolder2$11 done
      Event: 2.344 loading class sun/font/StandardGlyphVector
      Event: 2.344 loading class java/awt/font/GlyphVector
      Event: 2.344 loading class java/awt/font/GlyphVector done
      Event: 2.344 loading class sun/font/StandardGlyphVector done
      Event: 2.345 loading class sun/font/StandardGlyphVector$GlyphStrike
      Event: 2.345 loading class sun/font/StandardGlyphVector$GlyphStrike done
      Event: 2.345 loading class java/lang/StrictMath
      Event: 2.346 loading class java/lang/StrictMath done


      Dynamic libraries:
      0x00007ff75c360000 - 0x00007ff75c397000 C:\App\Java\jdk1.8.0_131\bin\java.exe
      0x00007ffac9bf0000 - 0x00007ffac9dcb000 C:\WINDOWS\SYSTEM32\ntdll.dll
      0x00007ffac7280000 - 0x00007ffac732e000 C:\WINDOWS\System32\KERNEL32.DLL
      0x00007ffac6d70000 - 0x00007ffac6fb9000 C:\WINDOWS\System32\KERNELBASE.dll
      0x00007ffac7ef0000 - 0x00007ffac7f91000 C:\WINDOWS\System32\ADVAPI32.dll
      0x00007ffac9b50000 - 0x00007ffac9bed000 C:\WINDOWS\System32\msvcrt.dll
      0x00007ffac7e90000 - 0x00007ffac7ee9000 C:\WINDOWS\System32\sechost.dll
      0x00007ffac7c30000 - 0x00007ffac7d55000 C:\WINDOWS\System32\RPCRT4.dll
      0x00007ffac7130000 - 0x00007ffac727a000 C:\WINDOWS\System32\USER32.dll
      0x00007ffac7070000 - 0x00007ffac708e000 C:\WINDOWS\System32\win32u.dll
      0x00007ffac7400000 - 0x00007ffac7427000 C:\WINDOWS\System32\GDI32.dll
      0x00007ffac6140000 - 0x00007ffac62c9000 C:\WINDOWS\System32\gdi32full.dll
      0x00007ffac7090000 - 0x00007ffac712a000 C:\WINDOWS\System32\msvcp_win.dll
      0x00007ffac6c70000 - 0x00007ffac6d66000 C:\WINDOWS\System32\ucrtbase.dll
      0x00007ffabf2b0000 - 0x00007ffabf517000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.0_none_108e4f62dfe5d999\COMCTL32.dll
      0x00007ffac83a0000 - 0x00007ffac8699000 C:\WINDOWS\System32\combase.dll
      0x00007ffac62d0000 - 0x00007ffac633a000 C:\WINDOWS\System32\bcryptPrimitives.dll
      0x00007ffac8000000 - 0x00007ffac802d000 C:\WINDOWS\System32\IMM32.DLL
      0x00007ffac4fb0000 - 0x00007ffac4fe1000 C:\WINDOWS\SYSTEM32\ntmarta.dll
      0x00007ffac5f40000 - 0x00007ffac5f70000 C:\WINDOWS\SYSTEM32\SspiCli.dll
      0x000000005e8e0000 - 0x000000005e9b2000 C:\App\Java\jdk1.8.0_131\jre\bin\msvcr100.dll
      0x000000005e040000 - 0x000000005e8dc000 C:\App\Java\jdk1.8.0_131\jre\bin\server\jvm.dll
      0x00007ffac73f0000 - 0x00007ffac73f8000 C:\WINDOWS\System32\PSAPI.DLL
      0x00007ffab9300000 - 0x00007ffab9309000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
      0x00007ffac9ae0000 - 0x00007ffac9b4c000 C:\WINDOWS\System32\WS2_32.dll
      0x00007ffaaa370000 - 0x00007ffaaa393000 C:\WINDOWS\SYSTEM32\WINMM.dll
      0x00007ffac5190000 - 0x00007ffac519a000 C:\WINDOWS\SYSTEM32\VERSION.dll
      0x00007ffaaa340000 - 0x00007ffaaa36b000 C:\WINDOWS\SYSTEM32\winmmbase.dll
      0x00007ffac60f0000 - 0x00007ffac6139000 C:\WINDOWS\System32\cfgmgr32.dll
      0x000000005ee40000 - 0x000000005ee4f000 C:\App\Java\jdk1.8.0_131\jre\bin\verify.dll
      0x000000005e010000 - 0x000000005e039000 C:\App\Java\jdk1.8.0_131\jre\bin\java.dll
      0x000000005ee20000 - 0x000000005ee36000 C:\App\Java\jdk1.8.0_131\jre\bin\zip.dll
      0x00007ffac86a0000 - 0x00007ffac9ad7000 C:\WINDOWS\System32\SHELL32.dll
      0x00007ffac7330000 - 0x00007ffac73da000 C:\WINDOWS\System32\shcore.dll
      0x00007ffac6570000 - 0x00007ffac6c62000 C:\WINDOWS\System32\windows.storage.dll
      0x00007ffac7d60000 - 0x00007ffac7db1000 C:\WINDOWS\System32\shlwapi.dll
      0x00007ffac60d0000 - 0x00007ffac60e1000 C:\WINDOWS\System32\kernel.appcore.dll
      0x00007ffac6040000 - 0x00007ffac608c000 C:\WINDOWS\System32\powrprof.dll
      0x00007ffac60b0000 - 0x00007ffac60c5000 C:\WINDOWS\System32\profapi.dll
      0x00007ffac2dc0000 - 0x00007ffac2dd0000 C:\App_x86\JetBrains\IntelliJ IDEA Community Edition 2016.3\bin\breakgen64.dll
      0x000000005dff0000 - 0x000000005e00a000 C:\App\Java\jdk1.8.0_131\jre\bin\net.dll
      0x00007ffac58f0000 - 0x00007ffac594c000 C:\WINDOWS\system32\mswsock.dll
      0x000000005de30000 - 0x000000005dfc8000 C:\App\Java\jdk1.8.0_131\jre\bin\awt.dll
      0x00007ffac7dc0000 - 0x00007ffac7e7f000 C:\WINDOWS\System32\OLEAUT32.dll
      0x00007ffac4460000 - 0x00007ffac44de000 C:\WINDOWS\SYSTEM32\apphelp.dll
      0x00007ffac4780000 - 0x00007ffac4815000 C:\WINDOWS\system32\uxtheme.dll
      0x00007ffac7a20000 - 0x00007ffac7b86000 C:\WINDOWS\System32\MSCTF.dll
      0x00007ffac2fb0000 - 0x00007ffac2fda000 C:\WINDOWS\system32\dwmapi.dll
      0x00007ffac81d0000 - 0x00007ffac8314000 C:\WINDOWS\System32\ole32.dll
      0x000000005dde0000 - 0x000000005de27000 C:\App\Java\jdk1.8.0_131\jre\bin\fontmanager.dll
      0x000000005dfd0000 - 0x000000005dfe1000 C:\App\Java\jdk1.8.0_131\jre\bin\nio.dll
      0x00007ffaaba80000 - 0x00007ffaabb26000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.15063.0_none_43a14f3b47f396e6\comctl32.dll
      0x00007ffac7b90000 - 0x00007ffac7c2e000 C:\WINDOWS\System32\clbcatq.dll
      0x00007ffabe2e0000 - 0x00007ffabe476000 C:\WINDOWS\system32\propsys.dll
      0x00007ffa9f690000 - 0x00007ffa9f7b7000 C:\WINDOWS\system32\NetworkExplorer.dll
      0x00007ffac1530000 - 0x00007ffac1a61000 C:\Windows\System32\OneCoreUAPCommonProxyStub.dll
      0x00007ffac23b0000 - 0x00007ffac255c000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
      0x00007ffab9620000 - 0x00007ffab9677000 C:\Windows\System32\thumbcache.dll
      0x00007ffa9a630000 - 0x00007ffa9a751000 C:\WINDOWS\system32\opengl32.dll
      0x00007ffabb230000 - 0x00007ffabb25c000 C:\WINDOWS\SYSTEM32\GLU32.dll
      0x000000005dd90000 - 0x000000005ddd2000 C:\App\Java\jdk1.8.0_131\jre\bin\t2k.dll
      0x00007ffac0a30000 - 0x00007ffac0a4b000 C:\WINDOWS\SYSTEM32\MPR.dll
      0x00007ffac28f0000 - 0x00007ffac28fb000 C:\WINDOWS\System32\drprov.dll
      0x00007ffac5eb0000 - 0x00007ffac5f05000 C:\WINDOWS\System32\WINSTA.dll
      0x00007ffac00f0000 - 0x00007ffac0106000 C:\WINDOWS\System32\ntlanman.dll
      0x00007ffac0000000 - 0x00007ffac0020000 C:\WINDOWS\System32\davclnt.dll
      0x00007ffac2560000 - 0x00007ffac256c000 C:\WINDOWS\System32\DAVHLPR.dll
      0x00007ffabe180000 - 0x00007ffabe196000 C:\WINDOWS\System32\wkscli.dll
      0x00007ffac5f10000 - 0x00007ffac5f35000 C:\WINDOWS\System32\bcrypt.dll
      0x00007ffab9e30000 - 0x00007ffab9e42000 C:\WINDOWS\SYSTEM32\cscapi.dll
      0x00007ffac5780000 - 0x00007ffac578d000 C:\WINDOWS\System32\netutils.dll
      0x00007ffabd0e0000 - 0x00007ffabd12a000 C:\Windows\System32\dlnashext.dll
      0x00007ffaaca50000 - 0x00007ffaacabd000 C:\Windows\System32\PlayToDevice.dll
      0x00007ffaa4800000 - 0x00007ffaa481e000 C:\Windows\System32\DevDispItemProvider.dll
      0x00007ffabe4b0000 - 0x00007ffabe517000 C:\WINDOWS\System32\MMDevApi.dll
      0x00007ffac4820000 - 0x00007ffac4848000 C:\WINDOWS\System32\DEVOBJ.dll
      0x00007ffa9e230000 - 0x00007ffa9e40f000 C:\WINDOWS\system32\wpdshext.dll
      0x00007ffaa3bc0000 - 0x00007ffaa3d55000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.15063.0_none_9055be80f37df5c1\gdiplus.dll
      0x00007ffaaa770000 - 0x00007ffaaa80c000 C:\Windows\System32\PortableDeviceApi.dll
      0x00007ffac74d0000 - 0x00007ffac790b000 C:\WINDOWS\System32\SETUPAPI.dll
      0x00007ffac6340000 - 0x00007ffac6396000 C:\WINDOWS\System32\WINTRUST.dll
      0x00007ffac6090000 - 0x00007ffac60a1000 C:\WINDOWS\System32\MSASN1.dll
      0x00007ffac63a0000 - 0x00007ffac6569000 C:\WINDOWS\System32\CRYPT32.dll
      0x00007ffab6060000 - 0x00007ffab6096000 C:\Windows\System32\EhStorShell.dll
      0x00007ffaba8c0000 - 0x00007ffaba8e5000 C:\Windows\System32\EhStorAPI.dll
      0x00007ffac50d0000 - 0x00007ffac50e3000 C:\Windows\System32\WTSAPI32.dll
      0x00007ffabee90000 - 0x00007ffabeea0000 C:\WINDOWS\SYSTEM32\LINKINFO.dll
      0x00007ffac50c0000 - 0x00007ffac50cc000 C:\WINDOWS\SYSTEM32\Secur32.dll
      0x00007ffabfdb0000 - 0x00007ffabfdc8000 C:\WINDOWS\SYSTEM32\samcli.dll
      0x00007ffabe0e0000 - 0x00007ffabe103000 C:\WINDOWS\SYSTEM32\SAMLIB.dll
      0x00007ffac12f0000 - 0x00007ffac1499000 C:\WINDOWS\SYSTEM32\dbghelp.dll

      VM Arguments:
      jvm_args: -Xmx1G -Didea.launcher.port=7538 -Didea.launcher.bin.path=C:\App_x86\JetBrains\IntelliJ IDEA Community Edition 2016.3\bin -Dfile.encoding=UTF-8
      java_command: com.intellij.rt.execution.application.AppMain nl.vea.utility.full_text_search.test.windows10issueTester.Windows10LookAndFeelIssueDemo
      java_class_path (initial): C:\App\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\App\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\App\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\App\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\App\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\App\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\App\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\App\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\App\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\App\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\App\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\App\Java\jdk1.8.0_131\jre\lib\rt.jar;C:\Users\Willem\git\BitbucketRepositories\file-search-with-lucene\full-text-search\target\test-classes;C:\Users\Willem\git\BitbucketRepositories\file-search-with-lucene\full-text-search\target\classes;C:\Users\Willem\.m2\repository\ch\qos\logback\logback-classic\1.1.7\logback-classic-1.1.7.jar;C:\Users\Willem\.m2\repository\ch\qos\logback\logback-core\1.1.7\logback-core-1.1.7.jar;C:\Users\Willem\.m2\repository\org\slf4j\slf4j-api\1.7.20\slf4j-api-1.7.20.jar;C:\Users\Willem\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.21\jcl-over-slf4j-1.7.21.jar;C:\Users\Willem\.m2\repository\org\apache\lucene\lucene-core\6.2.1\lucene-core-6.2.1.jar;C:\Users\Willem\.m2\repository\org\apache\lucene\lucene-analyzers-common\6.2.1\lucene-analyzers-common-6.2.1.jar;C:\Users\Willem\.m2\repository\org\apache\lucene\lucene-queryparser\6.2.1\lucene-queryparser-6.2.1.jar;C:\Users\Willem\.m2\rep
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\App\Java\jdk1.8.0_131\
      PATH=C:\ProgramData\Oracle\Java\javapath;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\Services\IPT\;C:\App(x86)\Java\forge-1.0.0-SNAPSHOT\bin;C:\App(x86)\apache-ant-1.8.2\bin;C:\App\Java\jdk1.8.0_131\\bin;C:\App\apache-maven-3.2.1\bin;C:\App\gradle-2.1\bin;C:\App_x86\Brackets\command;C:\Program Files\Calibre2\;C:\App\Git_LFS;C:\Users\Willem\AppData\Local\Microsoft\WindowsApps;
      USERNAME=Willem
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel



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

      OS: Windows 10.0 , 64 bit Build 15063 (10.0.15063.0)

      CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, ht, tsc, tscinvbit

      Memory: 4k page, physical 8321396k(3492736k free), swap 16710004k(8900532k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (25.131-b11) for windows-amd64 JRE (1.8.0_131-b11), built on Mar 15 2017 01:23:53 by "java_re" with MS VC++ 10.0 (VS2010)

      time: Sat Apr 22 16:50:12 2017
      elapsed time: 2 seconds (0d 0h 0m 2s)



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class Windows10LookAndFeelIssueDemo {

          public static void main(String[] args){
              SwingUtilities.invokeLater(new Runnable() {
                  @Override
                  public void run() {
                      try {
                          //replacing with the cross platform look and feel will fix the JVM crash
                          //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

                      } catch (Exception e) {
                          e.printStackTrace();
                      }
                      JFileChooser fileChooser = new JFileChooser();
                      fileChooser.showOpenDialog(null);
                  }
              });
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      As stated as comment in sourcecode for the executable test case
      if you use
      UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
      instead of
       UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

      or skip look and feel setting altogether the dialog will run as expected and no JVM crash will occur.

        Issue Links

          Activity

          Hide
          pardesha Pardeep Sharma added a comment -
          Closing this as a duplicate of JDK-8178873 as verified with the attached test case to confirm that the issue is linked with windows look and feel only. Updated the report JDK-8178873 with detailed information.


          Show
          pardesha Pardeep Sharma added a comment - Closing this as a duplicate of JDK-8178873 as verified with the attached test case to confirm that the issue is linked with windows look and feel only. Updated the report JDK-8178873 with detailed information.

            People

            • Assignee:
              pardesha Pardeep Sharma
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: