TigerVNC / tigervnc

High performance, multi-platform VNC client and server
https://tigervnc.org
GNU General Public License v2.0
5.09k stars 934 forks source link

Output Corrupts When Resolution Is Very Short #1736

Closed BaconB0T closed 6 months ago

BaconB0T commented 6 months ago

Describe the bug Output becomes corrupted/garbled when making the server's resolution's height too short through a client.

To Reproduce Steps to reproduce the behavior:

  1. Start vncviewer through the systemd service.
  2. Connect using noVNC or TigerVNC clients.
  3. Resize the client window by dragging up from the bottom until very close to the top.
  4. The output becomes corrupted and will not reset until the vncserver is restarted.

Expected behavior The display should be clear and not produce artifacts.

Screenshots If applicable, add screenshots to help explain your problem. What I mean by corrupted/garbled output: image

Client (please complete the following information):

Server (please complete the following information):

Additional context Resizing the client causes the following logs on the server. After making the resolution too small, 0 pixels in / 0 pixels out and (1:-nan ratio) are always present no matter the size I change it to afterwards.

Thu Mar 14 21:59:33 2024
 ComparingUpdateTracker: 944.194 kpixels in / 234.1 kpixels out
 ComparingUpdateTracker: (1:4.03329 ratio)

Thu Mar 14 21:59:34 2024
 ComparingUpdateTracker: 112.8 kpixels in / 112.8 kpixels out
 ComparingUpdateTracker: (1:1 ratio)

Thu Mar 14 21:59:38 2024
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

Checking the resolution with xrandr, it seems to break when resizing and the height goes below 150. I could not get the output to corrupt when resizing just the width.

CendioOssman commented 6 months ago

Thanks for your report.

Historically, that bug has often been the desktop environment crashing/misbehaving.

I assume it is GNOME that's being used? Could you try a different desktop environment and see if the issue still appears?

BaconB0T commented 6 months ago

Thanks for the quick response.

Yes, GNOME 3.28 is the only desktop environment available on RHEL8 (see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/using_the_desktop_environment_in_rhel_8/index).

I'll try getting KDE on RHEL 7 just to confirm it's GNOME

BaconB0T commented 6 months ago

Yup, it's a GNOME problem. Neither KDE nor XFCE have the same problem.

Closing this out since it's evidently not a TigerVNC problem. Thank you for the help!