Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 517147 (swtWaylandSplashScreenInWrongPlace) - [GTK3] [Wayland] Splash screen starts out in the wrong place, changes image when progress bar starts (invisible)
Summary: [GTK3] [Wayland] Splash screen starts out in the wrong place, changes image w...
Status: CLOSED WORKSFORME
Alias: swtWaylandSplashScreenInWrongPlace
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, triaged
: swtWaylandJavadocToolTipsMissplaced (view as bug list)
Depends on:
Blocks: 535260
  Show dependency tree
 
Reported: 2017-05-23 13:26 EDT by Browser Ia CLA
Modified: 2018-12-14 13:36 EST (History)
6 users (show)

See Also:


Attachments
Splash screen initial startup in wrong place, but looks fine (2.58 MB, image/png)
2017-05-23 13:26 EDT, Browser Ia CLA
no flags Details
Splash screen after progress bar is introduced...where is it? and the rest of the splash? (2.51 MB, image/png)
2017-05-23 13:27 EDT, Browser Ia CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Browser Ia CLA 2017-05-23 13:26:40 EDT
Created attachment 268536 [details]
Splash screen initial startup in wrong place, but looks fine

The splash screen starts off in the upper left hand corner instead of the center of the screen, initially, but otherwise looks okay. When the progress bar is added to the dialog, the dialog moves down and to the right about 15-20%, and the background seems to be stretched until it is almost entirely off the dialog (the progress bar is never visible) - see the attached screen shots.

I expect to see the splash screen start up in the correct place and remain there, with the same background for the duration. I expect to be able to actually see the progress bar when it is added to the dialog.

OS: Fedora 25 64 bit
DE: GNOME 3.22.2
Display resolution: 3200 x 1800
Theme: Dark
Color and Font theme: Default
Eclipse: 4.7.0 M7

Note: switching to GTK2 by exporting the environment variable SWT_GTK3=0 causes the issue to disappear (the splash screen renders "normally", in the right place, and doesn't change appearance when the progress bar is introduced), so this seems to be a GTK3 issue.
Comment 1 Browser Ia CLA 2017-05-23 13:27:44 EDT
Created attachment 268537 [details]
Splash screen after progress bar is introduced...where is it? and the rest of the splash?
Comment 2 Andrey Loskutov CLA 2017-05-24 05:15:47 EDT
Have you tried 4.6.3, and is this working there?
Comment 3 Browser Ia CLA 2017-05-24 14:59:16 EDT
(In reply to Andrey Loskutov from comment #2)
> Have you tried 4.6.3, and is this working there?

Yes, 4.6.3 behaves exactly the same way. Even when disabling GTK3.
Comment 4 Andrey Loskutov CLA 2017-05-24 15:28:16 EDT
So it is not a regression in 4.7
Comment 5 Ian Pun CLA 2017-05-24 16:02:31 EDT
Hi Bowser,

The position of the splash screen is actually caused by how Wayland has removed global coordinates publically. The reason why it is on the top left of the screen is that it is where the compositor decided to spawn it. I've spoken with the Wayland team and they have yet to confirm that a splash screen type of scenario will ever be supported.
Comment 6 Browser Ia CLA 2017-06-12 19:59:16 EDT
(In reply to Ian Pun from comment #5)
> Hi Bowser,
> 
> The position of the splash screen is actually caused by how Wayland has
> removed global coordinates publically. The reason why it is on the top left
> of the screen is that it is where the compositor decided to spawn it. I've
> spoken with the Wayland team and they have yet to confirm that a splash
> screen type of scenario will ever be supported.

Ok, that sounds like a cause for the initial position, but why is the splash screen redrawn "too large" when the progress bar shows up?
Comment 7 Browser Ia CLA 2017-06-12 20:01:36 EDT
And why is the progress bar never visible?
Comment 8 Ian Pun CLA 2017-06-13 11:08:35 EDT
(In reply to Browser Ia from comment #6)
> Ok, that sounds like a cause for the initial position, but why is the splash
> screen redrawn "too large" when the progress bar shows up?
> And why is the progress bar never visible?

Odd enough I am not having this issue on my builds. The redrawn splash screen after selecting the workspace is in the same position as the first time it comes up. I believe it might have to do with your display resolution, but I am not entirely sure at this point.
Comment 9 Leo Ufimtsev CLA 2017-06-14 17:55:43 EDT
There are a number of issues with Eclipse on Wayland at the moment. 
See:
Bug 516841 – [Wayland] Improve support for Wayland in 4.8

We're aware of the splash screen business, but we don't actually have a bug to track it yet, so we can use this bug to track it I guess.

In the mean time you could run eclipse in x11:
export GDK_BACKEND=x11
./eclipse
Comment 10 Eric Williams CLA 2018-01-02 11:04:29 EST
*** Bug 526686 has been marked as a duplicate of this bug. ***
Comment 11 Browser Ia CLA 2018-05-14 08:14:54 EDT
See also comment #1 in Bug 514151.
Comment 12 Sravan Kumar Lakkimsetti CLA 2018-05-14 08:20:38 EDT
There was a rewrite of hidpi support for GTK3 in 4.8 M7. Do you see the progress bar issue in 4.8 M7?
Comment 13 Eric Williams CLA 2018-12-14 13:36:24 EST
No response in awhile and the HiDPI stack has been updated greatly since Oxygen. Please reopen this ticket if the issue reproduces on 4.10 with GTK3.22/24.