Crash when activating devenv #736

Closed
opened 2025-03-14 08:27:01 +00:00 by oddlid · 4 comments

Describe the bug

I have a fork of the conduwuit repo, where I have a branch with a couple of small fixes. conduwuit have a flake.nix for a devenv. When I did "git rebase main", the devenv started rebuilding, and crashed. It said it was a Lix bug, and that I should report it.

Output:

Lix crashed. This is a bug. We would appreciate if you report it along with what caused it at https://git.lix.systems/lix-project/lix/issues with the following information included:

Exception: nlohmann::json_abi_v3_11_3::detail::parse_error: [json.exception.parse_error.101] parse error at line 368, column 1: syntax error while parsing object key - invalid literal; last read: '1740613216,<U+000A><'; expected string literal
Stack trace:
0# nix::printStackTrace() in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixutil.dylib
1# nix::(anonymous namespace)::onTerminate() in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixmain.dylib
2# std::__terminate(void (*)()) in /nix/store/m2jcvx713lz5zsgza5rsq7r29d792gv1-libcxx-19.1.7/lib/libc++abi.1.0.dylib
3# std::terminate() in /nix/store/m2jcvx713lz5zsgza5rsq7r29d792gv1-libcxx-19.1.7/lib/libc++abi.1.0.dylib
4# nix::handleExceptions(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::__1::function<void ()>) in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixmain.dylib
5# main in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/bin/nix

nix --version output

nix (Lix, like Nix) 2.92.0
System type: aarch64-darwin
Additional system types: x86_64-darwin
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /Users/oddee/.config/nix/nix.conf:/Users/oddee/.nix-profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/oddee/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/share

## Describe the bug I have a fork of the conduwuit repo, where I have a branch with a couple of small fixes. conduwuit have a flake.nix for a devenv. When I did "git rebase main", the devenv started rebuilding, and crashed. It said it was a Lix bug, and that I should report it. Output: Lix crashed. This is a bug. We would appreciate if you report it along with what caused it at https://git.lix.systems/lix-project/lix/issues with the following information included: Exception: nlohmann::json_abi_v3_11_3::detail::parse_error: [json.exception.parse_error.101] parse error at line 368, column 1: syntax error while parsing object key - invalid literal; last read: '1740613216,<U+000A><'; expected string literal Stack trace: 0# nix::printStackTrace() in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixutil.dylib 1# nix::(anonymous namespace)::onTerminate() in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixmain.dylib 2# std::__terminate(void (*)()) in /nix/store/m2jcvx713lz5zsgza5rsq7r29d792gv1-libcxx-19.1.7/lib/libc++abi.1.0.dylib 3# std::terminate() in /nix/store/m2jcvx713lz5zsgza5rsq7r29d792gv1-libcxx-19.1.7/lib/libc++abi.1.0.dylib 4# nix::handleExceptions(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::function<void ()>) in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/lib/liblixmain.dylib 5# main in /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/bin/nix ## `nix --version` output nix (Lix, like Nix) 2.92.0 System type: aarch64-darwin Additional system types: x86_64-darwin Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /Users/oddee/.config/nix/nix.conf:/Users/oddee/.nix-profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/oddee/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/8iv6g68lmplnj5036n52dizx5jwm9wc3-lix-2.92.0/share
Owner

Sounds like a duplicate of #661 unless known otherwise?

Sounds like a duplicate of https://git.lix.systems/lix-project/lix/issues/661 unless known otherwise?
Owner

yeah, the last < in last read: '1740613216,<U+000A><' makes this sound an awful lot like a merge conflict sending the json parser off the rails

yeah, the last `<` in `last read: '1740613216,<U+000A><'` makes this sound an awful lot like a merge conflict sending the json parser off the rails
Author

Yes, it was a merge conflict. But I expect to be able to have that and work through it, rather than my shell flipping up backwards.

Yes, it was a merge conflict. But I expect to be able to have that and work through it, rather than my shell flipping up backwards.
Owner

Then yeah it's a duplicate. Maybe we need to backport that fix to 2.92 to avoid confusing more people.

Then yeah it's a duplicate. Maybe we need to backport that fix to 2.92 to avoid confusing more people.
jade 2025-03-15 01:23:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#736
No description provided.