Description

Assertion thrown when playing a packaged project containing NiagaraAudioSpectrum.

Steps to Reproduce
  1. Create a new Blank Blueprint project with out starter content
  2. Create a new Blank Level
  3. Create then open a new Niagara System
  4. Niagara System Setup:
    1. In the Parameters tab press the + next Particle Attributes
    2. Select Make New > Data Interface > Audio Spectrum
    3. Expand Particle attributes
    4. Click and Drag the New Audio Spectrum under the Particle Spawn in the Empty node in the graph
    5. Save and close the Niagara System
  5. Place the Niagara System into the level
  6. Save the Map containing the Niagara System as "NS_Map"
  7. In Project Settings > Maps & Modes set the Game Default Map to "NS_Map"
  8. Package the project for Windows then launch the exe

Expected Results:
Packaged game launches as expected>

Actual Results:
The packaged game crashes with and Assertion:

Assertion failed: IsInGameThread() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AudioThread.cpp] [Line: 663] 
Callstack
Error: === Critical error: ===
Error: 
Error: Assertion failed: IsInGameThread() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AudioThread.cpp] [Line: 663] 
Error: 
Error: 
Error: 
Error: [Callstack] 0x00007ff750560e17 UnrealGame.exe!FAudioCommandFence::BeginFence() []
Error: [Callstack] 0x00007ff74acfcbc2 UnrealGame.exe!FNiagaraSubmixListener::RegisterToSubmix() []
Error: [Callstack] 0x00007ff74ac9a1e2 UnrealGame.exe!FNiagaraDataInterfaceProxySubmix::AddSubmixListener() []
Error: [Callstack] 0x00007ff750578fea UnrealGame.exe!FAudioDeviceManager::IterateOverAllDevices() []
Error: [Callstack] 0x00007ff74acf22f8 UnrealGame.exe!FNiagaraDataInterfaceProxySubmix::OnUpdateSubmix() []
Error: [Callstack] 0x00007ff74acf78af UnrealGame.exe!UNiagaraDataInterfaceAudioSpectrum::PostInitProperties() []
Error: [Callstack] 0x00007ff74c296cfc UnrealGame.exe!FObjectInitializer::PostConstructInit() []
Error: [Callstack] 0x00007ff74c2681e4 UnrealGame.exe!FObjectInitializer::~FObjectInitializer() []
Error: [Callstack] 0x00007ff74c2ad3a3 UnrealGame.exe!StaticConstructObject_Internal() []
Error: [Callstack] 0x00007ff74bf8541b UnrealGame.exe!FAsyncPackage2::EventDrivenCreateExport() []
Error: [Callstack] 0x00007ff74bf90b27 UnrealGame.exe!FAsyncPackage2::Event_ProcessExportBundle() []
Error: [Callstack] 0x00007ff74bf94c83 UnrealGame.exe!FEventLoadNode2::Execute() []
Error: [Callstack] 0x00007ff74bfae986 UnrealGame.exe!FAsyncLoadEventQueue2::PopAndExecute() []
Error: [Callstack] 0x00007ff74bfcdc44 UnrealGame.exe!FAsyncLoadingThread2::Run() []
Error: [Callstack] 0x00007ff74bea9e4b UnrealGame.exe!FRunnableThreadWin::Run() []
Error: [Callstack] 0x00007ff74bea2d50 UnrealGame.exe!FRunnableThreadWin::GuardedRun() []
Error: [Callstack] 0x00007ff98dca7c24 KERNEL32.DLL!UnknownFunction []
Error: [Callstack] 0x00007ff98ed2d721 ntdll.dll!UnknownFunction []
Error: 
Error: Crash in runnable thread FAsyncLoadingThread

Have Comments or More Details?

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

16
Login to Vote

Fixed
ComponentUE - Audio - Submixes
Affects Versions5.0.15.0.2
Target Fix5.3
Fix Commit25392818
Main Commit25392818
Release Commit25807496
CreatedMay 16, 2022
ResolvedMay 9, 2023
UpdatedJun 15, 2023
View Jira Issue