GTK errors installing and using Netbeans 6 beta 1

Bug #150917 reported by bonsiware
24
Affects Status Importance Assigned to Milestone
Netbeans Core
Won't Fix
Unknown
gtk2-engines (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Installing and using Netbeans 6 beta 1, everytime java draws a ComboBox control, terminal reports following errors:

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

(<unknown>:4339): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(<unknown>:4339): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:4339): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

It's reproducible opning netbeans and going to Tools-->Options (this window has a combobox control)

The control is not well drawn (see attachment)

Revision history for this message
bonsiware (bonsiware-deactivatedaccount) wrote :
Revision history for this message
bonsiware (bonsiware-deactivatedaccount) wrote :

The same errors happens if I launch Applications-->Internet-->Sun Java Web Start

(<unknown>:8616): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)
(<unknown>:8616): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(<unknown>:8616): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:8616): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

and the combo box control is corrupted as in my new attachment...

now we know it's not a netbeans bug!!

there is someone talking about it in ubuntuforums too...

http://ubuntuforums.org/showthread.php?t=569311

Revision history for this message
Rene Dohan (innusius) wrote :

I have same problem using FileChooser and Java 6.03 from repos. under Gutsy.

Revision history for this message
Antonio (antodasana) wrote :

Same problem, JComboBox in ANY Swing Java application.

Is this an Ubuntu distribution error or a GTK+ one?

I think this is a severe problem to those who are developing Swing applications in Ubuntu.

Revision history for this message
Jede28 (news-saring) wrote :

I have the same problem. I think this is a Java bug in the GTK L&F implementation of Swing. The comboboxes in all other Swing application are looking fine.
BTW: the error "works" on all GTK+ themes, not just for the Human theme.

Bye,
Stefan

Revision history for this message
Antonio (antodasana) wrote :

Maybe, but I don't think so.

This bug has been reported in NetBeans and NB experts think it is a problem of new GTK+ in 7.10.

http://www.netbeans.org/issues/show_bug.cgi?id=118805

In my case, the bug was not happening in 7.04, I only had the bug after installing 7.10.

Anybody with the same case? Anyone having this bug also in 7.04?

Revision history for this message
Jede28 (news-saring) wrote :

Yes, you're probably right. The Netbeans guys haveI passed this bug to the GTK L&F maintainer in Java Swing. He said that this is a bug in the GTK library in Ubuntu Gutsy, it can't be fixed in Netbeans or Swing. So hopefully it will be fixed in Ubuntu.

This bug only happens since Ubuntu 7.10, not on 7.04. It happens on the Sun JVM's 1.5.0, 1.6.0 and also on the latest development releases of 1.6.0.

Christian Reis (kiko)
Changed in netbeans:
importance: Undecided → Unknown
status: New → Unknown
Changed in netbeans:
status: Unknown → Won't Fix
Revision history for this message
Jede28 (news-saring) wrote :

The bug has been accepted by Sun. Please go there and vote for it!

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717

Revision history for this message
Brian Murray (brian-murray) wrote :

Reviewing this bug report and its comments it seems that multiple people are experiencing this problem. Subsequently, I am confirming this bug report. For future reference you can manage the status of bug reports by clicking on the current status in the yellow line and then choosing a new status in the drop down box. You can learn more about bug statuses at http://wiki.ubuntu.com/Bugs/Status .

Revision history for this message
Abdelmonam Kouka (abdelmonam-kouka) wrote :

I have the same problem when running NetBeans from terminal!

Revision history for this message
Tails (tails9) wrote :

Is it possible to suppress these warnings?

Changed in gtk2-engines (Ubuntu):
importance: Undecided → Low
Revision history for this message
Antonio (antodasana) wrote :

It now works properly, at least in my case:

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Linux version 2.6.31-20-generic running on i386; UTF-8; es_ES (nb)

I guess the status of this bug should be updated.

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Marking as fixed then.

Changed in gtk2-engines (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.