mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Memory leak in transparency_manager
#398
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CtByte on GitHub (Jun 2, 2024).
Describe the bug
When the
"transparency": truesetting is used, there is a memory leak that happens when an inactive program cannot be transparent.To Reproduce
Steps to reproduce the behavior:
"transparency": trueand"transparency_alpha": 210to the configkomorebi.exein the Task ManagerI only found Visual Studio to not allow transparecy so far.
Screenshots and Logs
Typical MEM is around 40 MB. After leaving Komorebi run for a while MEM is over 3 GB.
When I run Komorebi locally, it starts to spam this warning when VS becomes inactive.
Operating System
@LGUG2Z commented on GitHub (Jun 2, 2024):
Of course it would be a Microsoft application 🙃
I think we can probably refactor this to log the error instead of propagate it to the thread handler which should stop the global state tracker from filling up on every thread restart.
@CtByte commented on GitHub (Jun 2, 2024):
I'll be happy to test again so you are not forced to dirty your system with VS 😉
To be fair, there might be other programs out there, but Microsoft VS is one of them for sure.
@LGUG2Z commented on GitHub (Jun 2, 2024):
The commit above should address the memory ballooning issue 🤞
@CtByte commented on GitHub (Jun 2, 2024):
It is working. The output is now:
Thank you very much for the quick response as always!