robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

Getting error: load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard!

Open mike-loopvoc opened this issue 4 years ago • 14 comments

  • 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

...

mike-loopvoc avatar Dec 22 '20 18:12 mike-loopvoc

same here. OS: Ubuntu 21.04 + go1.16.2

dkadio avatar May 28 '21 21:05 dkadio

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

yuzhengjun1204 avatar Sep 16 '21 09:09 yuzhengjun1204

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"  

gofmt avatar Sep 17 '21 03:09 gofmt

But there is can't reproduce in Ubuntu 18.04 and other.

vcaesar avatar Sep 17 '21 19:09 vcaesar

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

jimmyduang avatar Oct 14 '21 09:10 jimmyduang

Ubuntu server? You should use xvfb-run.

vcaesar avatar Oct 14 '21 19:10 vcaesar

Ubuntu server? You should use xvfb-run.

i see,i will check,thanks

jimmyduang avatar Oct 15 '21 02:10 jimmyduang

I use root user run example will get error some, but I use other user will be worker well @jimmyduang

labulakalia avatar Oct 20 '21 12:10 labulakalia

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)

alxmrz avatar Jul 09 '22 10:07 alxmrz

Same error here with Ubuntu 22.04 and Debian 11.

Arnwaltur avatar Sep 06 '22 07:09 Arnwaltur

Also fails for me on Wayland.

dachinat avatar May 23 '23 11:05 dachinat

Same on Arch with Wayland

DeArchX avatar Oct 20 '23 10:10 DeArchX

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

leo-aa88 avatar Dec 21 '23 07:12 leo-aa88