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

JRE crashes when JFileChooser.showOpenDialog() is called and the "Godmode" folder is on the Desktop

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      other

      Description

      FULL PRODUCT VERSION :
      1.8.0_131-b11 (32 bit)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10, Version 1703 (OS Build 15063.332), 64 Bit

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      The crash could not be observed under Window 10, Version 1607, or earlier Windows versions.


      A DESCRIPTION OF THE PROBLEM :
      The JRE crashes with an access violation when calling JFileChooser.showOpenDialog() if the following conditions are fulfilled:
      1. Windows 10, Build 1703, 64 Bit (32 Bit not tested).
      2. The look and feel is set to "com.sun.java.swing.plaf.windows.WindowsLookAndFeel".
      3. The so called Godmode folder must be present on the desktop. The Godmode folder is a folder with name "GODMODE.{ED7BA470-8E54-465E-825C-99712043E01C}" and shows all entries of Windows' settings applications.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Fulfill the three conditions described above and execute the sample code below. The sample has been created with Netbeans.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The file select dialog should appear but not crash.
      ACTUAL -
      The JRE crashes with the error report below.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6deb21f4, pid=1576, tid=0x0000186c
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
      # Java VM: Java HotSpot(TM) Client VM (25.131-b11 mixed mode windows-x86 )
      # Problematic frame:
      # C [msvcr100.dll+0x121f4]
      #
      # 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\sqa\Documents\NetBeansProjects\test\hs_err_pid1576.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.
      #
      C:\Users\sqa\AppData\Local\NetBeans\Cache\8.2\executor-snippets\debug.xml:83: Java returned: 1
      BUILD FAILED (total time: 19 seconds)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package test;
      import java.util.logging.Level;
      import java.util.logging.Logger;
      import javax.swing.JFileChooser;
      import javax.swing.UIManager;
      import javax.swing.UnsupportedLookAndFeelException;
      public class Test {
          public static void main(String[] args) {
              JFileChooser fileChooser = new JFileChooser();
              try {
                  UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
                  Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
              }
              fileChooser.showOpenDialog(null);
          }
      }


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

      CUSTOMER SUBMITTED WORKAROUND :
      Two workarounds are available:
      1. Choose another look and feel, e.g. "Metal". The problem occors with the look and feels "Windows" and "Windows classic" only.
      2. Do not put the Godmode folder on the desktop. Use a batch file containing the line "%SystemRoot%\explorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}" instead.

        Issue Links

          Activity

          Hide
          pardesha Pardeep Sharma added a comment -
          This is a duplicate of JDK-8179014 which has a fix for JDK 9 and BP in progress for 8u. For details refer to: JDK-8179014
          Show
          pardesha Pardeep Sharma added a comment - This is a duplicate of JDK-8179014 which has a fix for JDK 9 and BP in progress for 8u. For details refer to: JDK-8179014

            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: