[Nix#9610] out of memory when using nix-store --import on NARs with large store paths #85

Open
opened 2024-03-16 06:44:50 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9610

Describe the bug

When importing a .nar file created with nix-store --export using nix-store --import, then nix-store --import may fail saying error: out of memory. This is easy to reproduce using pkgs.quartus-prime-lite in nixpkgs whose exported contents are about 17G.

Steps To Reproduce

  1. Export a large store path using nix-store --export > blah.nar
  2. Import it again with cat blah.nar | nix-store --import (after deleting it or on another machine)
  3. Observe an out of memory error.

Expected behavior

I expect the import to complete.

nix-env --version output

nix-env (Nix) 2.18.1

Additional context

This used to print a warning, but I had believed the warning was removed when all cases of this out of memory error were fixed. I'm not sure if this case was never fixed or there has been a regression.

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9610 **Describe the bug** When importing a .nar file created with `nix-store --export` using `nix-store --import`, then `nix-store --import` may fail saying `error: out of memory`. This is easy to reproduce using `pkgs.quartus-prime-lite` in nixpkgs whose exported contents are about 17G. **Steps To Reproduce** 1. Export a large store path using `nix-store --export > blah.nar` 2. Import it again with `cat blah.nar | nix-store --import` (after deleting it or on another machine) 3. Observe an out of memory error. **Expected behavior** I expect the import to complete. **`nix-env --version` output** `nix-env (Nix) 2.18.1` **Additional context** This used to print a warning, but I had believed the warning was removed when all cases of this out of memory error were fixed. I'm not sure if this case was never fixed or there has been a regression. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#85
No description provided.