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.
While testing NB6.0 in Solaris Express Developers Edition (build snv_77) with java 1.6.0_03 several GTK+ compatibility issues were encountered. The first one is error messages in console while running IDE: (<unknown>:19201): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass) (<unknown>:19201): Gtk-CRITICAL **: file gtkwidget.c: line 3236: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed (<unknown>:19201): Gtk-CRITICAL **: file gtkstyle.c: line 5879: assertion `style->depth == gdk_drawable_get_depth (window)' failed (<unknown>:19201): Gtk-CRITICAL **: file gtkstyle.c: line 5879: assertion `style->depth == gdk_drawable_get_depth (window)' failed The second is a corrupted debugger toolbar after performing the following scenario: - Run NB with a fresh user dir - create a java application - Push 'Run|Step Into' menu item - Press Finish button on toolbar - Click on toolbar and call context menu. Select 'Small Toolbar Icons' menu item - Push 'Run|Step Into' menu item again ==> 'Debug' toolbar appears, but It's twice as big as 'Build' toolbar - Press Finish button on toolbar - Click on toolbar and call context menu. Deselect 'Small Toolbar Icons' menu item - Push 'Run|Step Into' menu item again ==> 'Debug' toolbar appears, but It's once again twice as big as 'Build' toolbar All these do not happen if you start NB with java 1.5 or using option "--laf javax.swing.plaf.metal.MetalLookAndFeel"
- first issue is JDK/gtk support issue, we can't do anything with it. ccing Marek which had some info about this I remember - as for second issue - is it reproducible only on Solaris? It seems I can't reproduce myself...
Please notice that these are solaris 11 (Solaris Express) issues. To reproduce them you need to have snv_77 solaris build or later.
First issue is known and already filed against JDK. It happens also on last Ubuntu Gutsy. Issue is http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717. I will check second issue.
I reproduced toolbar issue on Solaris 11, b80 and JDK 6u4 FCS ie. b12, 6u10 b10 (actually nightly build ie. not promoted). It works better on JDK 7 b24 - it creates 2 toolbar rows but at least debug toolbar height stays correct.. (We do not support GTK LnF with JDK 5.0 so I did not test with it.) It is enough to just show (enable) Debug toolbar from toolbar popup menu. Seems like problem with layout manager. I will try to find out what happens.
It happens only on Nimbus L&F. It looks like some icons from debug toolbar report greater height. Workaround is to set greater preferred height for toolbar on GTK LnF. I increased height by 2 both for small 16x16 and big 24x24 icon size. Modified: /cvs/openide/loaders/src/org/openide/awt/Toolbar.java new revision: 1.54; previous revision: 1.53
Correction: I meant Nimbus desktop theme on Solaris 11 NOT Nimbus LnF. So it is Nimbus theme on GTK LnF.
I'm seeing the same (second) problem now in Solaris9 with Motif! This is in 6.1 and 6.0 code. Except it's the Build toolbar not the Debug toolbar. I'm also wary of the "fix" Why would icons report a bigger size? Which icons? Isn't that a bug in the icon? Why is toolbar accomodating a "bad icon"?
It was only on Nimbus theme. I assume if there would be problem with icon it would happen on more themes. I suspect it was some problem with painting icons or their preferred size on Nimbus theme. I did small adjustment of toolbar preferred height and it solved problem so I did not investigate it further. (Even if I would I only checked icons from Debug toolbar and did not find any difference in their size. We do not support Motif L&F. We support only Metal and GTK. We are working on new Nimbus L&F but it will n ot get into NB 6.1. I will check anyway what happens on Motif.