Description

This is a regression. Tested in //UE5/Release-5.1 CL23901901

The editor crashes after playing in editor when the level contains a niagara system with a scratch pad outputing audio spectrum.

Steps to Reproduce
  1. Create or open any project
  2. Create a New Empty Niagara System
    1. Right click in the Content Browser then select a new Niagara System
    2. Select New System From Selected Emitter(s)
    3. Select Empty from the templates list then select the green +
    4. Select Finish
  3. In the Empty Niagara Overview Node select the + next to the Particle Update
  4. Search for then select the Scratch Pad
  5. In the Scratch Pad select the + in the Map Get node then choose Audio Spectrum
  6. Drag off the Audio Spectrum output pin then create an Audio Spectrum node
  7. Connect the Amplitude output pin of the Audio Spectrum node to the input pin of the Map Set node
  8. Select Apply Scratch, save, and close the Niagara System
  9. Add the Niagara System to the level
  10. Play in Editor

Expected Results:
Level plays as usual

Actual Results:
The Editor Crashes with an Unhandled Exception

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
Callstack
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
UnrealEditor_Niagara!FNiagaraDataInterfaceProxySubmix::AddSubmixListener() [D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraDataInterfaceAudio.cpp:191]
UnrealEditor_Niagara!TBaseRawMethodDelegateInstance<0,FNiagaraDataInterfaceProxySubmix,void __cdecl(unsigned int),FDefaultTSDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:425]
UnrealEditor_Engine!TMulticastDelegate<void __cdecl(unsigned int),FDefaultTSDelegateUserPolicy>::Broadcast() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:988]
UnrealEditor_Engine!FAudioDeviceManager::CreateNewDevice() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:752]
UnrealEditor_Engine!FAudioDeviceManager::RequestAudioDevice() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:477]
UnrealEditor_Engine!UGameViewportClient::Init() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameViewportClient.cpp:527]
UnrealEditor_UnrealEd!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:3075]
UnrealEditor_UnrealEd!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1680]
UnrealEditor_UnrealEd!UEditorEngine::CreateNewPlayInEditorInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1943]
UnrealEditor_UnrealEd!UEditorEngine::StartPlayInEditorSession() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2956]
UnrealEditor_UnrealEd!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1257]
UnrealEditor_UnrealEd!UEditorEngine::StartQueuedPlaySessionRequest() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1160]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1792]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:519]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5812]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:284]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-188716 in the post.

0
Login to Vote

Cannot Reproduce
ComponentUE - Niagara
Affects Versions5.2
Target Fix5.3
CreatedJun 14, 2023
ResolvedJul 27, 2023
UpdatedAug 7, 2023