[0.16.30] MAC OS: Too many files open when starting factorio
[0.16.30] MAC OS: Too many files open when starting factorio
It just started to happen when trying to open factorio while I have no problem opening any other file intensive app like eclipse with lots of plugins and a project with lots of files opened.
Exact error is: "Error when opening /Applications/factorio.app/Contents/data/core/lualib/dataloader.lua for reading: Too many open files
Tried to reinstall 0.16.30 from scratch and still the same issue.
Edit 1: It works fine if I start it from the terminal with: /Applications/factorio.app/Contents/MacOS/factorio but it fails with the too many files open as written above if starting the app by running it from the finder
Exact error is: "Error when opening /Applications/factorio.app/Contents/data/core/lualib/dataloader.lua for reading: Too many open files
Tried to reinstall 0.16.30 from scratch and still the same issue.
Edit 1: It works fine if I start it from the terminal with: /Applications/factorio.app/Contents/MacOS/factorio but it fails with the too many files open as written above if starting the app by running it from the finder
Re: [0.16.30] MAC OS: Too many files open when starting factorio
Post the log, see my signature.
Re: [0.16.30] MAC OS: Too many files open when starting factorio
0.000 2018-03-14 23:34:31; Factorio 0.16.30 (build 36039, mac, alpha)
0.000 Operating system: OS X 10.10.2
0.000 Program arguments: "/Applications/factorio.app"
0.000 Read data path: /Applications/factorio.app/Contents/data
0.000 Write data path: /Users/dpoudret/Library/Application Support/factorio [439901/475978MB]
0.000 Binaries path: /
0.005 System info: [CPU: Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz, 4 cores, RAM: 16384 MB]
0.008 Display options: [FullScreen: 1] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
0.008 Available display adapters: 1
0.008 [0]: resolution 1280x800px at [0,0]
0.008 Create display on adapter 0. Size 1230x720 at position [15, 22].
0.232 Initialised OpenGL:[0] Intel Iris OpenGL Engine; driver: 2.1 INTEL-10.2.46
0.232 Dedicated video memory size 1536 MB
0.269 Graphics settings preset: high
0.269 Graphics options: [Graphics quality: low] [Video memory usage: high] [Light scale: 25%] [DXT: false] [Shader: 1]
0.269 [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
0.446 Error ModManager.cpp:676: Mod package read error. File /Users/dpoudret/Library/Application Support/factorio/mods/DrillingPumpjack for v0_15_1.2.2.zip/info.json not found
0.644 Error Util.cpp:49: Error when opening /Applications/factorio.app/Contents/data/core/lualib/dataloader.lua for reading: Too many open files
391.478 Goodbye
0.000 Operating system: OS X 10.10.2
0.000 Program arguments: "/Applications/factorio.app"
0.000 Read data path: /Applications/factorio.app/Contents/data
0.000 Write data path: /Users/dpoudret/Library/Application Support/factorio [439901/475978MB]
0.000 Binaries path: /
0.005 System info: [CPU: Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz, 4 cores, RAM: 16384 MB]
0.008 Display options: [FullScreen: 1] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
0.008 Available display adapters: 1
0.008 [0]: resolution 1280x800px at [0,0]
0.008 Create display on adapter 0. Size 1230x720 at position [15, 22].
0.232 Initialised OpenGL:[0] Intel Iris OpenGL Engine; driver: 2.1 INTEL-10.2.46
0.232 Dedicated video memory size 1536 MB
0.269 Graphics settings preset: high
0.269 Graphics options: [Graphics quality: low] [Video memory usage: high] [Light scale: 25%] [DXT: false] [Shader: 1]
0.269 [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
0.446 Error ModManager.cpp:676: Mod package read error. File /Users/dpoudret/Library/Application Support/factorio/mods/DrillingPumpjack for v0_15_1.2.2.zip/info.json not found
0.644 Error Util.cpp:49: Error when opening /Applications/factorio.app/Contents/data/core/lualib/dataloader.lua for reading: Too many open files
391.478 Goodbye
Re: [0.16.30] MAC OS: Too many files open when starting factorio
I removed drillingpumpjack that was in error in the log but same issue while trying to run factorio from finder at the same place in the same cpp
Re: [0.16.30] MAC OS: Too many files open when starting factorio
Since this does not seem to be a standard occurrence with factorio I would assume your OS settings are not default.
Post the output of please.
Post the output of
Code: Select all
launchctl limit maxfiles
Re: [0.16.30] MAC OS: Too many files open when starting factorio
You can also use to find out which processes have files open, and how many.
Code: Select all
sudo lsof -n | cut -f1 -d' ' | uniq -c | sort | tail
Re: [0.16.30] MAC OS: Too many files open when starting factorio
output of launchctl limit maxfiles
maxfiles 256 unlimited
I do not know what the default is supposed to be here as I never changed that one
Also note that this issue never occured before and I have been playing factorio on that laptop for a long time now without any issue until the last update
maxfiles 256 unlimited
I do not know what the default is supposed to be here as I never changed that one
Also note that this issue never occured before and I have been playing factorio on that laptop for a long time now without any issue until the last update
Re: [0.16.30] MAC OS: Too many files open when starting factorio
in reply to sudo lsof -n | cut -f1 -d' ' | uniq -c | sort | tail
There is no process running that is hitting the max amount of files per processes and the sum of the file also does not exceed by far the max amount of files open for the whole system.
There is no process running that is hitting the max amount of files per processes and the sum of the file also does not exceed by far the max amount of files open for the whole system.
Re: [0.16.30] MAC OS: Too many files open when starting factorio
also if you are interested I have:
sysctl kern.maxfiles
set to 28000
and sysctl kern.maxfilesperproc
set to 24000
sysctl kern.maxfiles
set to 28000
and sysctl kern.maxfilesperproc
set to 24000
Re: [0.16.30] MAC OS: Too many files open when starting factorio
Is there any chance that this will be looked at and fixed ?
Re: [0.16.30] MAC OS: Too many files open when starting factorio
I remember catching this error when I tried to start the game with over 510 inactive mods
(Win10)
(The "Can't open dataloader.lua for reading: Too many open files" one)
(Win10)
(The "Can't open dataloader.lua for reading: Too many open files" one)
Re: [0.16.30] MAC OS: Too many files open when starting factorio
Huh, I learn something every day I wasn't aware the default open-file-handle limit was 512 using the C file API. At least on Windows it should now be 2048.Dimava wrote:I remember catching this error when I tried to start the game with over 510 inactive mods
(Win10)
(The "Can't open dataloader.lua for reading: Too many open files" one)
If you want to get ahold of me I'm almost always on Discord.
Re: [0.16.30] MAC OS: Too many files open when starting factorio
I'm getting 12544 as the default limit on macOS 10.13, so I'll try setting that on game startup and we'll see if it changes anything.
Re: [0.16.30] MAC OS: Too many files open when starting factorio
Has this been resolved with new versions of the game?
Re: [0.16.30] MAC OS: Too many files open when starting factorio
I still see the issue when trying to start the came from the finder application folder. When did the change get in ?