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 1105528

Summary: Guest can not be resized to expected window size after zoom out
Product: Red Hat Enterprise Linux 6 Reporter: tingting zheng <tzheng>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6CC: cfergeau, codong, dblechte, dyuan, juzhou, lcui, marcandre.lureau, mzhan, rbalakri, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.6.0-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 06:31:27 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
Debug info from virt-viewer
none
Log file of virt-viewer
none
Log file from guest:Xorg.0.log none

Description tingting zheng 2014-06-06 10:46:10 UTC
Created attachment 902855 [details]
Debug info from virt-viewer

Description
Guest can not be resized to expected window size after zoom out

Version:
virt-viewer-0.6.0-5.el6.x86_64
spice-gtk-0.22-1.el6.x86_64
spice-vdagent-0.14.0-3.el6_5.x86_64
xorg-x11-drv-qxl-0.1.1-12.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare a spice guest,configure with spicevmc channel and qxl video,start spice-vdagentd service in guest.

2.Use virt-viewer to launch the guest.

3.Zoom out.

4.Use mouse to drag the virt-viewer window to a large size,it can not be resized to expected size,the window is usually smaller than I the size I dragged.

Actual results:
As description.

Expected results:
Step 4,virt-viewer window can be resized correctly after zoom out.

Additional info:
If I didn't zoom out before reszie window,then guest windows can be reszied correctly.
The issue can not reproduced on virt-viewer-0.5.6-10.el6.x86_64.

Comment 2 Marc-Andre Lureau 2014-06-10 12:44:06 UTC
Unlikely a client bug.

Please try to reproduce with Windows guest, there is no issue there (guest has size resize limits)

Please provide SPICE_DEBUG=1 and guest Xorg.0.log. Most likely this is an issue related to #1076728, QXL_RESIZABLE_SURFACE0, (which could be re-assigned if true)

Comment 3 tingting zheng 2014-06-11 03:19:29 UTC
Created attachment 907473 [details]
Log file of virt-viewer

Comment 4 tingting zheng 2014-06-11 03:20:01 UTC
Created attachment 907474 [details]
Log file from guest:Xorg.0.log

Comment 5 tingting zheng 2014-06-11 03:20:55 UTC
(In reply to Marc-Andre Lureau from comment #2)
> Unlikely a client bug.
> 
> Please try to reproduce with Windows guest, there is no issue there (guest
> has size resize limits)
I tried windows guest,the bug can also be reproduced for windows guest.

> Please provide SPICE_DEBUG=1 and guest Xorg.0.log. Most likely this is an
> issue related to #1076728, QXL_RESIZABLE_SURFACE0, (which could be
> re-assigned if true)

Refer to comment 3 and comment 4.

Comment 6 Marc-Andre Lureau 2014-06-11 17:12:16 UTC
I can reproduce, this is related to a recent change regarding windows not fitting on desktop in virt_viewer_window_resize()

Comment 7 Marc-Andre Lureau 2014-06-11 19:38:58 UTC
patch sent:
https://www.redhat.com/archives/virt-tools-list/2014-June/msg00092.html

Comment 9 tingting zheng 2014-06-18 10:37:25 UTC
Tested the bug with:
spice-gtk-0.22-4.el6.x86_64
virt-viewer-0.6.0-7.el6.x86_64
xorg-x11-drv-qxl-0.1.1-12.el6.x86_64

After zoom out,use mouse to drag the virt-viewer window to a large size,it can be resized to expected size successfully,so move the bug to VERIFIED.

Comment 10 errata-xmlrpc 2014-10-14 06:31:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1379.html