arp242 / find-cursor

Highlight the cursor position in X11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory leak

KeyofBlueS opened this issue · comments

Hi,

I encountered a memory leak in find-cursor, this is most noticeable with -r 0 option, it'll slowly exhaust all available system memory.

Thanks.

Thanks; I pushed an update which fixes the two leaks that were reported by valgrind. I didn't test extensively with all options, so there could perhaps be others. I'll look in to it further later.

Let me know which options you use if you still see issues after updating.

Great! fixed now, thanks.

Cheerio! I just pushed another update which should give a smoother experience when using --repeat 0 --follow to draw a solid circle: instead of creating and destroying new "animated" windows it will just create one window and keep moving it. Reduces CPU consumption on my system from ~3% to 0% and gives a much smoother experience.

Only works if you only add --transparent for now.

After this last commit (241ae5c), --outline option seems to not work anymore.

I use find-cursor -r 0 -f -t -o -w 500 --size 320 --distance 20

find-cursor -r 0 -f -t doesn't print anything
find-cursor -r 0 -f -t -o only white lines are printed

Hmm, looks like --transparent isn't working at all on my system; it shouldn't change anything for that first command though, since that's animated (size is different from distance; it should only apply when they're the same).

I just reverted it for now, as I can't really be bothered to figure all of this out, and it's a small thing anyway 😅