robotgo
robotgo copied to clipboard
Getting error: load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard!
- Robotgo version (or commit ref):v0.92.1
- Go version:1.16beta1
- Gcc version:9.3.0
- Operating system and bit:Ubuntu 20.04 64-bit (running as VMware guest on Windows 10 host)
- Resolution:2643x1133
- Can you reproduce the bug at Examples:
- [ *] Yes (provide example code)
- [ ] No
- [ ] Not relevant
- Provide example code:
package main
import (
"github.com/go-vgo/robotgo"
)
func main() {
robotgo.KeyTap("enter")
}
- Log gist:
GOROOT=/home/mike/sdk/go1.16beta1 #gosetup GOPATH=/home/mike/go #gosetup /home/mike/sdk/go1.16beta1/bin/go build -o /tmp/___go_build_main_go /home/mike/go/src/BrowserDriver/main.go #gosetup /tmp/___go_build_main_go load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard!
Process finished with exit code 0
Description
...
same here. OS: Ubuntu 21.04 + go1.16.2
on_library_load [436]: XOpenDisplay failure! load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard! Segmentation fault
go version go1.16.7 linux/amd64 Linux 075ee3421a01 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
on_library_load [436]: XOpenDisplay failure! load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard! signal: segmentation fault (core dumped)
go version go1.17.1 linux/amd64
wsl:
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
But there is can't reproduce in Ubuntu 18.04 and other.
But there is can't reproduce in Ubuntu 18.04 and other.
haha,Because you did not use the remote launcher method, or use the daemon process to launch the program, if you try, you will find this problem
Ubuntu server? You should use xvfb-run.
Ubuntu server? You should use
xvfb-run.
i see,i will check,thanks
I use root user run example will get error some, but I use other user will be worker well @jimmyduang
Trying to execute Readme example i see the same error load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard! on Ubuntu 22.04 LTS (Jammy Jellyfish) and go version go1.18.3 linux/amd64
UPD: helped switch to xorg on login (default wayland)
Same error here with Ubuntu 22.04 and Debian 11.
Also fails for me on Wayland.
Same on Arch with Wayland
Same issue here. My system details:
OS: Ubuntu 22.04.3 LTS x86_64 Kernel: 6.2.0-39-generic go version go1.20.5 linux/amd64