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 1540056 - Xwayland reports send_key: assertion 'scancode != 0'
Summary: Xwayland reports send_key: assertion 'scancode != 0'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-gtk
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Default Assignee for SPICE Bugs
QA Contact: SPICE QE bug list
Jana Heves
URL:
Whiteboard:
: 1537525 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-30 07:38 UTC by Tomas Pelka
Modified: 2018-12-03 12:25 UTC (History)
8 users (show)

Fixed In Version: spice-gtk-0.35-1.el7
Doc Type: Known Issue
Doc Text:
Keyboard not working in VM browsed by *remote-viewer* and *virt-viewer* When run inside a Wayland session, *remote-viewer* and *virt-viewer* utilities do not recognize key events in a virtual machine. Moreover, Xwayland reports the following error: send_key: assertion 'scancode != 0'
Clone Of:
Environment:
Last Closed: 2018-12-03 12:25:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1479682 0 unspecified CLOSED Xwayland reports keycode mapping 'unnamed', messes up spice VM keyboard 2021-02-22 00:41:40 UTC

Internal Links: 1479682

Description Tomas Pelka 2018-01-30 07:38:54 UTC
Description of problem:
Key events in VM browsed by remote-viewer/virt-viewer and gnome-boxes most probably too are not recognized when remote-viewer/virt-viewer or gnome-boxes running inside wayland session.

Version-Release number of selected component (if applicable):
spice-gtk3-0.34-3.el7

How reproducible:
100%

Steps to Reproduce:
1. managed to get this reproduces when opening vv file in remote-viewer
2.
3.

Actual results:
lots of (remote-viewer:17111): GSpice-CRITICAL **: send_key: assertion 'scancode != 0' failed

Expected results:
no GSpice-CRITICALs and keyboard should be grabbed

Additional info:

Comment 1 Tomas Pelka 2018-01-30 07:42:37 UTC
I'm not really sure whether this is supported or not. If not please do not close yet we should document and ass to release notes first.

Comment 2 Tomas Pelka 2018-01-30 07:43:06 UTC
I'm not really sure whether this is supported or not. If not please do not close yet we should document and ass to release notes first.

Comment 3 Matěj Cepl 2018-01-30 16:11:36 UTC
Perhaps related are Fedora bug 1512564 and bug 1479682 ?

Comment 4 Olivier Fourdan 2018-02-06 15:05:12 UTC
*** Bug 1537525 has been marked as a duplicate of this bug. ***

Comment 5 Christophe Fergeau 2018-02-14 17:21:15 UTC
(In reply to Tomas Pelka from comment #0)
> Description of problem:
> Key events in VM browsed by remote-viewer/virt-viewer and gnome-boxes most
> probably too are not recognized when remote-viewer/virt-viewer or
> gnome-boxes running inside wayland session.
> 

One note here, remote-viewer/virt-viewer/gnome-boxes can run natively as wayland clients on Fedora, and this issue with keyboard events only happen when they are explicitly run with GDK_BACKEND=x11.
On RHEL7, they always get run through Xwayland, not as native wayland clients?

Comment 10 Victor Toso 2018-05-25 14:30:39 UTC
Patch merged upstream 28e3dc34424f5e5b0441f2341d777ae4362363f0
Thanks Olivier, for the fix.

Comment 11 Victor Toso 2018-06-22 08:23:32 UTC
git tag --contains 28e3dc34424f5e5b0441f2341d777ae4362363f0
v0.35

The fix should be included in the rebase from bug 1562126


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