Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphic glitches when resizing Ptyxis #3302

Open
bellegarde-c opened this issue Nov 8, 2024 · 8 comments
Open

Graphic glitches when resizing Ptyxis #3302

bellegarde-c opened this issue Nov 8, 2024 · 8 comments
Labels

Comments

@bellegarde-c
Copy link

xrdp version

0.10.1

Detailed xrdp version, build options

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

Silverblue 40

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorgxrdp

What desktop environment do you use?

No response

Environment xrdp running on

physical machine (intel card)

What's your client?

Remmina/Windows RDP client

Area(s) with issue?

Graphic glitches

Steps to reproduce

When launching Ptyxis in a GNOME Shell session (Silverblue41) and resizing terminal, there are many graphic glitches.

xrdp

In this screenshot, there is only one window. (and we can see three headerbar)

✔️ Expected Behavior

No glitch :)

❌ Actual Behavior

Glitches

Anything else?

No response

@matt335672
Copy link
Member

Could be a problem with hardware acceleration.

You say you're using xorgxrdp. That's not the default for Fedora-based systems. Does the same thing happen with the Xvnc backend?

@bellegarde-c
Copy link
Author

Yes, works with xvnc

@matt335672
Copy link
Member

Can you edit /etc/X11/xrdp/xorg.conf and disable glamor by replacing this line:-

   Option "DRMDevice" "/dev/dri/renderD128"

with:-

   Option "DRMDevice" " "

That will prevent xorgxrdp using Glamor, and let us narrow it down a bit.

@bellegarde-c
Copy link
Author

Same issue with Option "DRMDevice" " "

Capture.video.du.2024-11-12.10-20-25.webm

@matt335672
Copy link
Member

Thanks. That rules out hardware acceleration within xrdp itself.

Can you post the contents of /var/log/xrdp.log after connecting? That should give us the connection parameters, and I can try to reproduce this here.

@matt335672
Copy link
Member

Also, please post ~/.xorgxrdp.$DISPLAY.log so we can see what the X server is loading.

@bellegarde-c
Copy link
Author

xorgxrdp.10.log
xrdp.log

@matt335672
Copy link
Member

I can't find any connection info in xrdp.log, but that's fine. Other than that, all looks OK from an xrdp perspective. However, I'm not seeing this on a Silverblue41 VM here.

  • Are you able to post a Windows mstsc.exe ini file so I can try to reproduce this exactly?
  • What do you get for these commands as the affected user:-
    id
    ls -l /dev/dri
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants