[2.0.72] Crash running headless server

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

[2.0.72] Crash running headless server

Post by jackliey »

I've been running a headless server on a Ubuntu 24.04.3 LTS server in a Docker container, but have encountered unexpected crashes multiple times. Sometimes it runs for an hour and crashes, and sometimes it crashes after just 5 minutes. There have also been some desyncs.

I play on the server with a friend of mine via a Tailscale (more information on https://tailscale.com/kb/1017/install)).

Mods
- Base mod
- Elevated Rails
- Quality
- Auto Research (fixed + re-published)
- Better StarMap Background
- Factorio Library
- HD PlanetsRenders
- Inserter Throughput
- Rate Calculator
- Stats GUI
- Visible Planets in Space

Docker image where I'm pulling from: https://hub.docker.com/r/factoriotools/factorio/
Google Drive link to save file: https://drive.google.com/file/d/1eaAz9e ... sp=sharing
Attachments
factorio-current.log
(16.11 KiB) Downloaded 13 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] Crash running headless server

Post by Rseding91 »

This log shows it crashed in malloc - likely running out of RAM. Do you have any of the other log files?
If you want to get ahold of me I'm almost always on Discord.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

Re: [2.0.72] Crash running headless server

Post by jackliey »

First of all, thanks for the quick reply!

I've added another log file to the attachments. This one was generated from a session after the first one I've uploaded.
Attachments
factorio-previous.log
(22.43 KiB) Downloaded 9 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] Crash running headless server

Post by Rseding91 »

That log is showing it crashing inside the TransportBelt logic (completely unrelated to the first crash).
If you want to get ahold of me I'm almost always on Discord.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

Re: [2.0.72] Crash running headless server

Post by jackliey »

Apologies, should've caught it before uploading it. Unfortunately that's all I have for now. I'm going to let the server run overnight and hopefully get some more info.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] Crash running headless server

Post by Rseding91 »

Sorry, what I meant to imply is: beacuse the two crashes are not related it makes me think failing/failed hardware. Neither crash is one I've seen before and both are in places that execute multiple times per tick virtually every game tick. That makes me highly skeptical that there's any actual engine bug. Every time this kind of pattern has shown up in the past it was eventually traced to the persons hardware failing (bad RAM/bad CPU).
If you want to get ahold of me I'm almost always on Discord.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

Re: [2.0.72] Crash running headless server

Post by jackliey »

Ran a stress test on the CPU and a memtest, but found no errors. Also checked if the CPU might overheat which was not the case (and checked fans and thermal paste to be sure).
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] Crash running headless server

Post by Rseding91 »

If you'd like, you can keep posting new crash logs. However, Factorio it turns out is a better test of hardware than purpose-built stress testing software. The past 10 years of Factorio has shown that to be true: Factorio will expose instabilities in peoples systems that they otherwise can't reproduce with memory/CPU testing software.
If you want to get ahold of me I'm almost always on Discord.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

Re: [2.0.72] Crash running headless server

Post by jackliey »

Which is why Factorio is truly a great game :). But in all seriousness, thanks for the help so far. I will keep an eye out for any new crash logs and might test some things here and there on my own.
jackliey
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Nov 10, 2025 1:30 pm
Contact:

Re: [2.0.72] Crash running headless server

Post by jackliey »

Update: Tried the exact same setup on another machine and it ran flawlessly. It's just as you've said that it's most likely a hardware issue rather than something wrong with the Factorio engine.
Post Reply

Return to “Technical Help”