Description

Generated from CrashReporter

Crash only occurs when packaged.

Steps to Reproduce
  1. Create a new project
  2. Create a New Basic Level saved as 'TestLevel'
  3. In the Project Settings set the Game Default Map to 'TestLevel'
  4. Create a new Niagara Module Script named 'NMS_Test'
    1. In the Map Get add these output pins: Audio Spectrum, Normalized Age, and Velocity
    2. Drag off the Audio Spectrum pin then create an Audio Spectrum node
    3. Connect the Normalized Age output to the Audio Spectrum node
    4. Drag off the Amplitude output then create a Multiply node with the Amplitude connected to A
    5. Connect the Velocity output from the Map Get node to the B input of the Multiply node
    6. Connect the Result output pin to Map Set
    7. Compile, save, and close the Script
  5. Create a new Niagara System using the 'New system from selected emitter(s)" with the Empty Template
    1. Select the + next to the Particle Update in the Niagara Overview Node
    2. Disable the Library Only option
    3. Search for and select 'NMS_Test'
    4. Compile, save, and close the Niagara System
  6. Place the Niagara System in 'TestLevel'
  7. Package for Windows
  8. Launch the packaged .exe

Expected Results:
The package launches and the level loads without issue

Actual Results:
The package crashes with an Assertion

Callstack
Assertion failed: IsInGameThread() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AudioThread.cpp] [Line: 663]

UnrealEditor-Engine!FAudioCommandFence::BeginFence() [AudioThread.cpp:663]
UnrealEditor-Niagara!FNiagaraSubmixListener::UnregisterFromSubmix() [NiagaraDataInterfaceAudio.cpp:85]
UnrealEditor-Niagara!7ffee8b90000  + 27f28d
UnrealEditor-Niagara!TSparseArray<TSetElement<TTuple<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> > > >,TSparseArrayAllocator<TSizedDefaultAllocator<32>,FDefaultBitArrayAllocator> >::~TSparseArray<TSetElement<TTuple<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> > > >,TSparseArrayAllocator<TSizedDefaultAllocator<32>,FDefaultBitArrayAllocator> >() [SparseArray.h:90]
UnrealEditor-Niagara!FNiagaraDataInterfaceProxySubmix::~FNiagaraDataInterfaceProxySubmix() [NiagaraDataInterfaceAudio.cpp:125]
UnrealEditor-Niagara!7ffee8b90000  + 288484
UnrealEditor-Niagara!static void TEnqueueUniqueRenderCommandType<`UNiagaraDataInterface::~UNiagaraDataInterface'::`5'::FDeleteProxyRTName,<lambda_2be8fd73f20955bc2d6c19c0bc635b97> >::DoTask(ENamedThreads::Type, const class TRefCountPtr<FGraphEvent> & const) [RenderingThread.h:193]
UnrealEditor-Niagara!static void TGraphTask<TEnqueueUniqueRenderCommandType<`UNiagaraDataInterface::~UNiagaraDataInterface'::`5'::FDeleteProxyRTName,<lambda_2be8fd73f20955bc2d6c19c0bc635b97> > >::ExecuteTask(class TArray<FBaseGraphTask *,TSizedDefaultAllocator<32> > & const, ENamedThreads::Type, bool) [TaskGraphInterfaces.h:975]
UnrealEditor-Core!FNamedTaskThread::ProcessTasksNamedThread(int,bool) [TaskGraph.cpp:753]
UnrealEditor-Core!FNamedTaskThread::ProcessTasksUntilQuit(int) [TaskGraph.cpp:642]
UnrealEditor-Core!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type) [TaskGraph.cpp:2115]
UnrealEditor-RenderCore!RenderingThreadMain(FEvent *) [RenderingThread.cpp:380]
UnrealEditor-RenderCore!FRenderingThread::Run() [RenderingThread.cpp:527]
UnrealEditor-Core!FRunnableThreadWin::Run() [WindowsRunnableThread.cpp:146]
UnrealEditor-Core!FRunnableThreadWin::GuardedRun() [WindowsRunnableThread.cpp:76]
KERNEL32!7fffc7340000  + 17034
ntdll!7fffc8650000  + 526a1

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Niagara
Affects Versions5.05.1
Target Fix5.1.1
Fix Commit23249254
Main Commit23250156
Release Commit23249254
CreatedOct 20, 2022
ResolvedNov 23, 2022
UpdatedDec 14, 2022