Reproducible crash: INVALID_POINTER_WRITE (0xc0000005) in citizen-devtools.dll after ~20 minutes

FiveM consistently crashes after approximately 20 minutes of gameplay.

The game freezes completely, the image stops updating, the sound loops, and after about one minute FiveM crashes to the desktop. Windows remains fully responsive, and only FiveM crashes.

I have analyzed all of the generated crash dumps with WinDbg. Every single dump reports exactly the same error:

  • Failure.Bucket: INVALID_POINTER_WRITE_c0000005_citizen-devtools.dll!Unknown
  • Module: citizen-devtools.dll
  • Exception Code: 0xc0000005 (Access Violation)
  • Function: fx::ResourceMonitor::SetShouldGetMemory
  • Attempt to write to address: 0x000000000000DEED

The crash is fully reproducible on my system and every dump is identical.

Expected result

FiveM should continue running without freezing or crashing.

Reproduction steps

  1. Launch FiveM.
  2. Join the SEE RPG server.
  3. Play normally.
  4. After approximately 20 minutes, the game freezes completely.
  5. About one minute later, FiveM crashes to the desktop and generates a crash dump.

What I have already tried

  • Completely reinstalled FiveM.
  • Deleted all FiveM folders and cache.
  • Verified the GTA V installation.
  • Updated my NVIDIA graphics driver.
  • Confirmed that CPU and GPU temperatures are normal (no overheating).
  • Closed overlays and unnecessary background applications.
  • Ensured there is sufficient free space on the system drive (24 GB free).
  • The issue still occurs after a clean FiveM installation.

Additional information

The problem only occurs on the SEE RPG server.

I have not experienced this specific crash on other servers, but I also do not regularly play elsewhere.

I can provide all crash dump files if needed, and every dump contains the same INVALID_POINTER_WRITE_c0000005_citizen-devtools.dll error.

Hello this freeze, followed by a crash after 18-20 minutes is related to a race condition with the Steam Overlay.

We have found that if the server you are on does not require Steam, you can get around the issue by fully closing Steam before starting FiveM

image

If the server requires Steam, you can experiment with this setting, maybe it will help