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 1242509 - After resizing virt-viewer window bigger than screen size, window gets resized back to screen size, and content scaled down
Summary: After resizing virt-viewer window bigger than screen size, window gets resize...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-viewer
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.2
Assignee: Virt Viewer Maint
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On: 1205804
Blocks: 1289972
TreeView+ depends on / blocked
 
Reported: 2015-07-13 13:06 UTC by Pavel Grunt
Modified: 2019-09-12 08:37 UTC (History)
18 users (show)

Fixed In Version: virt-viewer-2.0-5.el7
Doc Type: Bug Fix
Doc Text:
When viewing a remote SPICE session in windowed mode and resizing the viewer window be wider than the virtual screen, the viewer window was automatically resized to fit the screen width, and the resolution of the remote screen was scaled down. This unintentional behavior has been corrected, and in the described scenario, the both the viewer window and the resolution of its contents stay unchanged
Clone Of: 1205804
: 1289972 (view as bug list)
Environment:
Last Closed: 2015-11-19 07:37:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot-1 (1.36 MB, image/png)
2015-07-24 09:11 UTC, zhoujunqin
no flags Details
screenshot-2 (1.38 MB, image/png)
2015-07-24 09:12 UTC, zhoujunqin
no flags Details
screenshot-3 (1.68 MB, image/png)
2015-07-24 09:13 UTC, zhoujunqin
no flags Details
rhel7.2 guest screenshot when resolution is 1920*1080 (488.45 KB, image/png)
2015-09-06 05:37 UTC, zhoujunqin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2211 0 normal SHIPPED_LIVE virt-viewer, spice-gtk, and libgovirt bug fix and enhancement update 2015-11-19 08:27:40 UTC

Comment 3 zhoujunqin 2015-07-24 09:10:58 UTC
Try to reproduce this issue with old build:
virt-viewer-0.6.0-12.el7.x86_64

steps to reproduce this issue:

1. Prepare a spice guest:
# virsh dumpxml l-vm1

    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0' state='connected'/>
      <alias name='channel1'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
...
    <graphics type='spice' port='5900' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
...
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>

2. Use remote-viewer connect to guest in windowed mode:

# remote-viewer spice://$ip:5900

3. Resize the window to a size bigger than the screen width

My question is: 
Q1: "window" here means virt-viewer display window ?
Q2: How about "screen width" here means here, screen in VM or in host, i think is in VM, but i'm not sure.

So pgrunt, please help give some advices, thanks.

In screentshot-1, then i use mouse to drag virt-viewer window to right side, then i can see virt-viewer window is set back to the guest screen width, and Contents (ie the Date showing) is scaled down to fit into the window, detail please see Screentshot-2.

Then try to verify with new build:
virt-viewer-2.0-5.el7.x86_64

Steps same with above.

Result: After step3,  virt-viewer window can keep where you dragged, and 
Contents are at scale 100%, in Screentshot-3.

Please help me check whether my steps and result are enough to verify this bug, thanks.

Comment 4 zhoujunqin 2015-07-24 09:11:48 UTC
Created attachment 1055662 [details]
screenshot-1

Comment 5 zhoujunqin 2015-07-24 09:12:45 UTC
Created attachment 1055663 [details]
screenshot-2

Comment 6 zhoujunqin 2015-07-24 09:13:48 UTC
Created attachment 1055664 [details]
screenshot-3

