Skip to content

Memory leaks #731

@Etheryte

Description

@Etheryte

xbar version: v2.0.42-beta
macOS version: 10.15.7

Starting xbar up, it uses about 40MB. Running for a few minutes, it builds up to 50MB. Left unchecked for hours, it ended up using multiple GBs which eventually caught my attention.

Running Instruments' Leaks tool on the process shortly after startup yields thousands of small leaks over a roughly two-minute time span. The majority of the leaks stem from CreateMenuItemCallbackData:

Screenshot 2021-06-17 at 16 06 07

I removed all of my scripts to narrow down the scope of the problem, left only the following script running as foo.2s.sh, and the leak persisted:

#!/usr/bin/env bash

echo "Foo"

I don't know whether this problem is new or a regression since I've only started using xbar recently.

I've checked the following versions and the leaks are present in all of them:

  • v2.0.42-beta
  • v2.0.37-beta
  • v2.0.27-beta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions