AutoHotPie icon indicating copy to clipboard operation
AutoHotPie copied to clipboard

Memory leak when Pie Menus refresh visual.

Open dumbeau opened this issue 2 years ago • 2 comments

There is a memory leak. Memory use increases whenever a pie menu refreshes its visual, but the memory is not released when the menu closes.

uluk posted a comment on youtube:

I think there's a memory leak somewhere. I keep autohotpie open indefinitely and it went up to 400 MBs of ram reserved. May want to put in an auto restart function every X hours to skirt the issue...

This was confirmed on my end. I will fix this and add the auto restart to safeguard against any future memory leaks that may arise.

dumbeau avatar Mar 29 '22 08:03 dumbeau

This has been partially fixed and v1.0.17 was updated. The memory gets emptied whenever the pie menu closes. However if somebody runs the pie menu for a really long time while aggressively hovering over different options, the memory increases. Takes a while to get to even 100 MB but I will add a safeguard or fix the leak.

dumbeau avatar Apr 06 '22 16:04 dumbeau

probably a leak related to gdip somewhere, will have to dig deeper

mmikeww avatar Jan 07 '24 10:01 mmikeww