Comment 7 Pavel Grunt 2015-07-26 10:26:44 UTC
(In reply to zhoujunqin from comment #3)
> Try to reproduce this issue with old build:
> virt-viewer-0.6.0-12.el7.x86_64
> 
> steps to reproduce this issue:
> 
> 1. Prepare a spice guest:
> # virsh dumpxml l-vm1
> 
>     <channel type='spicevmc'>
>       <target type='virtio' name='com.redhat.spice.0' state='connected'/>
>       <alias name='channel1'/>
>       <address type='virtio-serial' controller='0' bus='0' port='2'/>
>     </channel>
> ...
>     <graphics type='spice' port='5900' autoport='yes' listen='0.0.0.0'>
>       <listen type='address' address='0.0.0.0'/>
>     </graphics>
> ...
>     <video>
>       <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
>       <alias name='video0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
>     </video>
> 
> 2. Use remote-viewer connect to guest in windowed mode:
> 
> # remote-viewer spice://$ip:5900
> 
> 3. Resize the window to a size bigger than the screen width
> 
> My question is: 
> Q1: "window" here means virt-viewer display window ?
yes

> Q2: How about "screen width" here means here, screen in VM or in host, i
> think is in VM, but i'm not sure.

screen of the client's monitor, ie if your monitor resolution is 1024x768 then resize the virt-viewer's window to be bigger than 1024x768

> 
> So pgrunt, please help give some advices, thanks.
> 
> In screentshot-1, then i use mouse to drag virt-viewer window to right side,
> then i can see virt-viewer window is set back to the guest screen width, and
> Contents (ie the Date showing) is scaled down to fit into the window, detail
> please see Screentshot-2.
> 
> Then try to verify with new build:
> virt-viewer-2.0-5.el7.x86_64
> 
> Steps same with above.
> 
> Result: After step3,  virt-viewer window can keep where you dragged, and 
> Contents are at scale 100%, in Screentshot-3.
> 
> Please help me check whether my steps and result are enough to verify this
> bug, thanks.

They are enough to verify, the window should not be scaled down

Comment 8 zhoujunqin 2015-07-27 02:26:23 UTC
Thanks for pgrunt's reply, and according to above comments, move this bug from ON_QA to VERIFIED.

Comment 9 David Jaša 2015-09-02 15:23:44 UTC
This bug might not be fixed, the reproducer is:
0. connect to the rhel7 guest with windowed remote-viewer, make sure that arbitrary resolution works (resize window a bit, guest adusts)
1. enlarge guest size using xrandr within the guest to something large enough to trigger the auto-fit-to-client-window-monitor behaviour, e.g.:
    xrandr --output Virtual-0 --mode 1920x1080
  for r-v window residing on fullhd client monitor

Actual result:
  * guest resolution is adjusted to the resolution specified (good)
  * r-v window gets shrunk to fit the client monitor area (bad)
  * arbitrary resolution stops working until guest is shrunk from within again
     (über bad)
  * r-v takes this zoomed-out guest view as 1:1 so View-Zoom-Normal size won't
     resize the window to a size that'd make guest diplay actually 1:1 (über bad
     as well0

Expected result:
  * resolution is changed as requested from the guest
  * 1:1 is always 1:1
  * arbitrary resolution always works

Setting needinfo on Pavel to investigate

Comment 10 zhoujunqin 2015-09-06 05:36:17 UTC
(In reply to David Jaša from comment #9)
Hi David,
i see you comment and i also tried as you described in Comment 9.
Following is my result:
Before when i reproduce/verify this issue i used a rhel6 guest, this time, i also tried with rhel7 guest.

Package version:
virt-viewer-2.0-6.el7.x86_64

Steps:
Prepare a rhel7.2 guest installed with new tree:
http://download.englab.nay.redhat.com/pub/rhel/rel-eng/RHEL-7.2-20150904.0/compose/Server/x86_64/os/

1. Connect to the rhel7 guest with windowed remote-viewer, make sure that arbitrary resolution works (resize window a bit, guest adjusts)
# remote-viewer spice://127.0.0.1:5901

2. My host monitor resolution is: 1280x1024
Enlarge guest size using xrandr within the guest to something large enough to trigger the auto-fit-to-client-window-monitor behaviour, e.g.:
    xrandr --output Virtual-0 --mode 1920x1080

Result now: I can reproduce following result sometimes.
Please see attachment.

But when i test above steps with a rhel7.1 released guest, i cannot reproduce Comment 9 issue, thanks.

Comment 11 zhoujunqin 2015-09-06 05:37:52 UTC
Created attachment 1070628 [details]
rhel7.2 guest screenshot when resolution is 1920*1080

Comment 14 Pavel Grunt 2015-09-11 07:57:25 UTC
David, 
in the step 0 of your reproducer - are you increasing or decreasing the resolution?

As zhoujunqin confirmed your problem is not reproducible with RHEL-7.1 guests, so I think the bug is not in virt-viewer, but it is the bug 1242847.
Jonathon's fix for it is already in f22 kernel (see bug 1212201), can you reproduce your problem there as well?

Comment 16 errata-xmlrpc 2015-11-19 07:37:44 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.

https://rhn.redhat.com/errata/RHBA-2015-2211.html


Note You need to log in before you can comment on or make changes to this bug.