Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
299 stars 52 forks source link

Too many open files on Ubuntu 24.04 #193

Open Kr3m opened 1 month ago

Kr3m commented 1 month ago

I'm getting the following error when trying to compile a map:

--- LoadMapFile ---
Script file /home/kevin/.q3a/baseq3/maps/testmap.map was not found: Too many open files
************ ERROR ************
Garux commented 1 month ago

Likely too much .pk3s, they all are kept open. You can increase this limit in linux.

ensiform commented 4 weeks ago

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS. And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

Garux commented 4 weeks ago

I do set maximal available limit in windows, in linux it must be set systemwide from what i read.

Kr3m commented 4 weeks ago

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS. And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

Yeah, I was able to get it working by setting it from the terminal and running it from the same terminal. I think I'll just adjust it system wide. Just not sure what the safest setting would be, but I guess 4096 should be okay...

ensiform commented 4 weeks ago

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS. And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

Yeah, I was able to get it working by setting it from the terminal and running it from the same terminal. I think I'll just adjust it system wide. Just not sure what the safest setting would be, but I guess 4096 should be okay...

Jk2mv has this code

https://github.com/mvdevs/jk2mv/blob/master/src%2Fsys%2Fsys_unix.cpp#L572-L589