Skip to content
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

OOM #16

Open
sjmackenzie opened this issue Mar 21, 2020 · 0 comments
Open

OOM #16

sjmackenzie opened this issue Mar 21, 2020 · 0 comments

Comments

@sjmackenzie
Copy link

sjmackenzie commented Mar 21, 2020

I found a way for pnpm2nix to eat my kittens:

Steps to reproduce:

  • pnx create-react-app app1 (make sure you've got nodePackages.pnpm in your env/shell)
  • cd app1
  • write the below into default.nix
with (import <nixpkgs> {});
with (import ./pnpm2nix {
  inherit pkgs;
  nodejs = pkgs.nodejs-10_x;
  nodePackages = pkgs.nodePackages_10_x;
});

mkPnpmPackage {
  src = ./.;
  packageJSON = ./package.json;
  shrinkwrapYML = ./pnpm-lock.yaml;
}
  • nix-build

Expected behaviour

  • builds without blowing up

Actual behaviour

  • on a 16gig nixos thinkpad graphics dies stutters and all memory gets consumed, swap thrashes
    EDIT
  • after about 30 mins or as I get this error. Seems graphics doesn't bomb.
error: stack overflow (possible infinite recursion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant