Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1595712

Summary: high CPU usage of vnc gnome-shell and corrupted vnc screen after resizing vncviewer window to very small
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Hudziec <thudziec>
Component: tigervncAssignee: Jan Grulich <jgrulich>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.6CC: ajax, jgrulich, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-12 11:10:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
video of bug
none
vnc log
none
vncviewer verbose output none

Description Tomas Hudziec 2018-06-27 12:11:57 UTC
Created attachment 1455028 [details]
video of bug

Description of problem:
Gnome-shell in VNC session eats up all cpu resources and VNC screen is corrupted after resizing vncviewer window to very small.

Version-Release number of selected component (if applicable):
tigervnc-1.8.0-7.el7.x86_64
gnome-shell-3.28.2-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. $ vncserver :1
2. $ vncviewer :1
3. resize vncviewer window to smallest possible
(4. resize vncviewer window to other sizes)

Actual results:
corrupted vnc screen and high cpu usage caused by gnome-shell

Expected results:
vnc screen should resize and look correct, no high cpu usage should be observed

Additional info:
Closing and starting vncviewer again does not help. Killing gnome-shell for vnc session helps, it restarts itself and works correctly afterwards.

Comment 2 Jan Grulich 2018-06-27 12:30:27 UTC
It might be a gnome-shell issue. Was this working before in RHEL 7.5?

Comment 3 Tomas Hudziec 2018-06-27 12:55:57 UTC
Yes, it is working in RHEL 7.5 with gnome-session-3.26.1-10.el7.x86_64.

Comment 4 Jan Grulich 2018-06-27 13:07:20 UTC
Gnome was rebased in RHEL 7.6, still could be a cause as you say that the high cpu usage is caused by gnome-shell. In tigervnc there is nothing what changed between RHEL 7.5 and RHEL 7.6, just support for Xorg 1.20. Is there anything in vnc log?

Comment 5 Tomas Hudziec 2018-06-27 14:01:07 UTC
Created attachment 1455053 [details]
vnc log

Nothing really suspicious, only that there are no pixels sent when resizing after hitting bug.

ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)

Comment 6 Tomas Hudziec 2018-06-27 14:06:06 UTC
Created attachment 1455054 [details]
vncviewer verbose output

Most verbose output of vncviewer does not show anything suspicious either.

Comment 7 Jan Grulich 2018-06-28 05:14:30 UTC
Do you have a chance to test it on RHEL 7.5, just with Xorg and tigervnc updated so we are sure this is a regression in tigervnc/Xorg?

Comment 8 Tomas Hudziec 2018-06-28 13:46:29 UTC
Yes, I tested it on RHEL 7.5 with just Xorg and tigervnc updated and the bug occurs also there.

xorg-x11-server-Xorg-1.20.0-0.3.el7.x86_64

tigervnc*-1.8.0-7.el7.x86_64

gnome-shell-3.26.2-5.el7.x86_64
gnome-session-3.26.1-11.el7.x86_64
gnome-desktop3-3.22.2-2.el7.x86_64

Comment 9 Jan Grulich 2018-06-29 12:02:34 UTC
I managed to reproduce on RHEL 7.5 with tigervnc and xorg-x11-server updated. I'll try to investigate this further.

Comment 10 Jan Grulich 2018-07-09 09:57:10 UTC
@ajax, do you have any idea whether this could be related to new Xorg? The only thing that changed is the patch we carry to suport Xorg 1.20 in tigervnc, but there is nothing I can think of what could break this. Major difference is the new Xorg 1.20. I checked all resize calls and hooks related to this and size is propagated properly. Is there anything I can provide you to nail down this issue?

Comment 11 Jan Grulich 2020-02-12 11:10:26 UTC
This is reproducible only when the window gets really small which is not a common thing to do. I'm closing this now as only critical issues will be fixed in this phase of RHEL 7 and we don't know whether the issue is in Xorg or Tigervnc.