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 1824610 - [wayland] 3. and 4. spice display does not react to mouse interaction
Summary: [wayland] 3. and 4. spice display does not react to mouse interaction
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: spice-vdagent
Version: ---
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Julien Ropé
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks: 1806601
TreeView+ depends on / blocked
 
Reported: 2020-04-16 11:11 UTC by Radek Duda
Modified: 2021-05-18 15:30 UTC (History)
5 users (show)

Fixed In Version: spice-vdagent-0.20.0-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:30:21 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
journal log from guest VM (23.50 KB, text/plain)
2020-04-16 12:04 UTC, Radek Duda
no flags Details
--spice-debug --debug (88.26 KB, text/plain)
2020-04-16 12:29 UTC, Radek Duda
no flags Details
spice-server G_MESSAGES_DEBUG=all log (rhel82 guest) (49.73 KB, text/plain)
2020-05-06 11:26 UTC, Radek Duda
no flags Details
spice-server G_MESSAGES_DEBUG=all log (rhel81 guest) (49.52 KB, text/plain)
2020-05-06 11:53 UTC, Radek Duda
no flags Details

Description Radek Duda 2020-04-16 11:11:01 UTC
Description of problem:
3. and 4. spice display does not react to mouse interaction

Version-Release number of selected component (if applicable):
performed using rhv-4.4.0-0.31.master.el8ev
client (rhel8.2):
virt-viewer-7.0-9.el8.x86_64
spice-gtk3-0.37-1.el8.x86_64

guest (rhel8.2):
spice-vdagent-0.19.0-3.el8.x86_64
mutter-3.32.2-34.el8.x86_64
systemd-239-29.el8.x86_64
gnome-shell-3.32.2-14.el8.x86_64
xorg-x11-drv-qxl-0.1.5-11.el8.x86_64

host:
OS Version:RHEL - 8.2 - 1.0.el8
OS Description:Red Hat Enterprise Linux 8.2 (Ootpa)
Kernel Version:4.18.0 - 193.el8.x86_64
KVM Version:4.2.0 - 17.module+el8.2.0+6131+4e715f3b
LIBVIRT Version:libvirt-6.0.0-16.module+el8.2.0+6131+4e715f3b
VDSM Version:vdsm-4.40.11-1.el8ev
SPICE Version:0.14.2 - 1.el8

How reproducible:
always


Steps to Reproduce:
1. Run VM
2. Connect to it with remote-viewer
3. Open 3. or 4. display (View->Displays)
4. Try to mouse interact on 3. or 4. display (for example right click to show context menu)

Actual results:
nothing happens

Expected results:
Relevant display show graphics according to mouse interaction.

Additional info:
I cannot reproduce this with 2. display (or first one). I tried 2 RHEL 8.2 VMs with the same result.

This is regression - not reproducible with rhel8.1 guest VM.

Comment 1 Radek Duda 2020-04-16 12:04:44 UTC
Created attachment 1679318 [details]
journal log from guest VM

Client connected with remote-viewer and activated 'Display 3'

Comment 2 Radek Duda 2020-04-16 12:29:59 UTC
Created attachment 1679357 [details]
--spice-debug --debug

Comment 3 Victor Toso 2020-04-16 13:10:38 UTC
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:29.743: creating spice display (#:0)
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:29.743: Insert display 0 0x5577529a4330
> ...
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.491: creating spice display (#:1)
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.491: Insert display 1 0x5577529a4180
> ...
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.492: creating spice display (#:2)
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.492: Insert display 2 0x5577529a1f30
> ...
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.494: creating spice display (#:3)
> (remote-viewer:49469): virt-viewer-DEBUG: 14:28:30.494: Insert display 3 0x5577529a1d80
> ...
> (remote-viewer:49469): GSpice-DEBUG: 14:28:34.944: channel-main.c:1135 main-1:0: sending new monitors config to guest
> (remote-viewer:49469): GSpice-DEBUG: 14:28:34.945: channel-main.c:1152 main-1:0: monitor #0: 1024x768+0+0 @ 32 bpp
> (remote-viewer:49469): GSpice-DEBUG: 14:28:34.945: channel-main.c:1152 main-1:0: monitor #2: 1024x740+1024+0 @ 32 bpp
...
> (remote-viewer:49469): GSpice-DEBUG: 14:28:35.733: channel-display.c:1979 display-2:0: received new monitors config from guest: n: 2/4
> (remote-viewer:49469): GSpice-DEBUG: 14:28:35.733: channel-display.c:1999 display-2:0: monitor id: 0, surface id: 0, +0+0-1024x768
> (remote-viewer:49469): GSpice-DEBUG: 14:28:35.733: channel-display.c:1999 display-2:0: monitor id: 2, surface id: 0, +1024+0-1024x740

Something is off in the client if on resend monitors_config it doesn't send for 4 displays.
Journal logs aren't helpful here, host logs with spice debug enabled could point out some issue there.
Could you also try reproduce connecting to RHEL 7 host with this RHEL 8 client?

Comment 4 Radek Duda 2020-05-06 11:26:02 UTC
Created attachment 1685676 [details]
spice-server G_MESSAGES_DEBUG=all log (rhel82 guest)

I connected to VM and opened 3. dispay - no mouse interaction there. I suspect it is https://bugzilla.redhat.com/show_bug.cgi?id=1790904, but now mouse interaction can not be seen at all.

Comment 5 Radek Duda 2020-05-06 11:46:15 UTC
Forgot to add. Testing configuration for above log:

client rhel8.2:
virt-viewer-7.0-9.el8.x86_64
spice-gtk3-0.37-1.el8.x86_64

guest rhel8.2:
spice-vdagent-0.19.0-3.el8.x86_64
mesa-dri-drivers-19.3.4-2.el8.x86_64
xorg-x11-drv-qxl-0.1.5-11.el8.x86_64

host rhel8.2:
spice-server-0.14.2-1.el8.x86_64
qemu-kvm-4.2.0-19.module+el8.2.0+6296+6b821950.x86_64
vdsm-4.40.13-1.el8ev.x86_64


This is not reproducible always. Sometimes remote-viewer hangs after closing it with grey canvas stating 'Connecting to graphic server'.

Comment 6 Radek Duda 2020-05-06 11:53:48 UTC
Created attachment 1685680 [details]
spice-server G_MESSAGES_DEBUG=all log (rhel81 guest)

Start RHEL81 VM
Connect with remote-viewer
Open 3. display
try to interact (righ mouse click)

context menu appears - this is ok

Comment 7 Julien Ropé 2020-05-06 12:53:02 UTC
I have reproduced it here.

From my observations: If you log into the VM using the Xorg server (from the login screen, choose "Standard on Xorg"), the problem disapear.

As you mentioned above, I think it is similar to https://bugzilla.redhat.com/show_bug.cgi?id=1790904 : Under Wayland, the Spice vdagent process is unable to properly match SPICE display IDs to XWayland IDs. The agent is then "guessing", but it requires the IDs to be consecutive, otherwise they don't match.
Then if you open display #3 and #4 without opening #2, the Ids are messed up for the agent, and it can't properly use the mouse coordinates.

Comment 9 Julien Ropé 2020-11-19 14:47:36 UTC
Provided a fix for this with the following commits: https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/28

Comment 18 errata-xmlrpc 2021-05-18 15:30:21 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: spice-vdagent security and bug fix 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-2021:1791


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