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

Bug 535738

Summary: Dialog rendering broken on Wayland after requestLayout()
Product: [Eclipse Project] Platform Reporter: Andreas Sewe <sewe>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, Lars.Vogel, wim.jongman
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot illustrating the situation
none
Window is identified as "OpenGL renderer" (screenshot taken under Photon RC2)
none
My configuration
none
Snippet that demonstrates the problem
none
visual result of requestLayout()
none
Additional assertion fail messages when starting snippet
none
Full ubuntu text none

Description Andreas Sewe CLA 2018-06-09 10:45:54 EDT
Created attachment 274411 [details]
Screenshot illustrating the situation

Noticed this testing the Photon RC3 Java EPP package under Ubuntu 8.4 on Wayland:

When clicking "Next Tip" the dialog layout breaks for a short period of time (see screenshot): the tips provider toolbar is too large and the HTML rendering area is misplaced and partly behind the dialog borders.
Comment 1 Wim Jongman CLA 2018-06-10 05:38:35 EDT
I don't see this under

Eclipse IDE for Java Developers
Version: Photon Release Candidate 3 (4.8.0RC3)
Build id: 20180607-0625
OS: Linux, v.4.15.0-22-generic, x86_64 / gtk 3.22.30, WebKit 2.20.2
Java version: 10.0.1
Ubuntu 18.04 LTS
Gnome 3.28.1
Comment 2 Andreas Sewe CLA 2018-06-10 05:51:29 EDT
(In reply to Wim Jongman from comment #1)
> I don't see this under

If it helps, can you please tell me the command lines you used to extract stuff like the gnome, gtk or webkit version?

That being said, I am fundamentally using an Ubuntu 8.4 as well, with two things that may be special: Using "Ubuntu on Wayland" (selected in the gdm login screen) and running on an 4K display with 200% zoom.
Comment 3 Wim Jongman CLA 2018-06-10 06:08:19 EDT
(In reply to Andreas Sewe from comment #2)
> (In reply to Wim Jongman from comment #1)
> > I don't see this under
> 
> If it helps, can you please tell me the command lines you used to extract
> stuff like the gnome, gtk or webkit version?
> 
> That being said, I am fundamentally using an Ubuntu 8.4 as well, with two
> things that may be special: Using "Ubuntu on Wayland" (selected in the gdm
> login screen) and running on an 4K display with 200% zoom

Yes, when I run on Wayland I also see the rendering problem. 

However, I don't see the number of "unknown" processes that you describe in the other bugs. 

Did this work for you in RC2 in Wayland?
Comment 4 Andreas Sewe CLA 2018-06-10 06:41:45 EDT
Created attachment 274420 [details]
Window is identified as "OpenGL renderer" (screenshot taken under Photon RC2)

(In reply to Wim Jongman from comment #3)
> (In reply to Andreas Sewe from comment #2)
> > (In reply to Wim Jongman from comment #1)
> > > I don't see this under
> > 
> > If it helps, can you please tell me the command lines you used to extract
> > stuff like the gnome, gtk or webkit version?
> > 
> > That being said, I am fundamentally using an Ubuntu 8.4 as well, with two
> > things that may be special: Using "Ubuntu on Wayland" (selected in the gdm
> > login screen) and running on an 4K display with 200% zoom
> 
> Yes, when I run on Wayland I also see the rendering problem. 

Glad you could reproduce.
 
> However, I don't see the number of "unknown" processes that you describe in
> the other bugs. 
> 
> Did this work for you in RC2 in Wayland?

No, it occurs in RC2 as well. As an additional hint, the process's window is identified as "OpenGL Renderer" (see screenshot).

Also, I noticed this on the Linux console, outputed by the Eclipse process:

Error sending IPC message: Broken pipe
Error sending IPC message: Broken pipe
Comment 5 Wim Jongman CLA 2018-06-10 07:13:27 EDT
(In reply to Andreas Sewe from comment #2)

> That being said, I am fundamentally using an Ubuntu 8.4 as well, with two

Just to be sure, when you say 8.4 you mean 18.4 right?
Comment 6 Andreas Sewe CLA 2018-06-10 07:24:54 EDT
(In reply to Wim Jongman from comment #5)
> (In reply to Andreas Sewe from comment #2)
> 
> > That being said, I am fundamentally using an Ubuntu 8.4 as well, with two
> 
> Just to be sure, when you say 8.4 you mean 18.4 right?

Yes, of course. The latest and greatest. ;-)
Comment 7 Wim Jongman CLA 2018-06-11 11:22:30 EDT
requestLayout() breaks rendering. Run the attached snippet in Wayland to see the render issues.


Eclipse IDE for Java Developers
Version: Photon Release Candidate 3 (4.8.0RC3)
Build id: 20180607-0625
OS: Linux, v.4.15.0-22-generic, x86_64 / gtk 3.22.30, WebKit 2.20.2
Java version: 10.0.1
Comment 8 Wim Jongman CLA 2018-06-11 11:23:15 EDT
Created attachment 274429 [details]
My configuration
Comment 9 Wim Jongman CLA 2018-06-11 11:23:59 EDT
Created attachment 274430 [details]
Snippet that demonstrates the problem
Comment 10 Lars Vogel CLA 2018-06-11 11:26:07 EDT
(In reply to Wim Jongman from comment #9)
> Created attachment 274430 [details]
> Snippet that demonstrates the problem

Eric, can you have a look?
Comment 11 Wim Jongman CLA 2018-06-11 11:26:07 EDT
Created attachment 274431 [details]
visual result of requestLayout()
Comment 12 Wim Jongman CLA 2018-06-11 11:36:37 EDT
Created attachment 274432 [details]
Additional assertion fail messages when starting snippet
Comment 13 Wim Jongman CLA 2018-06-11 11:42:04 EDT
Created attachment 274433 [details]
Full ubuntu text
Comment 14 Eric Williams CLA 2018-06-11 12:03:41 EDT
(In reply to Lars Vogel from comment #10)
> (In reply to Wim Jongman from comment #9)
> > Created attachment 274430 [details]
> > Snippet that demonstrates the problem
> 
> Eric, can you have a look?

Yes, this is an ongoing problem on Wayland.

*** This bug has been marked as a duplicate of bug 535075 ***