nix
nix copied to clipboard
Exception: std::bad_alloc: std::bad_alloc
Describe the bug
I noticed my system freezes for 2 seconds and then things works as usual. Checking journalctl I see this:
399 │ may 26 10:44:55 woody nix[13555]: Nix crashed. This is a bug. Please report this at https://github.com/NixOS/nix/issues with the following information included:
400 │ may 26 10:44:55 woody nix[13555]: Exception: std::bad_alloc: std::bad_alloc
401 │ may 26 10:44:55 woody nix[13555]: Stack trace:
402 │ may 26 10:44:55 woody nix[13555]: 0# 0x0000564B6433A669 in nix
403 │ 1# 0x00007F3943ABF1CA in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
404 │ 2# __cxa_call_terminate in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
405 │ 3# __gxx_personality_v0 in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
406 │ 4# 0x00007F3944703A19 in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libgcc_s.so.1
407 │ 5# _Unwind_Resume in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libgcc_s.so.1
408 │ 6# 0x0000564B6431B1F3 in nix
409 │ 7# nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned
│ long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::~basic_json() in nix
Steps To Reproduce
I just have the latest kernel and system for 25.05
➜ uname --all
Linux woody 6.12.30 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 22 12:29:54 UTC 2025 x86_64 GNU/Linux
This is my current flake.lock file
Expected behavior
no Stutter right after login in to my wm
Metadata
nix-env (Nix) 2.28.3
Additional context
Checklist
- [x] checked latest Nix manual (source)
- [x] checked open bug issues and pull requests for possible duplicates
Add :+1: to issues you find important.
Do you have a command that triggers the crash?
Do you have a command that triggers the crash?
I have none, but also the stutters have banished