BurntSushi / xgbutil

A utility library to make use of the X Go Binding easier. (Implements EWMH and ICCCM specs, key binding support, etc.)
Do What The F*ck You Want To Public License
195 stars 45 forks source link

keysym bug #7

Closed BurntSushi closed 11 years ago

BurntSushi commented 11 years ago

Reference.

WINGO MESSAGE: ownership.go:129: Wingo has window manager ownership!
WINGO WARNING: config_theme_setters.go:167: Could not load './data/minimize.png' as a png image because: open ./data/minimize.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/minimize.png' as a png image because: open ./data/minimize.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/close.png' as a png image because: open ./data/close.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/close.png' as a png image because: open ./data/close.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/maximize.png' as a png image because: open ./data/maximize.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/maximize.png' as a png image because: open ./data/maximize.png: no such file or directory
WINGO WARNING: config_theme_setters.go:167: Could not load './data/wingo.png' as a png image because: open ./data/wingo.png: no such file or directory
panic: runtime error: index out of range

goroutine 11 [running]:
github.com/BurntSushi/xgbutil/keybind.KeysymGetWithMap(0x18c85780, 0x19f29b38, 0x19f207ff, 0x8, 0x19f29b38, ...)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/keybind/keybind.go:279 +0x65
github.com/BurntSushi/xgbutil/keybind.KeysymGet(0x18c85780, 0x7ff, 0x708, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/keybind/keybind.go:268 +0x56
github.com/BurntSushi/xgbutil/keybind.updateMaps(0x18c85780, 0x19945098, 0x19945098)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/keybind/keybind.go:68 +0x166
github.com/BurntSushi/xgbutil/xevent.MappingNotifyFun.Run(0x812877f, 0x18c85780, 0x83289f0, 0x19945098)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/callback.go:377 +0x4d
github.com/BurntSushi/xgbutil/xevent.runCallbacks(0x18c85780, 0x83289f0, 0x19945098, 0x22, 0x0, ...)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/xevent.go:182 +0xf3
github.com/BurntSushi/xgbutil/xevent.processEventQueue(0x18c85780, 0x19f80960, 0x19f80990, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/eventloop.go:268 +0x2656
github.com/BurntSushi/xgbutil/xevent.mainEventLoop(0x18c85780, 0x19f80960, 0x19f80990, 0x19f809c0, 0x805a26d, ...)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/eventloop.go:109 +0x9b
github.com/BurntSushi/xgbutil/xevent._func_001(0x19fb19c8, 0x19fb19d0, 0x19fb19d8, 0x19fb19e0, 0x0, ...)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/eventloop.go:88 +0x49
created by github.com/BurntSushi/xgbutil/xevent.MainPing
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgbutil/xevent/eventloop.go:89 +0x112

goroutine 1 [chan receive]:
main.main()
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/wingo/main.go:212 +0x872

goroutine 2 [syscall]:
created by runtime.main
        /usr/lib/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
syscall.Syscall6()
        /usr/lib/go/src/pkg/syscall/asm_linux_386.s:46 +0x27
syscall.EpollWait(0x6, 0x19f22008, 0xa, 0xa, 0xffffffff, ...)
        /usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:1845 +0x7d
net.(*pollster).WaitFD(0x19f22000, 0x19f2c600, 0x0, 0x0, 0x0, ...)
        /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x12b
net.(*pollServer).Run(0x19f2c600, 0x0)
        /usr/lib/go/src/pkg/net/fd.go:236 +0xdf
created by net.newPollServer
        /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x308

goroutine 4 [chan send]:
github.com/BurntSushi/xgb.(*Conn).generateXIds(0x19f2b910, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:229 +0x18a
created by github.com/BurntSushi/xgb.NewConnDisplay
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:103 +0x194

goroutine 5 [chan send]:
github.com/BurntSushi/xgb.(*Conn).generateSeqIds(0x19f2b910, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:251 +0x64
created by github.com/BurntSushi/xgb.NewConnDisplay
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:104 +0x1a9

goroutine 6 [chan receive]:
github.com/BurntSushi/xgb.(*Conn).sendRequests(0x19f2b910, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:297 +0x86
created by github.com/BurntSushi/xgb.NewConnDisplay
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:105 +0x1be

goroutine 7 [runnable]:
syscall.Syscall()
        /usr/lib/go/src/pkg/syscall/asm_linux_386.s:27 +0x41
syscall.Read(0x3, 0x199471c0, 0x20, 0x20, 0xb, ...)
        /usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:2261 +0x61
net.(*netFD).Read(0x18c94a10, 0x199471c0, 0x20, 0x20, 0x0, ...)
        /usr/lib/go/src/pkg/net/fd.go:424 +0xde
net.(*UnixConn).Read(0x19f29a30, 0x199471c0, 0x20, 0x20, 0xb757bbc0, ...)
        /usr/lib/go/src/pkg/net/unixsock_posix.go:128 +0xb1
io.ReadAtLeast(0x19f27f60, 0x19f29a30, 0x199471c0, 0x20, 0x20, ...)
        /usr/lib/go/src/pkg/io/io.go:266 +0xb0
io.ReadFull(0x19f27f60, 0x19f29a30, 0x199471c0, 0x20, 0x20, ...)
        /usr/lib/go/src/pkg/io/io.go:285 +0x4a
github.com/BurntSushi/xgb.(*Conn).readResponses(0x19f2b910, 0x0)
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:347 +0x12c
created by github.com/BurntSushi/xgb.NewConnDisplay
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/xgb/xgb.go:106 +0x1d3

goroutine 8 [timer goroutine (idle)]:
created by addtimer
        /usr/lib/go/src/pkg/runtime/ztime_386.c:72

goroutine 9 [finalizer wait]:
created by runtime.gc
        /usr/lib/go/src/pkg/runtime/mgc0.c:882

goroutine 10 [chan receive]:
net.(*pollServer).WaitRead(0x19f2c600, 0x1a1ed2a0, 0x18c7c560, 0xb)
        /usr/lib/go/src/pkg/net/fd.go:268 +0x75
net.(*netFD).accept(0x1a1ed2a0, 0x80ae3de, 0x0, 0x18c7c540, 0x18c00110, ...)
        /usr/lib/go/src/pkg/net/fd.go:622 +0x199
net.(*UnixListener).AcceptUnix(0x19e107b0, 0xc, 0x0)
        /usr/lib/go/src/pkg/net/unixsock_posix.go:350 +0x46
net.(*UnixListener).Accept(0x19e107b0, 0x0, 0x0, 0x0, 0x0, ...)
        /usr/lib/go/src/pkg/net/unixsock_posix.go:361 +0x39
main.ipc()
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/wingo/ipc.go:35 +0x1b9
created by main.main
        /home/hitori/aur/wingo-git/src/src/github.com/BurntSushi/wingo/main.go:172 +0x594
BurntSushi commented 11 years ago

Apparently this was causing the error:

Section "InputClass"
        Identifier "keyboard-layout"
        Driver "evdev"
        MatchIsKeyboard "yes"
        Option "XkbLayout" "us, ua"
    Option "XkbOptions" "grp:caps_toggle,grp_led:caps"
EndSection

Removing it fixed the problem. I have no idea why.