Input spam and 100% CPU usage
Since I upgraded to Sway 1.9, wlroot 0.17.3, libinput 1.25.0, kernel 6.9.1 my system is unresponsive when I am in a text input.
For example, in firefox, in the URL input, the border blinks and I have 100% CPU usage, in my terminal emulator too.
If I launch wev and focus my kitty terminal, I have an output like below that spams very fast.
I am not sure the issue actually comes from sway, but I am wondering if you have any idea how to debug this.
Cheers
[14: wl_keyboard] repeat_info: rate: 25 keys/sec; delay: 600 ms
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64754
[14: wl_keyboard] repeat_info: rate: 25 keys/sec; delay: 600 ms
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64754
[14: wl_keyboard] repeat_info: rate: 25 keys/sec; delay: 600 ms
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64754
[14: wl_keyboard] repeat_info: rate: 25 keys/sec; delay: 600 ms
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64732
[14: wl_keyboard] keymap: format: 1 (xkb v1), size: 64754
Your bug report is missing debug logs. Please add a link to the full debug log file.
sway -d >sway.log 2>&1
I'm sorry, It was late and I guess I was very tired.
After looking at the log today with a fresh brain, I realize it could be caused by fcitx (between line 2500 and 4000 we see virtual keyboard added/removed), and after killing fcitx the issue was solved.
I might be hitting this https://github.com/fcitx/fcitx5/issues/1044
I leave this open if there is anything that can be done on sway side, but if you confirm this is not a sway issue, I let you close it.
Cheers
@kuon Thanks a lot. I have been struggling on this whole day.
The commit that supposedly fixes this has been merged. This can be re-opened if still an issue.