Closed xcccdjsn closed 2 weeks ago
Could it be some mesa GPU objects that will get garbage collected later?
I guess we need to check with the Tracy memory profiler or something to see if there are any leaks on the Rust side.
I added Tracy profiling. I can see the Rust memory increase every time I run swaylock. It's a bit hard to tell what gets leaked. Seems like some surface data might have a ref cycle?
I have not test other window manager.
I found other application also can cause memory leaking, especially kitty. Spawn multiple kitty in short time, and then close them quickly. I did it many times resulting in lot of memory leaking.
This is my result screenshots. I also got memory usage from btop which derived same result.
That is exactly what I've been rambling about in matrix room a few weeks ago. Recommend looking at my smithay issue and other linked issues.
Screen locker leak should be fixed with 600cffb009cde7ed3e04b9f53365ad56cf2d6d6b
@xcccdjsn could you please test cosmic-comp for your kitty issue? I believe it's not niri specific and there's already a Smithay issue open.
Gonna close this assuming it's the Smithay issue.
I have used swaylock, hyprlock and gtklock, but all of them will increment memory amount every time after using it.
System Information