Closed hxhelm closed 10 months ago
I am not seeing any leaked bytes for the helper process, could you attach the profiler output that leads you to believe that there is a memory leak?
I tried running leaks helper
, but it also does not show any leaks. What tool were you using in the screenshot? I can try again with other tools.
Maybe the leaks
output is helpful nevertheless:
Process 61481 is not debuggable. Due to security restrictions, leaks can only show or save contents of readonly memory of restricted processes.
Process: helper [61481]
Path: /Users/USER/*/helper
Load Address: 0x100680000
Identifier: helper
Version: 0
Code Type: ARM64
Platform: macOS
Parent Process: ??? [1]
Date/Time: 2023-10-22 18:36:52.817 +0200
Launch Time: 2023-10-22 18:35:37.313 +0200
OS Version: macOS 14.0 (23A344)
Report Version: 7
Analysis Tool: /usr/bin/leaks
Physical footprint: 1793K
Physical footprint (peak): 1809K
Idle exit: untracked
----
leaks Report Version: 4.0
Process 61481: 205 nodes malloced for 10 KB
Process 61481: 0 leaks for 0 total leaked bytes.
I only notices the increased memory in the Activity Monitor. With a fresh start, the helper process only has about a MB of memory usage and 15 ports, but it increases every few seconds and reached hundreds of MB and ports once.
This is after a few minutes:
versus a fresh start:
I will have an eye out for this. I may just remove the helper from the dotfiles and replace it with a simple script using ps and awk to get all the relevant informations for the cpu item.
Should be fixed.
When running the CPU usage + SketchybarHelper setup, I have noticed that the memory and ports of the helper process keep increasing. Due to my limited C knowlege, I can't point out what might be causing the problem or debug further.
I am running on macOS 14.0 on an M2 processor.