question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scaling issue on Gnome/Wayland

See original GitHub issue

System information:

  • Operating system: Ubuntu 19.04
  • Window manager: GNOME Shell 3.32.2 (Wayland)
  • DBeaver version: 6.1.5
  • Java version: openjdk version “11.0.4” 2019-07-16

On my system I have 2 monitors:

  • Screen 1 (main) is the laptop HiDPI screen. It has a scale factor of 150%, or else I can kiss my eyes goodbye
  • Screen 2 is an external HDMI monitor: same resolution as Screen 1, but not HiDPI. Scale factor is 100% I use Wayland because it has support for different, non integral, scale factors on different monitors.

Describe the problem you’re observing:

The problem is the same as #3975, which is supposed to have been resolved 8 months ago. When launched from .desktop file (or gnome-terminal, which is started from a desktop file) some elements of the application have a 2x zoom. icon-scale When launched from guake terminal the zoom is correct, but on Screen 2 the menu items are displayed at the height they would have on Screen 1 menu-offset If I try launching with --launcher.GTK_version 2 it just says:

The Dbeaver executable launcher no longer supports running with GTK + 2.x. Continuing using GTK+ 3.x.

Include any warning/errors/backtraces from the logs

When launching from gnome terminal I have some warning which are not there in guake

(DBeaver:31883): Gtk-CRITICAL **: 15:31:27.522: gtk_box_gadget_distribute: assertion ‘size >= 0’ failed in GtkScrollbar

Otherwise the output is the same.

If I go to Installation Information -> Configuration there are some differences. From guake:

org.eclipse.swt.internal.deviceZoom=100 org.eclipse.swt.internal.gdk.backend=x11 GDK_BACKEND=x11 GIO_LAUNCHED_DESKTOP_FILE=~/.config/autostart/guake.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3299

From gnome terminal:

org.eclipse.swt.internal.deviceZoom=200 DESKTOP_AUTOSTART_ID=10dd22b96992b46f39156636987999607000000028310019 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/fdb56996_49f2_4f00_8709_7b3d1d338eec GNOME_TERMINAL_SERVICE=:1.225

There are more differences about “Compare Support”, which is [Active] with guake, [Starting] with terminal/launcher, but I don’t think they are related to the issue.

As you can see, launching from gnome terminal/launcher sets the deviceZoom=200 (plus it doesn’t set the X11 GDK backend, but I’m not sure it should).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:20
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
lapsha38commented, Jan 9, 2022

u also can use workaround like this:

export GDK_BACKEND=x11 dbeaver-ce

profit!

or u can change .desktop file like this: sudo vim ‘/usr/share/applications/dbeaver-ce.desktop’ and change exec line: Exec=env GDK_BACKEND=x11 /usr/share/dbeaver-ce/dbeaver

5reactions
serge-ridercommented, Feb 22, 2020

This is a bug in Eclipse platform. https://bugs.eclipse.org/bugs/show_bug.cgi?id=553486 https://bugs.eclipse.org/bugs/show_bug.cgi?id=549504

We can’t fix it from dbeaver side but I’ll try to work closer with Eclipse team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

External Display Scaling Issue - Gnome 42 and Wayland Used
Specifically, scaling is set at 100% level across BOTH screens, and not the 200% level on my internal display (laptop screen) to be...
Read more >
External Display Scaling Issue - Gnome 42 and Wayland Used
I have the scaling set to 200% on my laptop's internal display, and 100% set on the External Dell Monitor. When I unplug...
Read more >
ubuntu 20.10, Gnome wayland, apps don't scale
I set one monitor to scale 200% (i'd prefer 150%, but i don't see that option :/) 'ubuntu' apps, like settings or terminal...
Read more >
Scaling issues on mixed DPI screens on Wayland Gnome
Firefox scales correctly on the HiDPI monitor, but looks twice as big on the lower DPI monitor. Gnome will correctly scale other GTK...
Read more >
HiDPI - ArchWiki
Note: GTK does not and has no plans to support DPI scaling on all elements except fonts. Therefore, fractional scaling on gnome uses ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found