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

VM crashed as I was navigating in the File - Open dialog

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

      FULL OS VERSION :
      Microsoft Windows [Version 6.0.6000]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Dell Latitude D810

      A DESCRIPTION OF THE PROBLEM :
      The VM crashes as I try to navigate in the Vista file system using the File -
      Open -dialog. I ran it from within Eclipse. I retried from cmd-window: the results were the same. It crashed without producing any window. The hs_err_pid... is attached, and the output is below.

      My colleague run the bug-script: he was not able to reproduce it. My colleague runs the same kind of software system, but with different hardware: another type of a Dell laptop. I know at least one difference: he is not able to run the Vista Aero, while I am.

      Additional information:

         * The FileDialog chooser = new FileDialog(parent); worked fine, with
           no bugs.
         * The bug happens only in Java jre 1.6. It does not happen with Java
           jre 1.5.0_06
         * If I ran with Eclipses 'run' VM 1.6 crashed right away. If I ran
           with Eclipses 'debug' the VM opened the dialog, but crashed as I
           tried to change to any directory. I was at 'My Documents'.
         * I tried with JFileChooser chooser = new JFileChooser("c:\\"); but
           it did not help. Again, it did crash at first attempt to change
           directory.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Execute testcase provided below

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Attached seperatly

      ---------- BEGIN SOURCE ----------

      ----------------- Script that caused no bug ----

      import java.awt.FileDialog;
      import java.awt.Frame;

      public class FileBugDemo {
         public static void main(String[] args) {
             Frame parent = new Frame();
             FileDialog chooser = new FileDialog(parent);
             chooser.setVisible(true);
             //JFileChooser chooser = new JFileChooser("c:\\");
             //int returnVal = chooser.showOpenDialog(parent);
             //System.out.println(returnVal);
         }
      }

      ----------------- Script that caused bug ----

      import java.awt.Frame;

      import javax.swing.JFileChooser;

      public class FileBugDemo {
         public static void main(String[] args) {
             Frame parent = new Frame();
             JFileChooser chooser = new JFileChooser();
             int returnVal = chooser.showOpenDialog(parent);
             System.out.println(returnVal);
         }
      }
      ----------------

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


      REPRODUCIBILITY :
      This bug can be reproduced often.

        Attachments

          Activity

            People

            Assignee:
            rupashka Pavel Porvatov (Inactive)
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: