Bug 845517

Summary: [remote-viever] Zooming in beyond normal size with vdagent on guest is broken
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Jamrisko <tjamrisk>
Component: virt-viewerAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: cfergeau, codong, cwei, dblechte, dyuan, lmiksik, mjenner, mzhan, tjamrisk, tzheng, virt-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.5.7-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 856678 (view as bug list) Environment:
Last Closed: 2015-03-09 11:30:19 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:
Bug Depends On:    
Bug Blocks: 856678    
Attachments:
Description Flags
spice debug log file of virt-viewer
none
The original resolution of the guest.
none
The resolution of the guest after zoom in the first time
none
The resolution of the guest after zoom in the second time none

Description Tomas Jamrisko 2012-08-03 09:48:59 UTC
Description of problem:

Connecting to a VM with vdagent running and trying to zoom in beyoned normal size results in a frantic behaviour where the window tries to resize itself, and vdagent tries to fit the new window size. After a few iterations  virt-viewer window ends up smaller, and vdagent wins by keeping 1:1 pixel ratio

Version-Release number of selected component (if applicable):
virt-viewer-0.5.3-1.el7.x86_64
virt-viewer-0.5.3-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Connect to a VM with vdagent
2. Zoom In
  
Actual results:
(see description)

Expected results:

Virt-viewer windows increases its size, VM retains its original resolution

