Why is qt6.qtwebengine failing? `ulimit -n`?

I’m attempting to package pyqt6 for the sake of finally updating a horribly out of date browser backed for qutebrowser. I’m stuck now because I cannot get qt6.webengine to successfully build. But the strange thing is that it fails because apparently it received SIGTERM somehow, and it doesn’t just happen to me, but it also happened on Hydra (at a different point in the buid no less).

Annoyingly, the build finishes just fine outside of the sandbox, and the only clue here is the message about receiving a termination signal. Anybody have any nice theories on what could be triggering this signal? I’m completely confused and debugging is a massive pain since it takes over an hour to even reach the failure.

My only guess is that some kind of limit is being reached, but I had over 10GB of free memory around the time the build failed.

After comparison of my user settings and the build container, my best guess is that ulimit -n (open files) needs an increase, as it is the only value which is significantly different, and its value (4096) could be conceivably too low for a project as massive as chromium.

1 Like

@ryantm, @Sandro or @jonringer, I confirmed ulimit -n is the problem.

The service runninging Nix on Hydra will need LimitNOFILE to be increased or this package will never build successfully. Do you know who can take care of it (or if the code is on github, where it’s at)?

1 Like

Shouldn’t chromium be hit by the same problem? If yes, how did we fix that?

That’s what I was wondering as well, but for whatever reason, chromium has not been affected so far. But I successfully built it yesterday from this branch after increasing the limit in nix-daemon’s systemd service on my system. I was planning on uploading it to my cachix later in case anyone else wants to make use of it for now.


If anybody has been dying for a qutebrowser backend update, you can build it from the branch I linked above. I pushed it to this cachix. I’ll keep working to get this merged, but I have some hacks to fix first.

Is there a related issue?

The limit was increased in nixos/nix-daemon: set LimitNOFILE to 1Mi by Artturin · Pull Request #176558 · NixOS/nixpkgs · GitHub

1 Like

who can ensure this is actually deployed on the builders?

Graham said he deployed 4x increase some time before that.

Hosted by Flying Circus.