On 2023-11-13, 0x1eef <0x1...@protonmail.com> wrote: > Hello > > I have a project that's built with nodejs / webpack. > I have a few other projects that use the same stack, > and are far more complicated. There's no problems > building them on OpenBSD. > > With this particular project, I run into this error: > > $ npm run build > >> photon@0.2.1 build >> npm exec webpack > > libc++abi: terminating with uncaught exception of type std::bad_alloc: > std::bad_alloc > Abort trap (core dumped) > > At one point in time it built fine. I am running a recent > snapshot, and all packages are up to date. I thought the > problem might be fixed with time but that hasn't been the > case. > > The nodejs version is v18.18.2. It should be possible to > reproduce by cloning the project: > > git clone https://github.com/0x1eef/photon.git > cd photon > npm i > npm run build > > Any suggestions or tips on what might be going wrong ? > Thanks.
There's a good chance you bumped into memory limits, if you're logged in as a user in the "staff" class (as done automatically for the initial user created by the installer) you can just use ulimit -d to raise from the initial limit temporarily, otherwise you'd need to edit /etc/login.conf and re-login (new X session or new ssh connection). e.g. to set it to 4GB: ulimit -d $((4*1024*1024)) -- Please keep replies on the mailing list.