Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 383189

Summary: Warnings and Errors in the SWT Combo when running on Linux
Product: [Eclipse Project] Platform Reporter: Krzysztof Daniel <krzysztof.daniel>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ansgar.radermacher, digulla, patrick, Silenio_Quarti, tjbishop, tverrbjelke
Version: 4.2   
Target Milestone: 4.3 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Snippet none

Description Krzysztof Daniel CLA 2012-06-21 04:30:23 EDT
Created attachment 217672 [details]
Snippet

I get a lot of those:

(SWT:10646): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(SWT:10646): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(SWT:10646): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_IS_WIDGET (widget)' failed

(SWT:10646): Gtk-CRITICAL **: IA__gtk_widget_grab_focus: assertion `GTK_IS_WIDGET (widget)' failed

(SWT:10646): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_IS_WIDGET (widget)' failed

Reproduction steps:
(1) Run a snippet.
(2) Try changing the values while a dialog continues to appear and disappear


Majority of g_object_get_gdata assertions is caused by Combo#deregister method, by line:
display.removeWidget (menuHandle);
Comment 1 Silenio Quarti CLA 2012-08-31 10:24:07 EDT
This problem only happens on KDE. I have reproduced on OpenSuse 11.4 and Kubuntu 12.04. Combo needs to have the "appears-as-list" style set to false.

The problem happens because the internal widgets of the Combo are recreate.

Fixed

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=8a770faaa4942f4e1cde0428ab3348bcc4c88e3f
Comment 2 Silenio Quarti CLA 2012-08-31 12:38:43 EDT
*** Bug 358240 has been marked as a duplicate of this bug. ***
Comment 3 Silenio Quarti CLA 2012-08-31 13:02:46 EDT
*** Bug 360776 has been marked as a duplicate of this bug. ***
Comment 4 Silenio Quarti CLA 2012-08-31 13:06:31 EDT
*** Bug 317763 has been marked as a duplicate of this bug. ***
Comment 5 Silenio Quarti CLA 2012-08-31 13:35:06 EDT
*** Bug 356199 has been marked as a duplicate of this bug. ***
Comment 6 Silenio Quarti CLA 2012-08-31 13:37:04 EDT
*** Bug 361513 has been marked as a duplicate of this bug. ***