rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

Warpd hangs after some time with 100% CPU #214

Open max-frai opened 1 year ago

max-frai commented 1 year ago

Hello, as you asked, creating a new issue. So I use the latest warpd commit (built from source) and latest macos.

So I use it like this: enter hint mode, chose location, maybe small movement with hjkl and click. After 3-4-5-6 times of doing it, I click my keybinding for enter hint mode and warpd hangs and no keyboard events passed to system. Also I don't see any hints, for example. In process monitor I see that warpd consumes 100% cpu.

buttons: n , m
oneshot_buttons: space - /
hint_border_radius: 10
hint_font: Iosevka
use_system_cursor: 1
rvaiya commented 1 year ago

Please post the output of warpd -v.

max-frai commented 1 year ago

warpd v1.3.5-osx (built from: 6d43797)

rvaiya commented 1 year ago

I can't seem to reproduce this. Does this happen with a blank config? Also try running make clean to ensure there are no artifacts from previous builds.

funvit commented 1 year ago

Same for me, but i am also use Karabiner-Elements 14.10.0.

Clean install (first time use). Default config.

rvaiya commented 1 year ago

I'ts possible karabiner is interfering with the event tap used by warpd. @max-frai Are you using any other remapping software (e.g karabiner)? @funvit Can you see if disabling karabiner solves the problem?

max-frai commented 1 year ago

No, I don't have any remapping software. Pure latest mac os. Also I just tried again. After reboot I long time didn't use warpd and now decided to call the hint mode and right after keybinding was clicked, warpd process started eating 100cpu and 300gb virtual ram.

rvaiya commented 1 year ago

@max-frai I still can't reproduce this. Does this happen after clicking on a secure input field? (e.g web password field, sudo prompt, etc). Can you do a clean install using the latest commit? (git pull origin master && make clean && make && sudo make install).

rvaiya commented 1 year ago

Also, are you using a multi screen setup?

max-frai commented 1 year ago

I tried clean make install and default config and it works okay all day. So I will try to add back my config file and test further everything.

max-frai commented 1 year ago

Okay, no luck :( After reboot I tried to run it again and the problem appeared. With default config.

max-frai commented 1 year ago

Okay, I found the issue. It works okay until system input language is english. But when you enter keybinding in other language, it hangs. So when my input language is ukrainian, I press Command + Option + X and warpd starts consuming 100% cpu

tzkoshi commented 10 months ago

Greetings, I have similar issue, if language is different from English (Bulgarian) warpd just takes the keyboard input and there is no way to recover, except killing the process (which is impossible without keyboard :) ).

Running on OSX: Version: warpd v1.3.5-osx (built from: 01650ea)

Is there any workaround around this?

This tool seems what I always wanted, and thank you for making it !

askazakov commented 3 months ago

when you enter keybinding in other language, it hangs.

Have the same issue