I get memory access violation crash and i can't figure out where

The crash happens pretty unpredictable, and debug mode gives 0 information:


And if not debug mode i get this:

  • thread #1, name = ‘GameThread’, stop reason = Exception 0xc0000005 encountered at address 0x7fffbb12c969: Access violation reading location 0xffffffffffffffff
    • frame #0: 0x00007fffbb12c969 UnrealEditor-Core.dll
      frame #1: 0x00007fffbb12d105 UnrealEditor-Core.dll
      frame #2: 0x00007fffbb1302f3 UnrealEditor-Core.dll
      frame #3: 0x00007fffbaa8d5b7 UnrealEditor-Core.dll
      frame #4: 0x00007fffbaa8da73 UnrealEditor-Core.dll
      frame #5: 0x00007fffba957768 UnrealEditor-Core.dll
      frame #6: 0x00007fffba8ba8ea UnrealEditor-Core.dll
      frame #7: 0x00007fffba96e965 UnrealEditor-Core.dll
      frame #8: 0x00007fff99685b16 UnrealEditor-SceneOutliner.dll
      frame #9: 0x00007fff9972e649 UnrealEditor-SceneOutliner.dll
      frame #10: 0x00007fff9974a19b UnrealEditor-SceneOutliner.dll
      frame #11: 0x00007fff9972f3cf UnrealEditor-SceneOutliner.dll
      frame #12: 0x00007fffbefe5755 UnrealEditor-SlateCore.dll
      frame #13: 0x00007fffbf01bf1c UnrealEditor-SlateCore.dll
      frame #14: 0x00007fffbefe7858 UnrealEditor-SlateCore.dll
      frame #15: 0x00007fffbefe64da UnrealEditor-SlateCore.dll
      frame #16: 0x00007fffbf01bf1c UnrealEditor-SlateCore.dll
      frame #17: 0x00007fffbf75b53e UnrealEditor-Slate.dll
      frame #18: 0x00007fffbf01bf1c UnrealEditor-SlateCore.dll
      frame #19: 0x00007fffbefe7858 UnrealEditor-SlateCore.dll
      frame #20: 0x00007fffbefe64da UnrealEditor-SlateCore.dll
      frame #21: 0x00007fffbf01bf1c UnrealEditor-SlateCore.dll
      frame #22: 0x00007fffbefe58af UnrealEditor-SlateCore.dll
      and so on until kernel32.dll

it seems something with UI, but i have no clue where, i have pointer checks if its nullptr for every single UI component access point, and if it were to crash on one of them it would show the line where it crashed, this crash doesnt show a single clue where i should look, could anyone help out, or is it just UE 5.5.3 bug that i dont know of?

hey, have you tried checking slate tick updates? since SlateCore is in the stack an invalid UI pointer might be getting dereferenced during an UI update cycle

also check OnDestroy() and OnRemove() functions if your UI is getting destroyed and still referenced elsewhere, that would cause an access violation

I would highly suggest getting the debug symbols for your engine version (available from launcher by going to your engine version, selecting options and ticking Debug Symbols). This will show more information on where the crash actually is.

Without this you are basically poking around in the dark without a torch.

yeah it seems like something inside UI tick.. i need to figure out where hmm

thank you for telling me to enable it, now i get more readable format, still i need to figure out why it happens:


something with AddBoxElements and Array resizing hmm