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

Bug 427843

Summary: [GTK/Linux] NPE when opening some Form editor on GTK3
Product: [Eclipse Project] Platform Reporter: Snjezana Peco <snjezana.peco>
Component: UIAssignee: Paul Webster <pwebster>
Status: VERIFIED FIXED QA Contact: Paul Webster <pwebster>
Severity: normal    
Priority: P3 CC: alkazako
Version: 4.4   
Target Milestone: 4.4 M6   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
A patch none

Description Snjezana Peco CLA 2014-02-10 16:07:43 EST
The issue only happens on Linux GTK3.
I have tested Luna 4.4M5.

Steps to reproduce:

Try to run a Form editor that configures a header (pom.xml, Mylyn New Task editor, JBoss Tools Central, for instance).
You will get an error log as described in https://issues.jboss.org/browse/JBIDE-16501
The form heading widget is painted before configuring.
The issue doesn't happen when using Plug-in Manifest Editor 

Attached is a patch.
Comment 1 Snjezana Peco CLA 2014-02-10 16:12:12 EST
Created attachment 239802 [details]
A patch
Comment 2 Paul Webster CLA 2014-02-11 09:14:56 EST
What's happening in GTK3?  Doesn't that make this an SWT bug?

PW
Comment 3 Snjezana Peco CLA 2014-02-11 17:57:45 EST
I think the bug is caused by the way GTK3 fires paint events.
Not sure if it can be fixed in SWT.
I have created a simple fix.
Comment 4 Paul Webster CLA 2014-02-13 09:41:00 EST
I've pushed the change up to https://git.eclipse.org/r/21946

Snjezana, if you have any future changes please push them up to the Gerrit system.

PW
Comment 6 Paul Webster CLA 2014-03-04 12:37:18 EST
In 4.4.0.I20140303-2000

PW