Skip to content

Tabbing out causes a crash #3758

@NNickey

Description

@NNickey

What happened?

When loaded into a server and able to play, experience is great.

On random occasion when going to check the browser or desktop applications via alt+tab or pressing the windows key to pull up the taskbar, the game would crash.

CfxCrashDump_2025_12_27_08_18_49.zip
CfxCrashDump_2025_12_29_09_56_27.zip
CfxCrashDump_2025_12_29_09_46_37.zip
CfxCrashDump_2025_12_29_08_29_20.zip
CfxCrashDump_2025_12_28_05_30_31.zip
CfxCrashDump_2025_12_28_05_12_55.zip
CfxCrashDump_2025_12_28_05_12_21.zip

Latest crash in windbg

CONTEXT:  (.ecxr)
rax=00000000ffffffff rbx=0000000002ba72ab rcx=b0c4416c130d0000
rdx=0000000000000000 rsi=000002c75dce4501 rdi=20c49ba5e353f700
rip=00007ffb914bb3b6 rsp=000000ebc8aff900 rbp=000000ebc8affa90
 r8=000002c4a651c200  r9=0000000000000000 r10=000002c4a64d0000
r11=000000ebc8aff8d0 r12=0000000000000000 r13=0000000000000011
r14=0000000000000000 r15=000000000000009f
iopl=0         nv up ei ng nz na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010286
citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0x11656:
00007ffb`914bb3b6 c70425edde000000000000 mov dword ptr [0DEEDh],0 ds:00000000`0000deed=????????
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ffb914bb3b6 (citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0x0000000000011656)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000001
   Parameter[1]: 000000000000deed
Attempt to write to address 000000000000deed

PROCESS_NAME:  FiveM_b3407_GTAProcess.exe

WRITE_ADDRESS:  000000000000deed 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  0000000000000001

EXCEPTION_PARAMETER2:  000000000000deed

STACK_TEXT:  
000000eb`c8aff900 00007ffb`914b8a77     : 00000000`00000000 00000000`00000000 00000000`02ba72ab 20c49ba5`e353f700 : citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0x11656
000000eb`c8aff990 00007ffb`914b4009     : 000002c5`546aa680 00000000`00000000 00000000`00000000 000002c5`546aa680 : citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0xed17
000000eb`c8affdf0 00007ffb`914af17c     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0xa2a9
000000eb`c8affe20 00007ffc`a90437b0     : 000002c5`546aa680 000002c5`3f5bde50 00000000`00000000 00000000`00000000 : citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+0x541c
000000eb`c8affe60 00007ffc`a9f7e8d7     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>+0x30
000000eb`c8affe90 00007ffc`abf4c53c     : 00000000`00000000 00000000`00000000 000004f0`fffffb30 000004d0`fffffb30 : kernel32!BaseThreadInitThunk+0x17
000000eb`c8affec0 00000000`00000000     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x2c


IP_IN_PAGED_CODE: 
citizen_devtools!fx::ResourceMonitor::SetShouldGetMemory+11656
00007ffb`914bb3b6 c70425edde000000000000 mov dword ptr [0DEEDh],0

SYMBOL_NAME:  citizen_devtools+2b3b6

MODULE_NAME: citizen_devtools

IMAGE_NAME:  citizen-devtools.dll

STACK_COMMAND: dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~162s; .ecxr ; kb

FAILURE_BUCKET_ID:  INVALID_POINTER_WRITE_c0000005_citizen-devtools.dll!Unknown

OS_VERSION:  10.0.26100.1

BUILDLAB_STR:  ge_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  1.0.0.23069

FAILURE_ID_HASH:  {8ef2000f-b4dd-7c97-d75d-42cd3e515b49}

Followup:     MachineOwner
---------

Expected result

Game should be stable and run in the background.

Reproduction steps

Launch and join a FiveM server with pure 1
Fly in and stand still
Tab out of the game from fullscreen at random, simulating checking something else.
Game freezes, driver timeout, and crash.

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

FiveM 23069, Windows 11

Additional information

AMD 25.12.1 drivers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions