This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 118805 - GTK errors installing and using netbeans 6 beta 1 on ubuntu 7.10 RC
Summary: GTK errors installing and using netbeans 6 beta 1 on ubuntu 7.10 RC
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 137208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-13 18:32 UTC by bonsiware
Modified: 2008-12-22 11:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
this is how I see the combo box control with 6 beta 1 (39.62 KB, image/png)
2007-10-13 18:33 UTC, bonsiware
Details
patch for openjdk to fix this (1.75 KB, text/plain)
2008-04-08 19:02 UTC, lemmy01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bonsiware 2007-10-13 18:32:35 UTC
installing and using netbeans, each time java has to draw a combo box control, on the terminal I can read the following
errors:


(<unknown>:7427): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance
of GtkEntry or of a subclass)
(<unknown>:7427): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE
(widget)' failed
(<unknown>:7427): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7427): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
andrea@tre21:~/netbeans-6.0beta1/bin$ ./netbeans
(<unknown>:7582): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance
of GtkEntry or of a subclass)
(<unknown>:7582): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE
(widget)' failed
(<unknown>:7582): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7582): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed


the combo box controls are not well drawn... the button is missing...

netbeans 5.5.1 works fine. but it has a different appearance (I think it's drawn with swing theme, while netbeans 6 beta
1 uses gtk theme)

thank you
Comment 1 bonsiware 2007-10-13 18:33:49 UTC
Created attachment 50902 [details]
this is how I see the combo box control with 6 beta 1
Comment 2 David Simonek 2007-10-15 12:18:04 UTC
It looks like problem in Swing, in their java GTK L&F. Please tell me your java -version and exact OS version. Do you
use 64 bit version of system and java? Is this problem specific to Ubuntu 7.10 gutsy gibbon? 

Btw, you can run with old UI if you run netbeans with --ui javax.swing.plaf.metal.MetalLookAndFeel

Passing to Marek...

Comment 3 bonsiware 2007-10-15 13:28:04 UTC
my java version is:
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)

I'm using Ubuntu 7.10 RC i386, my kernel is 2.6.22-14-generic (32 bit).

I have the following java packages installed from ubuntu repositories:
sun-java6-bin
sun-java6-demo
sun-java6-doc
sun-java6-fonts
sun-java6-jdk
sun-java6-jre
sun-java6-plugin
all 6-03-0ubuntu2 version.

I have not another OS to try with, so I don't know if the problem is specific to Ubuntu 7.10...

I have tryed netbeans milestone 9 on feisty and it used to work fine with gtk UI...

If you need further information... ask and I'll send you!

bye
Comment 4 mslama 2007-10-18 16:40:05 UTC
Confirmed. I passed this to GTK L&F maintainer in Swing to investigate it. It looks like some bug/change in GTK libs on
Gutsy. I will update status. For now closing as we cannot handle/workaround this problem in NetBeans. It is reproducible
with ComboBoxDemo.java from http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html. Thanks for report.
Comment 5 bonsiware 2007-10-20 22:11:31 UTC
Sorry but I can't reproduce this bug with this link:
http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

It uses the metal look and feel on my system!

But with netbeans I can!

thank you
Comment 6 bonsiware 2007-10-20 22:41:56 UTC
I've just seen that I have the same problem if I launch Sun Java 6 Web Start from Applications-->Internet...

The combo box on top left in the java cache viewer is corrupted... (as in my previous screenshot)

I think I will file a bug at Ubuntu developers!

bye
Comment 7 Alexander Pepin 2007-11-30 20:18:44 UTC
There is a workaround for NB. Just start NB with the option "--laf javax.swing.plaf.metal.MetalLookAndFeel" or add this
option to netbeans_default_options in NB_install_dir/etc/netbeans.conf file. 
Comment 8 lemmy01 2008-01-09 12:13:24 UTC
It's a swing bug
have a look at 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
and vote for it
Comment 9 lemmy01 2008-04-08 19:02:38 UTC
Created attachment 59855 [details]
patch for openjdk to fix this
Comment 10 dlipin 2008-06-14 09:28:23 UTC
*** Issue 137208 has been marked as a duplicate of this issue. ***