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

OGL: mustang b94 doesn't work correctly with JDialog (Nvidia, 91.31, Windows)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_xp

      Description

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

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      nvidia driver 91.31

      A DESCRIPTION OF THE PROBLEM :
      When activating the opengl pipeline (-Dsun.java2d.opengl=true) in mustang b94 the login dialog (JDialog) of my app is not correctly displayed.

      In fact the content pane of the dialog is not displayed (dialog decoration is correctly displayed) and components on content pane continu to work (i.e. Mouse cursor changing into caret over JFieldText, JButton reacting to mouse click).

      When resizing the dialog the program terminates with:
      Java Result: -1073741819

      When the opengl pipeline is not activate everything works correctly.
      This code worked correctly with mustang b86 (nvidia driver 84.21) and opengl pipeline activated.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the provided example with -Dsun.java2d.opengl=true.

      The example creates a simple JDialog containing a JButton.
      When clicking on the button it should display "click" in the console.
      When resizing the dialog, windows kills the app and reports a bug.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect to see a correctly displayed JDialog on the top left corner of the screen with a JButton on it and being able to resize to dialog wihout windows reporting for a bug.

      ACTUAL -
      Actually the content of the JDialog is not displayed at all (transparent behavior).
      And resizing the dialog kills the app with Windows reporting a bug.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      there no jvm crash. Windows reports a bug and kills the app with return code -1073741819.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package javaapplication1;

      import java.awt.Frame;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import javax.swing.JButton;

      public class Main {
      public Main() {
      LoginDialog dialog = new LoginDialog();
      dialog.pack();
      dialog.setVisible(true);
      }

      public static void main(String[] args) {
      new Main();
      }

      public class LoginDialog extends javax.swing.JDialog {
      public LoginDialog() {
      super((Frame)null, false);
      JButton button = new JButton();
      add(button);
      button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
      System.out.println("click");
      }
      });
      }
      }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I didn't found any bypassing method.

        Attachments

          Activity

            People

            • Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: