Fatal Error when packaging game for Windows

This issue only occurs with one of my games widgets/ When I hit the keybind to open the widget the game crashes and produces the following log.

[2023.04.22-17.30.43:898][718]LogSlate: Took 0.000337 seconds to synchronously load lazily loaded font '../../../StaleNation/Content/Fonts/ReenieBeanie/ReenieBeanie-Regular.ufont' (138K)
[2023.04.22-17.30.55:411][718]LogWindows: Could not start crash report client using ../../../Engine/Binaries/Win64/CrashReportClient-Win64-Debug.exe
[2023.04.22-17.30.55:411][718]LogMemory: Platform Memory Stats for Windows
[2023.04.22-17.30.55:411][718]LogMemory: Process Physical Memory: 3122.39 MB used, 4410.74 MB peak
[2023.04.22-17.30.55:411][718]LogMemory: Process Virtual Memory: 6724.11 MB used, 7932.04 MB peak
[2023.04.22-17.30.55:411][718]LogMemory: Physical Memory: 32839.22 MB used,  32556.09 MB free, 65395.31 MB total
[2023.04.22-17.30.55:411][718]LogMemory: Virtual Memory: 50234.75 MB used,  19256.57 MB free, 69491.31 MB total
[2023.04.22-17.30.55:411][718]Message dialog closed, result: Ok, title: The UE5-StaleNation Game has crashed and will close, text: Fatal error!


[2023.04.22-17.30.55:411][718]LogWindows: Error: === Critical error: ===
[2023.04.22-17.30.55:411][718]LogWindows: Error: 
[2023.04.22-17.30.55:411][718]LogWindows: Error: Fatal error!
[2023.04.22-17.30.55:411][718]LogWindows: Error: 
[2023.04.22-17.30.55:411][718]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2023.04.22-17.30.55:411][718]LogWindows: Error: 
[2023.04.22-17.30.55:411][718]LogWindows: Error: [Callstack] 0x00007ff7945bfa05 StaleNation-Win64-DebugGame.exe!FText::IdenticalTo() []
[2023.04.22-17.30.55:411][718]LogWindows: Error: [Callstack] 0x00007ff7954a3b74 StaleNation-Win64-DebugGame.exe!SlateAttributePrivate::TSlateAttributeBase<SWidget,FText,SlateAttributePrivate::FSlateAttributeNoInvalidationReason,TSlateAttributeFTextComparePredicate,0>::FSlateAttributeGetterWrapper<SlateAttributePrivate::TSlateAttributeBase<SWidget,FText,SlateAttributePrivate::FSlateAttributeNoInvalidationReason,TSlateAttributeFTextComparePredicate,0> >::UpdateAttribute() []
[2023.04.22-17.30.55:411][718]LogWindows: Error: [Callstack] 0x00007ff79510452c StaleNation-Win64-DebugGame.exe!FSlateAttributeMetaData::UpdateAttributesImpl() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8c5d StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8ceb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950b8cfb StaleNation-Win64-DebugGame.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7950f46b2 StaleNation-Win64-DebugGame.exe!SWidget::Prepass_Internal() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff795100791 StaleNation-Win64-DebugGame.exe!SWidget::SlatePrepass() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7951f3f9b StaleNation-Win64-DebugGame.exe!FMenuStack::PrePush() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7951d0608 StaleNation-Win64-DebugGame.exe!FSlateApplication::DrawPrepass() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7951f47e4 StaleNation-Win64-DebugGame.exe!FSlateApplication::PrivateDrawWindows() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff795217de3 StaleNation-Win64-DebugGame.exe!FSlateApplication::TickAndDrawWidgets() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff7952175cd StaleNation-Win64-DebugGame.exe!FSlateApplication::Tick() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff792a9bd09 StaleNation-Win64-DebugGame.exe!FEngineLoop::Tick() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff792ab2bac StaleNation-Win64-DebugGame.exe!GuardedMain() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff792ab2c7a StaleNation-Win64-DebugGame.exe!GuardedMainWrapper() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff792ab5cfc StaleNation-Win64-DebugGame.exe!LaunchWindowsStartup() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff792ac74c4 StaleNation-Win64-DebugGame.exe!WinMain() []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ff79b13165a StaleNation-Win64-DebugGame.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ffc401c269d KERNEL32.DLL!UnknownFunction []
[2023.04.22-17.30.55:412][718]LogWindows: Error: [Callstack] 0x00007ffc41e6a9f8 ntdll.dll!UnknownFunction []
[2023.04.22-17.30.55:412][718]LogWindows: Error: 
[2023.04.22-17.30.55:430][718]LogExit: Executing StaticShutdownAfterError
[2023.04.22-17.30.55:432][718]LogWindows: FPlatformMisc::RequestExit(1)
[2023.04.22-17.30.55:432][718]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
[2023.04.22-17.30.55:432][718]LogCore: Engine exit requested (reason: Win RequestExit)
[2023.04.22-17.30.55:470][718]Log file closed, 04/22/23 12:30:55

Using print statements I found that the issue comes inside the widget and not the code that opens it. Please help me resolve this sisue.

Bump → Still need help

@GarboJunkie did you ever fix this?

Greetings @fxmagnusson

Welcome back to the Unreal Engine Forum! Are you experiencing the same issue as above? If so, here are a few things that have been used to resolve this error. (It can be caused by a few different things, including hardware)

  1. Go into your NVidia Control Panel and reset your settings to Global Default

  2. Ensure that you’ve gone to the applications EXE that is having the problem and try running it as administrator

  3. Uninstalling/Reinstalling GPU Drivers(You may need to use an uninstaller to ensure the drivers are properly uninstalled before reinstalling fresh)

These three options cover a wide array of possible causes. If it continues after that, post back and I’ll look into additional options with you. I hope this helps!