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

Bug 315071

Summary: Lot of Gdk-WARNING (invalid X atom)
Product: [Eclipse Project] Platform Reporter: Luca Viggiani <lviggiani>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, lviggiani, remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Luca Viggiani CLA 2010-05-31 09:04:12 EDT
Build Identifier: 3.5.2 (M20100211-1343)

This started occurring in Ubuntu 10.04 (64bit for me) with Java-SWT applications.
It gives a lot of warnings like this:

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 12884901888

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 67108905

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 1278

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 3195455668224

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 8589934592

(BirdEye:8359): Gdk-WARNING **: /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkproperty-x11.c:325 invalid X atom: 17179869184

I'm using swt-3.5.2-gtk-linux-x86_64.zip package downloaded from the official web page and imported/added to build path as a project in the workspace

Reproducible: Always

Steps to Reproduce:
1.Import swt-3.5.2-gtk-linux-x86_64.zip as a project in the WS
2.Create a program which opens a shell
3.run it
Comment 1 Luca Viggiani CLA 2010-06-04 04:03:21 EDT
Hallo,
I've additional information:
The warnings actually occurs when I create a menu bar for my shell... the accused code is:

Menu menuBar = new Menu(shell, SWT.BAR);

here is the complete code:

public class Main {
	public static void main(String[] args) {
		Display.setAppName("testswt");
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setText("test");
		
		
		Menu menuBar = new Menu(shell, SWT.BAR); // comment this to prevent wornings
		
		shell.open();
		
		while (!shell.isDisposed()) {
	    	if (!display.readAndDispatch())
	    		display.sleep();
	    }
		display.dispose();
	}
}

PLEASE HELP!!!
Comment 2 Alexander Kurtakov CLA 2013-12-20 04:48:16 EST
I can not reproduce this with Luna stream. Closing. Please reopen if you still experience it with more details.