My packaged game crashes when I use 'Open level by name node'.

When I play my game in the editor or standalone game it runs fine and the open level node works as expected. The player enters the main menu, hits the play button and then when they progress to the next level it works fine. However, when I package my game and load the player into the game the same way, the game gives me a fatal error when I load the player into the next level.

This is the blueprint that loads the next level. I thought that the event tick that runs to check for players in the zombie class might be an issue when loading the next level to I decided to destroy the actors before loading first. This did not fix the issue.

In the callstack inside the CrashContext/runtime-xml I found this:

</CallStack>
<IsCrashed>true</IsCrashed>
<Registers></Registers>
<ThreadID>25648</ThreadID>
<ThreadName>Foreground Worker #0</ThreadName>
</Thread>
<Thread><CallStack>ntdll                       0x00007ffd7b170000 + 9ecd4           
KERNELBASE                  0x00007ffd787b0000 + 39bde           
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 163415d         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 14f2b3d         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 14f3c1e         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 14e2750         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 153a244         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 1632677         
StaleNation-Win64-Shipping  0x00007ff6e8ec0000 + 162dbb1         
KERNEL32                    0x00007ffd7a560000 + 1269d           
ntdll                       0x00007ffd7b170000 + 5a9f8           
</CallStack>

Why is my game crashing in the packaged game but not in the editor or standalone?

1 Like

A couple of wild stabs in the dark:

  1. Make the level name shorter

  2. Use the whole path to the level /Game/…

I tried using Open Level (By Object Reference) and faced the same issue.

Is there a character limit for level names?

1 Like

Here is the output log just before the crash.

Probably, and it’s much bigger than that. Just a couple of wild guesses, really.

Interesting that the critical part is about audio. Can’t imagine how that has anything to do with anything… :slight_smile:

It could just be overwhelmed in some way, and that’s a random part that breaks. But…

I would try running the game in editor with the console open. Take a look at warnings and errors you get during the run. That could well point you in the right direction.

Packaged is more strict that editor.

Ill do that now. Ill reply to you if I find something and dont know what to do about it. Thank you for helping me.

1 Like

No worries. I know these post build errors are a pain…

1 Like

I tried what you suggested but the audio fatal error when loading a new level still occurs.

Here is my error log.

[2023.04.18-04.47.33:063][884]LogThreadingWindows: Error: Runnable thread Background Worker #11 crashed.
[2023.04.18-04.47.33:063][884]LogWindows: Error: === Critical error: ===
[2023.04.18-04.47.33:063][884]LogWindows: Error:
[2023.04.18-04.47.33:063][884]LogWindows: Error: Fatal error!
[2023.04.18-04.47.33:063][884]LogWindows: Error:
[2023.04.18-04.47.33:063][884]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000000000000002c
[2023.04.18-04.47.33:063][884]LogWindows: Error:
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728d6f3e7 GameTest.exe!FAudioDevice::FindNextHighestEQPrioritySoundMix()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728d9a158 GameTest.exe!FAudioDevice::TryClearingEQSoundMix()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728d9a294 GameTest.exe!FAudioDevice::TryClearingSoundMix()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728d7f6a4 GameTest.exe!FAudioDevice::PopSoundMixModifier()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728da1e8a GameTest.exe!FAudioDevice::UpdatePassiveSoundMixModifiers()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728d9db6d GameTest.exe!FAudioDevice::Update()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728daeb48 GameTest.exe!FBasedPosition::operator*()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728dafcee GameTest.exe!<lambda_da1395aeabd8fb90bd356aeb534dc160>::operator()()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7240c3314 GameTest.exe!UE::Tasks::Private::FTaskBase::DoExecute()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff728db857b GameTest.exe!LowLevelTasks::TTaskDelegate<void __cdecl(bool),48>::TTaskDelegateImpl<<lambda_17066d865a8a2e693f6af807b05f5b46>,0>::CallAndMove()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7240c5796 GameTest.exe!LowLevelTasks::FTask::ExecuteTask()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7240ae2bd GameTest.exe!LowLevelTasks::FScheduler::TryExecuteTaskFrom<&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7240e3e12 GameTest.exe!LowLevelTasks::FScheduler::WorkerMain()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7240b7d10 GameTest.exe!UE::Core::Private::Function::TFunctionRefCaller<<lambda_3277f5600efe2aa6f5f67d459ec105a9>,unsigned __int64 __cdecl(unsigned __int64)>::Call()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff7241fd805 GameTest.exe!FThreadImpl::Run()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff72471fd9b GameTest.exe!FRunnableThreadWin::Run()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ff724718a10 GameTest.exe!FRunnableThreadWin::GuardedRun()
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ffd7a57269d KERNEL32.DLL!UnknownFunction
[2023.04.18-04.47.33:063][884]LogWindows: Error: [Callstack] 0x00007ffd7b1ca9f8 ntdll.dll!UnknownFunction
[2023.04.18-04.47.33:063][884]LogWindows: Error:
[2023.04.18-04.47.33:063][884]LogWindows: Error: Crash in runnable thread Background Worker #11
[2023.04.18-04.47.33:092][884]LogExit: Executing StaticShutdownAfterError
[2023.04.18-04.47.33:092][884]LogWindows: FPlatformMisc::RequestExit(1)
[2023.04.18-04.47.33:092][884]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
[2023.04.18-04.47.33:092][884]LogCore: Engine exit requested (reason: Win RequestExit)
[2023.04.18-04.47.33:130][884]Log file closed, 04/17/23 23:47:33

Bump - Still need help with this issue.

No idea, sorry. Did you get any console errors in the editor?

There was a similar thread on reddit where a worker thread crashed on prioritysoundmix.
One of the redditors mentioned to close all sound before “level transport”. (seemed a bit broken English).

If the audio is threaded & running then this might be the problem causing the crash.

Before the level travel try calling:
“Clear sound mix modifiers”, “Clear Sound Mix class override” and stopping non essential sounds and see if the problem persists.

in c++ you can close all audio via

  FAudioDevice* Device = AudioComponent->GetAudioDevice();
   if(Device != nullptr)
   {
   	Device->StopAllSounds(true);
   }

What would the BP equivalent be?

Not sure if it’s possible in pure blueprints but a sound class mix might be enough to do the work behind the scenes. It does hook into the equalizer mixer, that seems to be a problem as it’s the threaded part that is blocking the travel.

So in theory it might help if you use a muted profile. Or you could try clearing the asset keeping it empty. Experimentation is required.

A tutorial on how to use it

2 Likes

It worked. The solution was to use the following nodes in my BP before level load.

Lol now when I opened up a widget in the loaded level it gives me a different fatal error.

indows: Error: === Critical error: ===
[2023.04.19-03.34.58:571][ 74]LogWindows: Error:
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: Fatal error!
[2023.04.19-03.34.58:571][ 74]LogWindows: Error:
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2023.04.19-03.34.58:571][ 74]LogWindows: Error:
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7408cf575 GameTest.exe!FText::IdenticalTo()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7417b36e4 GameTest.exe!SlateAttributePrivate::TSlateAttributeBase<SWidget,FText,SlateAttributePrivate::FSlateAttributeNoInvalidationReason,TSlateAttributeFTextComparePredicate,0>::FSlateAttributeGetterWrapper<SlateAttributePrivate::TSlateAttributeBase<SWidget,FText,SlateAttributePrivate::FSlateAttributeNoInvalidationReason,TSlateAttributeFTextComparePredicate,0> >::UpdateAttribute()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff74141409c GameTest.exe!FSlateAttributeMetaData::UpdateAttributesImpl()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c87cd GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c885b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7413c886b GameTest.exe!TMapBase<FName,FTrackedWidgetsChangedEvent,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FTrackedWidgetsChangedEvent,0> >::FindOrAddImpl<FName const & __ptr64>()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741404222 GameTest.exe!SWidget::Prepass_Internal()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741410301 GameTest.exe!SWidget::SlatePrepass()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741503b0b GameTest.exe!FMenuStack::PrePush()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7414e0178 GameTest.exe!FSlateApplication::DrawPrepass()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741504354 GameTest.exe!FSlateApplication::PrivateDrawWindows()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff741527953 GameTest.exe!FSlateApplication::TickAndDrawWidgets()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff74152713d GameTest.exe!FSlateApplication::Tick()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff73edabd69 GameTest.exe!FEngineLoop::Tick()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff73edc2c0c GameTest.exe!GuardedMain()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff73edc2cda GameTest.exe!GuardedMainWrapper()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff73edc5d5c GameTest.exe!LaunchWindowsStartup()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff73edd7514 GameTest.exe!WinMain()
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ff7474411da GameTest.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ffd7a57269d KERNEL32.DLL!UnknownFunction
[2023.04.19-03.34.58:571][ 74]LogWindows: Error: [Callstack] 0x00007ffd7b1ca9f8 ntdll.dll!UnknownFunction
[2023.04.19-03.34.58:571][ 74]LogWindows: Error:
[2023.04.19-03.34.58:605][ 74]LogExit: Executing StaticShutdownAfterError
[2023.04.19-03.34.58:606][ 74]LogWindows: FPlatformMisc::RequestExit(1)
[2023.04.19-03.34.58:606][ 74]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
[2023.04.19-03.34.58:606][ 74]LogCore: Engine exit requested (reason: Win RequestExit)
[2023.04.19-03.34.58:628][ 74]Log file closed, 04/18/23 22:34:58

Blockquote

Seems like you might be trying to access a pointer to an unitialized widget. Its either missing in the package or its still a nullptr.

So checking if its valid should work.

You can also try to force adding spawned widgets at runtime to the packaging process.