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

Resizing dialog which is JWindow parent makes JVM crash

    Details

    • Subcomponent:
    • Introduced In Build:
      b12
    • Introduced In Version:
      9
    • Resolved In Build:
      b89
    • CPU:
      x86_64
    • OS:
      windows_7

      Backports

        Description

        FULL PRODUCT VERSION :
        jdk1.8.0_40

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        JVM crashes with JDK1.8.0_11 + if you run the attached code and resize the dialog.

        REGRESSION. Last worked in version 7u80

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the attached code, resize the dialog and the JVM will crash:

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        JVM doesn't crash :)
        ACTUAL -
        Last stack I could see before the crash:

        WARN 2015-05-04 15:21:21,707 - AWT-EventQueue-0, Id = 17, Priority = 6: RUNNABLE
        sun.awt.windows.WWindowPeer.reshapeFrame(Native Method)
        sun.awt.windows.WDialogPeer.reshape(Unknown Source)
        sun.awt.windows.WComponentPeer.setBounds(Unknown Source)
        sun.awt.windows.WWindowPeer.setBounds(Unknown Source)
        java.awt.Component.reshapeNativePeer(Unknown Source)
        java.awt.Component.reshape(Unknown Source)
        java.awt.Window.reshape(Unknown Source)
        java.awt.Component.setBounds(Unknown Source)
        java.awt.Window.setBounds(Unknown Source)
        java.awt.Component.resize(Unknown Source)
        java.awt.Component.setSize(Unknown Source)
        java.awt.Window.setSize(Unknown Source)

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        Problem signature:
        Problem Event Name: BEX64
        Application Name: java.exe
        Application Version: 8.0.60.13
        Application Timestamp: 55404a69
        Fault Module Name: StackHash_08b3
        Fault Module Version: 0.0.0.0
        Fault Module Timestamp: 00000000
        Exception Offset: 0000000300000002
        Exception Code: c0000005
        Exception Data: 0000000000000008
        OS Version: 6.1.7601.2.1.0.256.48
        Locale ID: 1033
        Additional Information 1: 08b3
        Additional Information 2: 08b36dcca93c38acb7c92ef4a729e798
        Additional Information 3: 5d68
        Additional Information 4: 5d682eddcc7a5d6b5452fc95535d5ac9

        second one:

        Problem signature:
        Problem Event Name: APPCRASH
        Application Name: java.exe
        Application Version: 8.0.60.13
        Application Timestamp: 55404a69
        Fault Module Name: StackHash_d693
        Fault Module Version: 0.0.0.0
        Fault Module Timestamp: 00000000
        Exception Code: c000041d
        Exception Offset: 0000000300000002
        OS Version: 6.1.7601.2.1.0.256.48
        Locale ID: 1033
        Additional Information 1: d693
        Additional Information 2: d6933f192f50114566e03a88a59a6417
        Additional Information 3: 9096
        Additional Information 4: 9096dfe271c183defc2620e74bdaec28

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javax.swing.JButton;
        import javax.swing.JDialog;
        import javax.swing.JPanel;
        import javax.swing.JWindow;
        import javax.swing.SwingUtilities;
        import javax.swing.Timer;
        import java.awt.event.ActionEvent;
        import java.awt.event.ActionListener;

        public class Main {

        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    final JDialog dialog = new JDialog();
                    dialog.add(new JPanel());
                    dialog.setVisible(true);
                    dialog.setBounds(100, 100, 100, 100);

                    final JWindow dependentWindow = getjWindow(dialog);
                    dependentWindow.setVisible(true);
                    dependentWindow.setBounds(100, 100, 100, 100);
                    Timer t = new Timer(300, new ActionListener() {
                        @Override
                        public void actionPerformed(ActionEvent e) {
                            dependentWindow.setVisible(!dependentWindow.isVisible());
                        }
                    });
                    t.start();
                }
            });
        }

        private static JWindow getjWindow(JDialog dialog) {
            JWindow w = new JWindow(dialog);
            JPanel panel = new JPanel();
            panel.add(new JButton("button"));
            w.add(panel);
            return w;
        }
        }
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Using an undecorated JDialog but that's not really the same...

          Activity

          webbuggrp Webbug Group created issue -
          Hide
          anashaty Anton Nashatyrev (Inactive) added a comment -
          Reproduced on x64 JRE versions only (8u60b12, 8u40b13)
          Show
          anashaty Anton Nashatyrev (Inactive) added a comment - Reproduced on x64 JRE versions only (8u60b12, 8u40b13)
          anashaty Anton Nashatyrev (Inactive) made changes -
          Field Original Value New Value
          Affects Version/s 9 [ 16400 ]
          Affects Version/s 8u60 [ 16903 ]
          anashaty Anton Nashatyrev (Inactive) made changes -
          Project Java Incidents [ 10301 ] JDK [ 10100 ]
          Key JI-9021028 JDK-8079595
          anashaty Anton Nashatyrev (Inactive) made changes -
          Affects Version/s 8u45 [ 16837 ]
          Affects Version/s 8u60 [ 16814 ]
          Affects Version/s 9 [ 14949 ]
          Affects Version/s 9 [ 16400 ]
          Affects Version/s 8u60 [ 16903 ]
          Affects Version/s 8u45 [ 17501 ]
          Subcomponent java.awt [ 484 ] java.awt [ 196 ]
          Component/s client-libs [ 10307 ]
          Component/s client-libs [ 10700 ]
          vdyakov Victor Dyakov made changes -
          Affects Version/s 8u11 [ 16316 ]
          vdyakov Victor Dyakov made changes -
          Affects Version/s 8u40 [ 16510 ]
          vdyakov Victor Dyakov made changes -
          Assignee Sergey Bylokhov [ serb ]
          Hide
          anashaty Anton Nashatyrev (Inactive) added a comment -
          Reproduced on 1.9.0b63 x64
          Show
          anashaty Anton Nashatyrev (Inactive) added a comment - Reproduced on 1.9.0b63 x64
          serb Sergey Bylokhov made changes -
          Status New [ 10000 ] Open [ 1 ]
          serb Sergey Bylokhov made changes -
          Fix Version/s 9 [ 14949 ]
          serb Sergey Bylokhov made changes -
          Introduced In Build b12 [ 17458 ]
          Introduced In Version 9 [ 14949 ]
          Hide
          serb Sergey Bylokhov added a comment -
          Regression of JDK-8019990
          Show
          serb Sergey Bylokhov added a comment - Regression of JDK-8019990
          serb Sergey Bylokhov made changes -
          Assignee Sergey Bylokhov [ serb ] Andrew Brygin [ bae ]
          vdyakov Victor Dyakov made changes -
          Labels regression webbug regression regression_8019990 sustaining webbug
          vdyakov Victor Dyakov made changes -
          Affects Version/s 8u40 [ 16510 ]
          Affects Version/s 8u60 [ 16814 ]
          Affects Version/s 8u45 [ 16837 ]
          vdyakov Victor Dyakov made changes -
          Labels regression regression_8019990 sustaining webbug regression regression_8019990 webbug
          vdyakov Victor Dyakov made changes -
          Assignee Andrew Brygin [ bae ] Semyon Sadetsky [ ssadetsky ]
          ssadetsky Semyon Sadetsky made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/b5125fa7ef4b
          User: ssadetsky
          Date: 2015-10-05 12:29:43 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/b5125fa7ef4b User: ssadetsky Date: 2015-10-05 12:29:43 +0000
          hgupdate HG Updates made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolved In Build team [ 17324 ]
          Resolution Fixed [ 1 ]
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b5125fa7ef4b
          User: lana
          Date: 2015-10-28 19:24:44 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b5125fa7ef4b User: lana Date: 2015-10-28 19:24:44 +0000
          hgupdate HG Updates made changes -
          Resolved In Build team [ 17324 ] master [ 18256 ]
          hgupdate HG Updates made changes -
          Resolved In Build master [ 18256 ] b89 [ 17533 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8142763 [ JDK-8142763 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8173296 [ JDK-8173296 ]
          vdyakov Victor Dyakov made changes -
          Labels regression regression_8019990 webbug CPU17_02-critical-watch regression regression_8019990 webbug
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8173489 [ JDK-8173489 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8173590 [ JDK-8173590 ]
          vdyakov Victor Dyakov made changes -
          Labels CPU17_02-critical-watch regression regression_8019990 webbug CPU17_02-critical-request regression regression_8019990 webbug
          rhalade Rajan Halade made changes -
          Labels CPU17_02-critical-request regression regression_8019990 webbug CPU17_02-critical-SQE-OK CPU17_02-critical-request regression regression_8019990 webbug
          ydagra Yashi Dagra made changes -
          Labels CPU17_02-critical-SQE-OK CPU17_02-critical-request regression regression_8019990 webbug CPU17_02-critical-SQE-OK CPU17_02-critical-approved regression regression_8019990 webbug
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8173999 [ JDK-8173999 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8174006 [ JDK-8174006 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8174013 [ JDK-8174013 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8174188 [ JDK-8174188 ]
          scfitch Stephen Fitch made changes -
          Labels CPU17_02-critical-SQE-OK CPU17_02-critical-approved regression regression_8019990 webbug CPU17_02-critical-SQE-OK CPU17_02-critical-approved regression regression_8019990 release-note=no webbug
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8177187 [ JDK-8177187 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8177229 [ JDK-8177229 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8177265 [ JDK-8177265 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8178609 [ JDK-8178609 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8178932 [ JDK-8178932 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8180981 [ JDK-8180981 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8182200 [ JDK-8182200 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8184544 [ JDK-8184544 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8188399 [ JDK-8188399 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8188511 [ JDK-8188511 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8190084 [ JDK-8190084 ]

            People

            • Assignee:
              ssadetsky Semyon Sadetsky
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: