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

Bug 486064

Summary: [GTK3.20] GTK style context warning spam in console
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: rdowdall
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 474628    

Description Eric Williams CLA 2016-01-18 15:27:12 EST
Running any Eclipse/SWT app under Wayland seems to result in numerous warnings about GtkStyleContext for GtkWindow:

(SWT:4764): Gtk-WARNING **: State 0 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

(SWT:4764): Gtk-WARNING **: State 0 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

(SWT:4764): Gtk-WARNING **: State 4 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

(SWT:4764): Gtk-WARNING **: State 1 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

(SWT:4764): Gtk-WARNING **: State 4 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

(SWT:4764): Gtk-WARNING **: State 8 for GtkWindow 0x7fa488568330 doesn't match state 128 set via gtk_style_context_set_state ()

This is reproducible on GTK3.19.5 (dev branch) which means it will probably happen on GTK3.20.
Comment 1 Rodney Dowdall CLA 2016-01-22 22:03:09 EST
Found a similar bug report in the Webkit bug list:

https://bugs.webkit.org/show_bug.cgi?id=151520

There is a patch submitted there that can probably be used as inspiration.
Comment 2 Eric Williams CLA 2016-02-02 15:20:59 EST
Changing this to a GTK3.20 bug, as it is reproducible on X11 and not only Wayland.
Comment 3 Alexander Kurtakov CLA 2016-04-11 09:49:10 EDT
Isn't this bug fixed ? I haven't seen this in the log for quite some time.
Comment 4 Eric Williams CLA 2016-04-11 18:47:55 EDT
(In reply to Alexander Kurtakov from comment #3)
> Isn't this bug fixed ? I haven't seen this in the log for quite some time.

Yes it's fixed. There is other spam from gadget/sizing machinery but those are separate bugs which I'll file later.