crashesdebuggingstability11 min read · updated 9/7/2026

How to actually find what is crashing your server

Crashes feel random and almost never are. There are four questions that identify the cause in nearly every case, and asking them in order is much faster than reinstalling things until it stops.

Debugging FiveM crashes: reading the dump instead of guessing

#Client crash or server crash?

They look the same to players and have nothing in common. If everyone is disconnected at once and the server console stops, the server crashed. If one person gets the FiveM crash dialog while everyone else keeps playing, that is a client crash.

EvidenceConclusion
Everyone disconnects simultaneouslyServer process died — check the console tail
One player, FiveM error dialogClient crash — usually a streamed asset
Everyone at the same place on the mapA specific MLO or streamed model
Everyone doing the same actionA script — find it by what the action triggers
Random, one player, always the same playerTheir GTA install or their mods, not your server

#The client crash dialog

FiveM shows a crash reason and a dump id. The reason is often more useful than people assume, even when it looks like noise.

  • A crash naming a .ytd or a .ydr is a streamed asset. The name is usually in the message — that is your answer.
  • A crash in gta-core or citizen-resources with no asset name is more often a pool exhaustion or a script doing something invalid.
  • Repeated crashes at the same coordinates point at map content, not scripts.
  • "Failed to load" during connection is a download or cache problem, not a crash at all.

#Bisection: finding the resource

When you cannot tell which resource is responsible, stop guessing and bisect. With 64 resources this takes six restarts, not sixty-four.

  1. 01 Confirm you can reproduce it

    If you cannot make it happen on demand, you cannot test a fix. Find the trigger first.

  2. 02 Halve the resource list

    Comment out half your ensure lines. Restart. Reproduce.

  3. 03 Follow the crash

    Crash still happens: the cause is in the running half. It stops: the cause is in the half you removed.

  4. 04 Repeat on that half

    Six iterations covers 64 resources.

  5. 05 Verify

    Start the suspect on its own with the framework and confirm the crash returns.

#Server crashes

The server writes the reason to the console immediately before dying. If you run it in a window that closes, you never see it — which is why running under txAdmin, systemd or tmux is not optional on a real server.

  • An unhandled Lua error will not usually kill the server; it kills the resource. If the whole process dies, look for native misuse or a memory problem.
  • Out of memory on a 32-bit-limited component shows as an abrupt exit with no Lua error at all.
  • A stack overflow from infinite recursion in a script does take the process down.
  • Repeated crashes at a fixed interval point at a timer — something on a schedule.
# keep the last 2000 lines when it dies
FXServer.exe +exec server.cfg > server.log 2>&1

# then read the end of it
tail -n 200 server.log

#The usual causes, ranked

CauseHow it presents
Duplicate streamed file namesRandom client crashes near specific content
A corrupt or badly converted modelConsistent crash on spawning one vehicle or entering one interior
Game build too low for the contentMissing models, then a crash when something references them
Pool exhaustionCrash after the server has been up a while, worse with more players
A resource looping without WaitClient freeze rather than a clean crash
Stale client cache after an updateOnly affects players who have played before, not new ones

#What crash dumps can and cannot tell you

A minidump contains the call stack at the moment of the crash. That reliably identifies the subsystem — streaming, script runtime, rendering — and it identifies a named asset when one is involved.

It does not tell you which resource shipped that asset, and it cannot tell you which Lua line was responsible, because the Lua runtime is several frames below the native crash. Use the dump to narrow the area, then bisect for the resource.

Questions

Only one player crashes. Is it my server?
Probably not. Have them clear their cache, verify their GTA install, and disable any client-side mods. If it follows them across servers, it is their install.
The server crashes every few hours with no error. What now?
Log to a file so you keep the last lines, then look at what is on a schedule. A crash at a regular interval is almost always a timer, a cron-like task or a scheduled restart script that is not doing what you think.
Can a minimap resource crash the game?
Only through a name collision with another minimap resource. It ships no scripts that run per frame and no models that can be spawned, so there is nothing to crash. If two minimap resources are running, remove one.

Ready to pick a map?

Twelve themes on three base map styles, $8 each, instant download.