-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(virt-manager:75950): GSpice-CRITICAL **: 13:08:42.543: send_key: assertion 'scancode != 0' failed #135
Comments
I can reproduce this on a |
I also am seeing this error. MacBookPro11,3, 10.14.6 I also uninstalled and reinstalled:
This error happens right when running virt-manager:
|
This is an issue in upstream gtk. It's fixed in the 3.24 branch (but not tagged for release) by https://gitlab.gnome.org/GNOME/gtk/commit/ff21730d8e582ec7e60950771c4f8e4f9bbf82a1 commit ff21730d8e582ec7e60950771c4f8e4f9bbf82a1
That patch needs to be pulled into the gtk+3 Homebrew project and gtk-spice needs to be rebuilt using that. I've done this locally and it works again. |
Sorry, spice-gtk. The gist is that it has behavior around keyboard input that depends on that #define existing. Without it, the keymap isn't referenced and you get the scancode !=0 assertion failure: https://gitlab.freedesktop.org/spice/spice-gtk/blob/master/src/vncdisplaykeymap.c#L211 |
I've put together a pull request to fix this in Homebrew: If you want to fix this yourself locally, grab https://github.com/Homebrew/homebrew-core/blob/847a22f5008f297f584497f7166b2e31333831af/Formula/gtk%2B3.rb from that PR and do: ... and you should be set. This isn't a bug in virt-manager (or the packaging of it for Homebrew), so you don't need to rebuild/reinstall. |
Unfortunately this fix not help. After reinstalling gtk+3.rb, (remote-viewer:26124): virt-viewer-DEBUG: 00:24:24.980: Opening display to /Users/set_ws/Downloads/console.vv (remote-viewer:26124): virt-viewer-DEBUG: 00:24:24.981: Guest (null) has a spice display (remote-viewer:26124): vnc-keymap-WARNING **: 00:24:25.796: Unsupported GDK Windowing platform.
(remote-viewer:26124): virt-viewer-DEBUG: 00:24:25.798: Allocated 1920x1080 (remote-viewer:26124): GSpice-WARNING **: 00:24:27.154: Warning no automount-inhibiting implementation available (remote-viewer:26124): GSpice-CRITICAL **: 00:24:31.927: send_key: assertion 'scancode != 0' failed (remote-viewer:26124): GSpice-CRITICAL **: 00:24:32.084: send_key: assertion 'scancode != 0' failed |
I don't know enough about homebrew to know why it wanted to replace gtk+3 after you built it yourself. The fix in GTK+ is the fix for this issue. I've been using it since shortly before posting it here. The log above just shows that the fix isn't applied, which is no surprise if it wanted to use the downloaded gtk+3 again. |
I download gtk+3.rb using link above and try to apply 2 steps again. Maybe I'm doing something wrong?
|
+1 |
I'm having the same issue as AleksovAnry and wondering if I'm applying the patch correctly. How do I apply it? |
This patch referenced by @jeffmahoney was merged into gtk+3 and included in 3.24.11 which is now available in homebrew-core. There shouldn't be a need to rebuild gtk+3 anymore. |
Patch not helps :( I reinstall ALL and it still returns error Info:
|
I just tested again, the current I've opened Homebrew/homebrew-core#43961 to try to correct this. |
|
Hello,
I succesfully installed virt-manager and virt-viewer using your instructions on my Mac Pro running 10.14.6.
I can connect to my kvm servers using the
-c qemu+ssh://username@kvmhost/system?socket=/var/run/libvirt/libvirt-sock
But when I try to enter any key input, for example, username or password to login, the terminal output reports the following after every keypress on my keyboard:
(virt-manager:75950): GSpice-CRITICAL **: 13:08:42.543: send_key: assertion 'scancode != 0' failed
Not quite sure how to fix this issue or if anyone else has a workaround to make it so that I can pass keyboard input to the vm. Mouse clicks and interactions do work on the vm.
The text was updated successfully, but these errors were encountered: