unclechu / xlib-keys-hack

Keyboard behavior customization utility
GNU General Public License v3.0
9 stars 1 forks source link

haskell-version: Sometimes after some time working app fails with segfault #11

Closed unclechu closed 7 years ago

unclechu commented 7 years ago

From log

/home/unclechu/.local/bin/xlib-keys-hack.sh: line 7:  2254 Segmentation fault      sudo "$(which xlib-keys-hack)" /dev/input/by-id/usb-1d57_2.4G_Receiver-event-kbd /dev/input/by-id/usb-1d57_2.4G_Receiver-event-if02 --disable-xinput-device-name='2.4G Receiver' --xmobar-pipe="$HOME/.xmonad/xmobar.fifo"
unclechu commented 7 years ago

I guess it could be in place where I handle window FocusIn/FocusOut events by nextEvent, so as it was happening with implementation in C, maybe starting child process of same application with specific option and restart it if it fails would help this.

unclechu commented 7 years ago

Now window focus events handling logic separated to own sub-process and automatically restarts if it failed. I'll close the issue for right now and will open it again if it fail again in runtime.