Closed CtByte closed 4 months ago
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.
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.
The commit above should address the memory ballooning issue 🤞
It is working. The output is now:
2024-06-02T21:23:18.320713Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 265250 })}: komorebi::process_event: processed: (hwnd: 265250, title: Developer PowerShell Visual Studio Community 2022 17.9.34902.65, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-06-02T21:23:18.322339Z ERROR komorebi::transparency_manager: failed to make unfocused window 265250 transparent: The parameter is incorrect. (0x80070057)
Thank you very much for the quick response as always!
Describe the bug When the
"transparency": true
setting is used, there is a memory leak that happens when an inactive program cannot be transparent.To Reproduce Steps to reproduce the behavior:
"transparency": true
and"transparency_alpha": 210
to the configkomorebi.exe
in 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