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

JComboBox in a JFrame crashes on Linux with GTK LaF and GTK+ 2.12.1.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

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


      ADDITIONAL OS VERSION INFORMATION :
      Linux Thinkpad 2.6.22.10 #2 Wed Oct 10 23:07:55 BST 2007 i686 i686 i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      gtk+ 2.12.1
      pango-1.18.0
      glib-2.14.2
      X.Org 7.2
      Intel i915 graphics hardware.

      A DESCRIPTION OF THE PROBLEM :
      Compilation and execution of the attached class causes the JVM to abort with the output and trace information given elsewhere in this bug report.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ javac Test.java
      $ java Test


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A JFrame containing a JComboBox.
      ACTUAL -

      (<unknown>:5571): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)

      (<unknown>:5571): Gtk-WARNING **: Calling gtk_widget_realize() on a widget that isn't inside a toplevel window is not going to work very well. Widgets must be inside a toplevel container before realizing them.

      (<unknown>:5571): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0xb54c83b8, pid=5571, tid=3085147024
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
      # Problematic frame:
      # C [libgdk-x11-2.0.so.0+0x143b8] gdk_drawable_get_colormap+0x9
      #
      # An error report file with more information is saved as hs_err_pid5571.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Aborted


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Attached seperatly


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.JComboBox;
      import javax.swing.JFrame;
      import javax.swing.UIManager;


      public class Test
      {
        public static void main (String args[])
        {
          try
          {
            UIManager.setLookAndFeel ("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
          }
          catch (Exception e) { e.printStackTrace(); }

          JFrame frame = new JFrame ("Frame");
          frame.getContentPane().add (new JComboBox());
          frame.setVisible (true);
        }
      }

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

      CUSTOMER SUBMITTED WORKAROUND :
      Use one of:
       - Java 5.
       - A different look and feel.
       - GTK+ 2.10.x.

      e.g. LD_PRELOAD=/usr/lib/libgtk-x11-2.0.so.0.1000.11 java Test

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stayer Kirill Kirichenko (Inactive)
                Reporter:
                ndcosta Nelson Dcosta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: