-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 memory allocation of 7881122326526296064 bytes failed #878
Comments
Debug build doesn't seem to have this issue:
|
I tried debugging this, but adding diff --git a/Cargo.toml b/Cargo.toml
index cdcf455..17b0a39 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,3 +62,6 @@ features = []
version = "0.12.4"
default-features = false
features = []
+
+[profile.release]
+debug = true After the diff above release binary seems to work fine. |
Backtrace of the error: (generated without
|
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 |
Hi @dandavison. I don't have bat installed. I also don't have the directories |
Hm, OK. Let's try to get to the bottom of this. Could you try |
Ah-ha, I can reproduce it, when installing from crates.io:
But I haven't reproduced it by building locally yet. Any help debugging / investigating this appreciated. |
Had this start happening to me as well. Happy to help try and verify hypothesis or fixes on my end. |
Hi @lukehsiao, how did you install delta? (and on what OS?) |
Seems similar to this from 18 months ago bincode-org/bincode#335 |
I have the same issue with the latest release (0.11.3) on Ubuntu 20.04. Installed via I'm not a rust person, so I don't know if this is relevant: I had previously installed bat (https://github.com/sharkdp/bat) and it also had this same "memory allocation of ___ bytes failed" core dump. I then realized I missed the |
I also installed via Somewhat surprisingly for me, reinstalling git-delta with
Appears to have resolved the issue on my machine. |
It does look like bat users are seeing a similar thing: sharkdp/bat#2013 |
Confirmed that adding |
Thanks everyone! I'll close this now. My understanding is that
But please keep the discussion going or re-open if you are encountering this problem and that doesn't describe it. |
When I run delta in my Xubuntu 21.10 x86_64 system I get this error:
I tried with both the latest version on crates.io, and master branch (50ece4b).
The text was updated successfully, but these errors were encountered: