I am running into this issue on an m1 mac: ```nati...
# general
d
I am running into this issue on an m1 mac:
Copy code
native_engine.PantsdClientException: The pantsd process was killed during the run.

If this was not intentionally done by you, Pants may have been killed by the operating system due to memory overconsumption (i.e. OOM-killed). If you keep seeing this error message, try the troubleshooting steps below. If none of those help, please consider filing a GitHub issue or reaching out on Slack so that we can investigate the possible memory overconsumption (<https://www.pantsbuild.org/docs/getting-help>).
 - Exit other applications, including applications running in the background.
 - Set the global option `--pantsd-max-memory-usage` to reduce Pantsd's memory consumption by retaining less in its in-memory cache (run `./pants help-advanced global`).
 - Disable pantsd with the global option `--no-pantsd` to avoid persisting memory across Pants runs, although you will miss out on additional caching.
I tried all 3 of the suggestions, as well as: • updating to macos Sonoma 14.5 • brew update/upgrade • updating all my dependencies • restarting my mac twice What else can I do to fix this problem?
the same repository does work on ubuntu for me however, so it seems the issue is only occurring on my mac
a
Can you try with
--no-pantsd
, that'll at least keep pants running in your terminal, and show you what signal it receives.
d
Copy code
/Users/gha/.cargo/git/checkouts/lmdb-rs-369bfd26153a2575/6ae7a55/lmdb-sys/lmdb/libraries/liblmdb/mdb:2126: 
Assertion 'rc == 0' failed in mdb_page_dirty()


zsh: abort      pants --no-pantsd fix ::
a
That looks like your cache might be broken? Try clearing that
Found an issue that reports a similar problem that says that deleting the lmdb bit of the cache fixed it
d
can I clear the cache by just deleting the
.pants.d/
dir?
a
No, that's just logs.
d
ah
a
Try
rm -fr ~/.cache/pants/lmdb_store
d
that worked, thank you so much!
a
You're welcome
it's amazing how we never get these corruptions in Linux laptops at work, all of them are on macs šŸ˜›
d
haha, maybe I need to look into a switch then...
a
Definitely outside the scope of this, but I've never had Linux randomly corrupt my files in 20 years of using it, but I've seen at least 10 people in my company using macs that had this problem (though, not in the pants cache bit, even worse, in stuff like xcode stuff, random brew installed libs), in the past 3 years.
šŸ‘€ 1
And I say this as someone that's been forced to get a mac after my company was acquired šŸ™‚
The future looks bleak, heh
🤣 1