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 2222579 - PNG screendump doesn't save screen correctly
Summary: PNG screendump doesn't save screen correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.3
Hardware: All
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Marc-Andre Lureau
QA Contact: Guo, Zhiyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-13 07:39 UTC by smitterl
Modified: 2023-11-07 09:23 UTC (History)
5 users (show)

Fixed In Version: qemu-kvm-8.0.0-8.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:28:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screen graphics comparison: left is screenshot right is actual screen via vnc (300.83 KB, image/png)
2023-07-13 07:39 UTC, smitterl
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src qemu-kvm merge_requests 183 0 None opened ui: Fix pixel colour channel order for PNG screenshots 2023-07-15 12:43:00 UTC
Red Hat Issue Tracker RHELPLAN-162236 0 None None None 2023-07-13 07:41:45 UTC
Red Hat Product Errata RHSA-2023:6368 0 None None None 2023-11-07 08:28:31 UTC

Description smitterl 2023-07-13 07:39:55 UTC
Created attachment 1975542 [details]
Screen graphics comparison: left is screenshot right is actual screen via vnc

Created attachment 1975542 [details]
Screen graphics comparison: left is screenshot right is actual screen via vnc

Description of problem:
When doing a screendump, the colors are not right (s. attachment).

Version-Release number of selected component (if applicable):
qemu-kvm-8.0.0-6.el9.s390x


How reproducible:
100%


Steps to Reproduce:
1. Start a VM with graphics
2. Take a screenshot (e.g. virsh screenshot vm 
3. Compare the screenshot with the actual graphics

Actual results:
Colors are wrong

Expected results:
The view is the same

Additional info:
Zhiyi Guo found this is likely the upstream issue https://gitlab.com/qemu-project/qemu/-/issues/1622 with upstream commit https://gitlab.com/qemu-project/qemu/-/commit/9acb3d7e5202b3e667f12829c8d553f8574d1743
I'll see if this fixes the issue.
Fangge confirmed it reproduces on x86_64

Comment 4 smitterl 2023-07-13 10:00:58 UTC
(In reply to smitterl from comment #0)

> 
> Additional info:
> Zhiyi Guo found this is likely the upstream issue
> https://gitlab.com/qemu-project/qemu/-/issues/1622 with upstream commit
> https://gitlab.com/qemu-project/qemu/-/commit/
> 9acb3d7e5202b3e667f12829c8d553f8574d1743

With latest upstream release 8.0.3 that contains this commit, the output looks good.
> I'll see if this fixes the issue.
> Fangge confirmed it reproduces on x86_64

Comment 5 John Ferlan 2023-07-13 18:26:26 UTC
Marc-Andre - can we get this backported for 9.3.0 please. 

If you'd like to provide thoughts related to a 9.2.0 z-stream please do so. I'm not convinced without proof that this would affect our LPs like OpenShift or OpenStack

Comment 6 Marc-Andre Lureau 2023-07-15 13:10:25 UTC
(In reply to John Ferlan from comment #5)
> If you'd like to provide thoughts related to a 9.2.0 z-stream please do so.
> I'm not convinced without proof that this would affect our LPs like
> OpenShift or OpenStack

It should be as "easy" to backport for 9.2.0 (qemu-kvm-7.2.0-14.el9_2.N ?). Indeed, I am not convinced many users are using the PNG format, and it's not critical either to have bad colors.

Comment 8 Yanan Fu 2023-07-18 11:22:06 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 12 Guo, Zhiyi 2023-08-07 03:00:06 UTC
Verified this issue against qemu-kvm-8.0.0-9.el9.x86_64, screen capture with png format show correct color

Comment 14 errata-xmlrpc 2023-11-07 08:28:05 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 (Moderate: qemu-kvm security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2023:6368


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