delta: π memory allocation of 7881122326526296064 bytes failed
When I run delta in my Xubuntu 21.10 x86_64 system I get this error:
$ delta --help
memory allocation of 7881122326526296064 bytes failed
zsh: IOT instruction (core dumped) delta
I tried with both the latest version on crates.io, and master branch (50ece4b).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 15 (6 by maintainers)
Commits related to this issue
- delta is buggy on my system, update default pager https://github.com/dandavison/delta/issues/878 — committed to osa1/rcbackup by osa1 2 years ago
Hi @osa1, I think this crash is being caused by something particular to your environment. It looks like itβs crashing while loading the syntax highlighting assets from disk. Delta borrows code from bat to do that. I wonder whether you might have something funny going on with your local bat syntax/theme definitions? Could you try
and/or moving
~/.cache/batand~/.config/batout of the way temporarily.Thanks everyone! Iβll close this now. My understanding is that
cargo install --force --locked git-deltaBut please keep the discussion going or re-open if you are encountering this problem and that doesnβt describe it.
Confirmed that adding
--lockedto the install command (cargo install --force --locked git-delta) fixes the issue.Backtrace of the error: (generated without
debug = true)