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 1543538 - Resize remote-viewer's window causes change to 32 bits color depth in Win7, 16bit color depth guest
Summary: Resize remote-viewer's window causes change to 32 bits color depth in Win7, 1...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-gtk
Version: 7.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Default Assignee for SPICE Bugs
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks: 1350853 1543881
TreeView+ depends on / blocked
 
Reported: 2018-02-08 16:46 UTC by Radek Duda
Modified: 2018-12-11 11:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-11 11:29:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Radek Duda 2018-02-08 16:46:47 UTC
Description of problem:
Undo --spice-color-depth=16 parameter does not reset color depth to 32 bit.

Version-Release number of selected component (if applicable):
client/host:
rhel7.5
spice-gtk3-0.34-3.el7.x86_64
spice-server-0.14.0-2.el7.x86_64
virt-viewer-5.0-10.el7.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.14.x86_64

guest:
Windows7 VM
vdagent 1.1.4.1005
installed RHEV-Tools 4.2.2

How reproducible:
always

Steps to Reproduce:
1.connect to Win7 VM with
 remote-viewer spice://localhost:5900 --spice-color-depth=16
2.reconnect to Win7 VM with
remote-viewer spice://localhost:5900

Actual results:
there is still 16 bit color depth after reconnection

Expected results:
32 bits color depth should be there

Additional info:
if I resize window of remote-viewer, I get 32 bits color depth.
If I reconnect by command:remote-viewer spice://localhost:5900 --spice-color-depth=32, I get 32 color depth as well.


from spice-debugs:

remote-viewer spice://localhost:5900 --spice-color-depth=16:
(remote-viewer:18942): GSpice-DEBUG: channel-main.c:1297 main-1:0: display_config: flags: 8, depth: 16

remote-viewer spice://localhost:5900 --spice-color-depth=32:
(remote-viewer:19503): GSpice-DEBUG: channel-main.c:1297 main-1:0: display_config: flags: 8, depth: 32

remote-viewer spice://localhost:5900
(remote-viewer:19549): GSpice-DEBUG: channel-main.c:1297 main-1:0: display_config: flags: 0, depth: 0

so when flags: 0, depth: 0 is passed, vdagent should check and possibly set color depth as well.

Comment 2 Victor Toso 2018-02-09 12:02:21 UTC
> Steps to Reproduce:
> 1.connect to Win7 VM with
>  remote-viewer spice://localhost:5900 --spice-color-depth=16
> 2.reconnect to Win7 VM with
> remote-viewer spice://localhost:5900
> 
> Actual results:
> there is still 16 bit color depth after reconnection
> 
> Expected results:
> 32 bits color depth should be there

Why is it expected color depth of 32 bits if you previously set it to 16?

The lack of --spice-color-depth argument could mean 'no changes required'.

> Additional info:
> if I resize window of remote-viewer, I get 32 bits color depth.

That's sounds like a bug to me. It should not change unless required.

> If I reconnect by command:remote-viewer spice://localhost:5900
> --spice-color-depth=32, I get 32 color depth as well.

Looks correct.

Comment 3 Radek Duda 2018-02-09 13:25:49 UTC
It seems that you pinpointed the real bug. But on this buggy behaviour depends 'Enable WAN Options' in RHV admin portal. If you debug this in this way (do not modify color-depth if no --spice-dolor-depth is specified), then we might get into trouble when user unchecks 'Enable Wan Options' -> it will not return to 32 bits color-depth. So additional changes in RHV are required.

Comment 4 Victor Toso 2018-12-11 11:29:17 UTC
Looking at this again. AFAIK, we only support setting depth on windows guests and that's up to Windows 7 only.
Windows developer manual states that setting color depth lower than 32 would fail in Windows 8 or up.

> Apps that you design to target Windows 8 and later can no longer query or set display modes that are less than 32 bits per pixel (bpp); these operations will fail.

See: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-changedisplaysettingsexa

The solution for the bug would need extra protocol to receive the current colour depth from guest as we don't receive that at this time.
It is also worth to note that this option was deprecated in v0.34

See: https://gitlab.freedesktop.org/spice/spice-gtk/commit/1a980f3712a81

Closing as WONTFIX


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