Bug 1824610
Summary: | [wayland] 3. and 4. spice display does not react to mouse interaction | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Radek Duda <rduda> | ||||||||||
Component: | spice-vdagent | Assignee: | Julien Ropé <jrope> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | SPICE QE bug list <spice-qe-bugs> | ||||||||||
Severity: | high | Docs Contact: | |||||||||||
Priority: | high | ||||||||||||
Version: | --- | CC: | jrope, mtessun, tpelka, uril, victortoso | ||||||||||
Target Milestone: | rc | Keywords: | Regression, Triaged | ||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | spice-vdagent-0.20.0-3.el8 | Doc Type: | If docs needed, set a value | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2021-05-18 15:30:21 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: | 1806601 | ||||||||||||
Attachments: |
|
Description
Radek Duda
2020-04-16 11:11:01 UTC
Created attachment 1679318 [details]
journal log from guest VM
Client connected with remote-viewer and activated 'Display 3'
Created attachment 1679357 [details]
--spice-debug --debug
> (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? 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. 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'. 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
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. Provided a fix for this with the following commits: https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/28 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 |