lostallmymoney / Razer_Mouse_Linux

Enables macros with extra razer buttons. Also works with other devices.
Other
42 stars 10 forks source link

memory leak #17

Closed lostallmymoney closed 1 year ago

lostallmymoney commented 2 years ago

Any memleak hunter around ? I know the memory is leaking everytime it creates new FakeKey structs and doesn't fully deallocate them but I'm having a hard time deallocating everything for today.

Stibax commented 2 years ago

Hi, i didn't fully understand what you mean with memory leaking, but i have try with bpytop and i've notice that the service naga initialy use 4M of memory and when i press the naga button that write my email adress (with the famous @) the memory usage grow 2M every 5 press, and never return to 4M. Now I try the new version if it has the same behavior.

lostallmymoney commented 2 years ago

Let me know ! Rn I'm having a hard time using more than 500 KiB memory with it

lostallmymoney commented 2 years ago

hmm, seems like there is still some memory leaking after all, still seems like it's coming from libfakekey but no way it's going to astronomical levels right now. It also crashes sometimes and I can't seem to find where for now :/

lostallmymoney commented 1 year ago

Seems fixed !