neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.77k stars 1.73k forks source link

Window/menu rendering issues with Gnome/Fedora40. #3226

Closed arthur-guru closed 2 months ago

arthur-guru commented 2 months ago

xrdp version

0.10.1

Detailed xrdp version, build options

$ xrdp --version
xrdp 0.10.1
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2024 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --build=x86_64-redhat-linux-gnu
      --host=x86_64-redhat-linux-gnu
      --program-prefix=
      --disable-dependency-tracking
      --prefix=/usr
      --exec-prefix=/usr
      --bindir=/usr/bin
      --sbindir=/usr/sbin
      --sysconfdir=/etc
      --datadir=/usr/share
      --includedir=/usr/include
      --libdir=/usr/lib64
      --libexecdir=/usr/libexec
      --localstatedir=/var
      --runstatedir=/run
      --sharedstatedir=/var/lib
      --mandir=/usr/share/man
      --infodir=/usr/share/info
      --enable-fuse
      --enable-pixman
      --enable-painter
      --enable-vsock
      --enable-ipv6
      --with-socketdir=/run/xrdp
      --with-imlib2
      build_alias=x86_64-redhat-linux-gnu
      host_alias=x86_64-redhat-linux-gnu
      CC=gcc
      CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
      LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes
      CXX=g++
      CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
      LT_SYS_LIBRARY_PATH=/usr/lib64:
      PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig

  Compiled with OpenSSL 3.2.2 4 Jun 2024

Operating system & version

Fedora release 40 (Forty)

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

Xvnc

What desktop environment do you use?

The remote desktop runs Gnome, the local desktop is Windows based (11 and 7).

Environment xrdp running on

The remote machine is a physical machine using an Nvidia Quadro 2000 graphics card.

What's your client?

Tried on both physical Win11 laptop and virtual Win7 clients. Problem is the same.

Area(s) with issue?

Graphic glitches

Steps to reproduce

It started since refreshing my Fedora baseline to latest (standard x64 repos). Prior to the refresh I was using Fedora 40 with XRDP 0.9.x and Linux Kernel 6.9.x without issues.

✔️ Expected Behavior

No rendering issues.

❌ Actual Behavior

The diagram below shows a screen grab of an xrdp session and in it is a Gnome Terminal with the screen rendered corruptly, however the Gnome background renders correctly (as does the xrdp login screen). I have also right clicked the Gnome desktop to bring up a sub menu which renders correctly too.

image

I get the same rendering issue with almost all Gnome applications like Firefox, Filer, Settings, etc.

If I connect my machine to a physical monitor there are no issues with rendering which makes me think this is an xrdp issue, but I am not sure.

Anything else?

I went through all the Nvidia hoops that apply for my graphics card but the problem remained.

arthur-guru commented 2 months ago

In filling in this bug report one of its prompts made me think to try one last thing.

$ sudo dnf downgrade tigervnc-server-minimal tigervnc-license

It downgraded from version 1.14.0-2 to 1.13.1-12.

I restarted Gnome/xrdp and the rendering problem went away.

Closing ticket (or can someone please close it for me, thanks).