microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.18k stars 305 forks source link

Incomplete GUI for gazebo after scaling #659

Open Freddd13 opened 2 years ago

Freddd13 commented 2 years ago

Environment

Windows build number:  Microsoft Windows NT 10.0.22000.0
Your Distribution version: Ubuntu18.04
Your WSLg version: 1.0.26

Steps to reproduce

My screen is 2560*1440 I have the following config in my .wslconfig:

[system-distro-env]
WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=150

and the following in my .bashrc:

export QT_SCALE_FACTOR=1.5

Install ROS Melodic run gazebo from a terminal

WSL logs:

weston.log

pulseaudio.log

stderr.log

Expected behavior

It should be scaled to 150% fully but there's a dark region invisible.

Actual behavior

image

The dark region can receive mouse event s. It seems more like a display bug?

Freddd13 commented 2 years ago

In fact, I firstly tried SCALE=2, anyway wsl often occurs the following error, besides the display problem:

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
hideyukn88 commented 2 years ago

@Freddd13, thanks for reporting the issue. Basically, if you want to utilize hi-dpi scaling by framework, such as QT, please disable the scaling by WSLg, so try below in .wslgconfig.

[system-distro-env]
WESTON_RDP_DISABLE_HI_DPI_SCALING=false
Freddd13 commented 2 years ago

@hideyukn88 I have tried this, but everything remains the same :(.