large derivations can't be launched by launch-builder #1121

Open
opened 2026-02-06 14:14:56 +00:00 by pennae · 0 comments
Owner

Describe the bug

❯  NIX_REMOTE=/tmp/store nix-build -E 'derivation { name = "foo"; system = __currentSystem; builder = "/bin/sh"; x = __genList toString 10000000; }'  --builders ''        
this derivation will be built:
  /nix/store/n9im9asqdr3lq6qljwmis2j43m4mp065-foo.drv
warning: Failed to use the system-wide build directory '/nix/var/nix/b', falling back to a temporary directory inside '/tmp/nix-builds-1000-51cgbw7jhi89f36vxa7lpa5ahw'
error:
       … while setting up the build environment

       error: capnp/serialize.c++:201: failed: expected totalWords <= options.traversalLimitInWords [9862447 <= 8388608]; Message is too large.  To increase the limit on the receiving end, see capnp::ReaderOptions.
       stack: 7fac58b6f7bc 5593ce9d6778 5593ce9d558c 7fac5842b284 7fac5842b337 5593ce9d4944

8 Mi words is 64 MiB, so chances are nothing will ever hit this in practice that isn't already trying to wreck shit

Expected behavior

this should work. limits are fine, but this one seems a bit low.

nix --version output

nix (Lix, like Nix) 2.95.0-pre20260204-dev_ba4f4f9

Additional context

Add any other context about the problem here.

## Describe the bug ``` ❯ NIX_REMOTE=/tmp/store nix-build -E 'derivation { name = "foo"; system = __currentSystem; builder = "/bin/sh"; x = __genList toString 10000000; }' --builders '' this derivation will be built: /nix/store/n9im9asqdr3lq6qljwmis2j43m4mp065-foo.drv warning: Failed to use the system-wide build directory '/nix/var/nix/b', falling back to a temporary directory inside '/tmp/nix-builds-1000-51cgbw7jhi89f36vxa7lpa5ahw' error: … while setting up the build environment error: capnp/serialize.c++:201: failed: expected totalWords <= options.traversalLimitInWords [9862447 <= 8388608]; Message is too large. To increase the limit on the receiving end, see capnp::ReaderOptions. stack: 7fac58b6f7bc 5593ce9d6778 5593ce9d558c 7fac5842b284 7fac5842b337 5593ce9d4944 ``` 8 Mi words is 64 MiB, so chances are nothing will ever hit this in practice that isn't already trying to wreck shit ## Expected behavior this should work. limits are fine, but this one seems a bit low. ## `nix --version` output ``` nix (Lix, like Nix) 2.95.0-pre20260204-dev_ba4f4f9 ``` ## Additional context Add any other context about the problem here.
pennae added this to the 2.95 milestone 2026-02-06 14:14:56 +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#1121
No description provided.