Comment 3 Christophe Fergeau 2013-11-04 10:42:29 UTC
Parent bug (rhbz#856678) was fixed upstream and VERIFIED in rhel6.

Comment 5 tingting zheng 2013-11-07 14:02:32 UTC
Tested with:
Host:
libvirt-1.1.1-11.el7.x86_64
virt-viewer-0.5.7-2.el7.x86_64
spice-gtk-0.20-6.el7.x86_64
spice-vdagent-0.14.0-5.el7.x86_64
spice-gtk3-0.20-6.el7.x86_64
spice-server-0.12.4-3.el7.x86_64
spice-glib-0.20-6.el7.x86_64

Guest:rhel6.5
spice-vdagent-0.14.0-2.el6.x86_64


Steps:
1. Install a RHEL6.5 guest with gnome.
2. Make sure guest has spice+qxl graphic devices and spicevmc channel exists.
3. Start the guest and make sure spice-vdagentd service is running in guest.
4. Run virt-viewer $guestname.
5. The default resolution of the guest is 1272*720.
6. Zoom In,then the resolution become 1152*720.
7. Zoon In again,the resolution changed again:1056*720.

Step 6 and step 7 shows the bug is still not fixed,so move the bug back to ASSIGNED.

Comment 6 Marc-Andre Lureau 2013-12-12 14:36:31 UTC
(In reply to tingting zheng from comment #5)
> Steps:
> 1. Install a RHEL6.5 guest with gnome.
> 2. Make sure guest has spice+qxl graphic devices and spicevmc channel exists.
> 3. Start the guest and make sure spice-vdagentd service is running in guest.
> 4. Run virt-viewer $guestname.
> 5. The default resolution of the guest is 1272*720.
> 6. Zoom In,then the resolution become 1152*720.
> 7. Zoon In again,the resolution changed again:1056*720.
> 
> Step 6 and step 7 shows the bug is still not fixed,so move the bug back to
> ASSIGNED.

I can't reproduce with those instructions using virt-viewer-0.5.7-2.el7.x86_64 and 6.5 guest. Please verify.

Notice that mutter/gnome-shell prevents from growing the window outside the workspace. You have to have the window already partially outside for it to grow larger.

Comment 7 tingting zheng 2013-12-16 05:59:30 UTC
(In reply to Marc-Andre Lureau from comment #6)
> (In reply to tingting zheng from comment #5)
> > Steps:
> > 1. Install a RHEL6.5 guest with gnome.
> > 2. Make sure guest has spice+qxl graphic devices and spicevmc channel exists.
> > 3. Start the guest and make sure spice-vdagentd service is running in guest.
> > 4. Run virt-viewer $guestname.
> > 5. The default resolution of the guest is 1272*720.
> > 6. Zoom In,then the resolution become 1152*720.
> > 7. Zoon In again,the resolution changed again:1056*720.
> > 
> > Step 6 and step 7 shows the bug is still not fixed,so move the bug back to
> > ASSIGNED.
> 
> I can't reproduce with those instructions using
> virt-viewer-0.5.7-2.el7.x86_64 and 6.5 guest. Please verify.
> 
> Notice that mutter/gnome-shell prevents from growing the window outside the
> workspace. You have to have the window already partially outside for it to
> grow larger.

I tried with virt-viewer-0.5.7-2.el7.x86_64 and rhel 6.5 guest,the bug can still be reproduced.

Comment 8 Marc-Andre Lureau 2013-12-16 10:17:33 UTC
(In reply to tingting zheng from comment #7)
> > I can't reproduce with those instructions using
> > virt-viewer-0.5.7-2.el7.x86_64 and 6.5 guest. Please verify.
> > 
> > Notice that mutter/gnome-shell prevents from growing the window outside the
> > workspace. You have to have the window already partially outside for it to
> > grow larger.
> 
> I tried with virt-viewer-0.5.7-2.el7.x86_64 and rhel 6.5 guest,the bug can
> still be reproduced.

As I can't reproduce,
please provide a recording of the desktop exhibiting the bug.

thanks

Comment 9 Tomas Jamrisko 2013-12-16 10:45:11 UTC
Will record if this doesn't help. 

the difference between behaviour of 0.5.6-8.el6 and 0.5.7-2.el7 while zooming in is, that on rhel6 the window keeps on increasing its size indefinitely, whereas on rhel7 the window gets only as large as the desktop. When the size of the window would exceed the resolution of client, the window doesn't get any larger and the guest has its resolution reduced and DPI increased to compensate.

Maybe this is actually intended?

Comment 10 Marc-Andre Lureau 2013-12-16 11:05:11 UTC
Eh ok :) Did you read this?

(In reply to Marc-Andre Lureau from comment #6)
> Notice that mutter/gnome-shell prevents from growing the window outside the
> workspace. You have to have the window already partially outside for it to
> grow larger.


This will grow:

              +------------------------+
              | display                |
              |                        |
              |       +----------------------+
              |       | virt-viewer    |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              +-------|----------------+     |
                      |                      |
                      +----------------------+

This won't:



              +------------------------+
              |  display               |
              |                        |
              |   +------------------+ |
              |   | vv               | |
              |   |                  | |
              |   |                  | |
              |   |                  | |
              |   |                  | |
              |   |                  | |
              |   +------------------+ |
              +------------------------+

Comment 11 Tomas Jamrisko 2013-12-16 12:01:33 UTC
I didn't :). 

In that case this is most likely a notabug.

Comment 12 tingting zheng 2013-12-17 03:01:58 UTC
Created attachment 837529 [details]
spice debug log file of virt-viewer

I can still reproduce this issue,when zoom in,the resolution of guest will changed,attached the log file.

Comment 13 Marc-Andre Lureau 2013-12-17 09:58:46 UTC
(In reply to tingting zheng from comment #12)
> Created attachment 837529 [details]
> spice debug log file of virt-viewer
> 
> I can still reproduce this issue,when zoom in,the resolution of guest will
> changed,attached the log file.

please provide a video / screencast recording of the desktop exhibiting the bug.

Comment 15 tingting zheng 2013-12-18 03:01:34 UTC
Created attachment 838082 [details]
The original resolution of the guest.

Comment 16 tingting zheng 2013-12-18 03:04:23 UTC
Created attachment 838083 [details]
The resolution of the guest after zoom in the first time

Comment 17 tingting zheng 2013-12-18 03:06:42 UTC
Created attachment 838086 [details]
The resolution of the guest after zoom in the second time

Comment 18 tingting zheng 2014-01-06 10:33:59 UTC
Retested the issue with:
virt-viewer-0.5.7-3.el7.x86_64

When I move the window out of screen then resize,most times resolution will keeep the same,however,when I set original screen as 1024*768 or similar resolution,the resolution will change when zoom in.

Comment 20 Marc-Andre Lureau 2014-07-17 11:29:32 UTC
please verify with new release of virt-viewer-0.6.0-1.el7, and take Comment #10 into account. It works for me, as described.

Comment 21 CongDong 2014-07-23 07:32:42 UTC
I can reproduce with virt-viewer-0.5.7-3.el7.x86_64

Steps:
1. start guest and open with virt-viewer
# virsh start $vm
# virt-viewer $vm
2. set guest's resolution to 1024*768
3. move the window out the screen like this
              +------------------------+
              | display                |
              |                        |
              |       +----------------------+
              |       | virt-viewer    |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              |       |                |     |
              +-------|----------------+     |
                      |                      |
                      +----------------------+
4. View -> zoom -> zoom in several times

Result:
The size of the window changes big, and resolution is changed.

VERIFIED with: virt-viewer-0.6.0-1.el7.x86_64

Step is same with above.

Result:
The size is zoomed, but resolution is not changed.

As the result, set to VERIFIED.