Community
Participate
Working Groups
Created attachment 274197 [details] Black bands Eclipse SDK Version: Photon (4.8) Build id: I20180524-0900
See also the first screenshot in bug 534426. Similar vertical black stripes there, though much finer.
Can you please let us know the OS and GTK version details?
Created attachment 274238 [details] Black bands on Ubuntu 18.04 I could reproduce it on Ubuntu 16.04, 18.04 and Debian. Here's the screenshot on Ubuntu 18.04 and the corresponding settings: org.eclipse.swt.internal.deviceZoom=200 org.eclipse.swt.internal.gdk.backend=x11 org.eclipse.swt.internal.gtk.theme=Ambiance org.eclipse.swt.internal.gtk.version=3.22.30
I can reproduce the problem. I am taking this up.
I See this problem in light and dark themes. I don't see this on Classic and High contrast themes
If I use different thesmes I don't see this problem. Problem would be with the way themes work Moving to platform UI for comment
I don't see this with non HDPI, so I believe this is an SWT issue
Created attachment 274272 [details] I see it in light theme as well on ubuntu 18.0.4
Sravan, can you please check if it's a recent regression? I don't remember seeing this issue before.
(In reply to Wim Jongman from comment #8) > Created attachment 274272 [details] > I see it in light theme as well on ubuntu 18.0.4 I can see it in Light theme and Dark theme. I don't see this in Classic and High contrast
Can some one point me the code for the themes? I would like to check the SWT APIs used there
(In reply to Sravan Kumar Lakkimsetti from comment #11) > Can some one point me the code for the themes? I would like to check the SWT > APIs used there See the css files in eclipse.platform.ui/org.eclipse.ui.themes. They define properties and via the CSS engine these properties are applied to the widgets. Best way IMHO to look at CSS issues, is the CSS spy and the CSS scratchpad, which is documented here: http://www.vogella.com/tutorials/Eclipse4CSS/article.html#css-spy Update side for installation: http://download.eclipse.org/e4/snapshots/org.eclipse.e4.tools/latest/
I need some help in reproducing this in pure swt snippet. the snippet should contain a toolbar with its background set using css. I suspect this bug from css handling in GTK3 on X11
(In reply to Sravan Kumar Lakkimsetti from comment #13) > I need some help in reproducing this in pure swt snippet. > > the snippet should contain a toolbar with its background set using css. I > suspect this bug from css handling in GTK3 on X11 Please provide the snippet and I will run it.
New Gerrit change created: https://git.eclipse.org/r/124159
New Gerrit change created: https://git.eclipse.org/r/124160
Gerrit change https://git.eclipse.org/r/124160 was merged to [R4_8_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.releng.git/commit/?id=82b220965b88ab21aed2b06a482f0582e9f72384
Gerrit change https://git.eclipse.org/r/124159 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse.git/commit/?id=38ee7843273735fbae78f17e2bad9bbdf76b2525
I investigated a little bit. I reproduced with the following: - OS: Fedora 28, Gtk3.22 - DPI: 200% dpi (and not in any combination in 100% dpi). - Dark and light (and not on classic). On both Adwaita and Ambiance. I.e, the factors affecting this bug are 200% dpi and Dark/light platform UI theme. I.e, workarounds for now: - use 100% scaling or use 'classic' theme. I haven't bisected yet. Is this a regression or new bug? Anyone know the last working build?
I did a bisect. This is the offending commit: https://git.eclipse.org/r/#/c/123018/ @ Sravan, can you investigate?
Note to self: For testing/reproducing, child eclipse & snippets can have hi-dpi forced via: GDK_SCALE=2 (https://wiki.gnome.org/HowDoI/HiDpi) We have a chicken & egg situation. Either screenshots work but HiDpi+light/dark theme produce black bars. Or no black bars but broken screenshots. I narrowed it down to this guy: Image.java: iit(int, int) { .... // (current code) Working screenshot. Broken hidpi with light/dark theme. // https://git.eclipse.org/r/#/c/123018/2/bundles/org.eclipse.swt/Eclipse+SWT/gtk/org/eclipse/swt/graphics/Image.java surface = GDK.gdk_window_create_similar_surface(GDK.gdk_get_default_root_window(), Cairo.CAIRO_CONTENT_COLOR, width, height); // (previous) Broken screenshot. Working hidpi with light/dark theme. if (GTK.GTK3) { surface = Cairo.cairo_image_surface_create(Cairo.CAIRO_FORMAT_ARGB32, width, height); } else { surface = GDK.gdk_window_create_similar_surface(GDK.gdk_get_default_root_window(), Cairo.CAIRO_CONTENT_COLOR, width, height); } Anyone have any ideas on how to fix?
Snippet365.java, GDK_SCALE=2 can be used to reproduce the issue.
(In reply to Leo Ufimtsev from comment #20) > I did a bisect. This is the offending commit: > https://git.eclipse.org/r/#/c/123018/ > > @ Sravan, can you investigate? This got reverted for now. Closing this for RC4, but Sravan is looking into fix that fixes both issues (see bug 535630 comment 19).
New Gerrit change created: https://git.eclipse.org/r/124241
New Gerrit change created: https://git.eclipse.org/r/124242
Gerrit change https://git.eclipse.org/r/124242 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=760d4189c5271fd829273566b99655a359a7676c
Tested and the patch fixes both issues for me. Dani, should we respin RC4 now ?
(In reply to Alexander Kurtakov from comment #27) > Tested and the patch fixes both issues for me. Dani, should we respin RC4 > now ? RC4 has been declared. But yes, we can respin and produce RC5 (or RC4+).
I tested the latest master. I can confirm that the black bars disappear and screenshots work.
Verified the latest patchset (4). Sravan, please update the README.
New Gerrit change created: https://git.eclipse.org/r/124317
New Gerrit change created: https://git.eclipse.org/r/124318
(In reply to Eclipse Genie from comment #31) > New Gerrit change created: https://git.eclipse.org/r/124317 (In reply to Eclipse Genie from comment #32) > New Gerrit change created: https://git.eclipse.org/r/124318 Updated README with above patches.
Gerrit change https://git.eclipse.org/r/124241 was merged to [R4_8_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d34b12b98ea8c4e4cb1f2b84b13801e4db914e55
Gerrit change https://git.eclipse.org/r/124318 was merged to [R4_8_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.releng.git/commit/?id=048e5c45bc0f47d2be4159d11258a614158d85bc
Gerrit change https://git.eclipse.org/r/124317 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse.git/commit/?id=91feb929009e6414c28688dac9a6f04af45aee40
Merged to 4.8_maintenance
I still see black bands in Eclipse 4.9, although in different places. I've filed Bug 537441.