Description

This assertion seems to occur when closing the project while a sound is playing on the device.

Assertion failed: CommandBuffers[NextIndex].SourceCommandQueue.Num() == 0 [File:D:/P4Workspaces/Switch_3/Engine/Source/Runtime/AudioMixer/Private/AudioMixerSourceManager.cpp] [Line: 300]

Occurs in
//Partner-Oculus @6161828
//UE4/Dev-VR @6154093
//UE4/Main @6257301

checking Release 4.22

Repro: 100% 10/10

 

Steps to Reproduce
  1. Create a new First Person template Code Project.
  2. Open the Project 
  3. Configure you project for Android:
    1. Press Configure Now
    2. Minimum Android SDK = 21
    3. Target Android SDK = 21
    4. Add an Array element to Package for Oculus Mobile devices and set it to Oculus Go or Oculus Quest depending on the tested device.
  4. Package the project for Android (ETC2)
  5. Install to your Oculus Mobile Device
  6. Open Android Device Monitor to get logs for your connected Oculus Mobile device.
  7. Launch the project on your device.
  8. ALTERNATE REPRO: Just exit whenever. (Seeing this assert without needing to play any sounds) -AJ
  9. Pull the trigger on your controller to shoot some bullets to trigger the gun sounds.
  10. While shooting press the home button and quit out of the game
  11. Refer to the Android Device Monitor for logging 

Results: An Assertion will be visible in the logs in the Android Device Monitor.

Expected: No errors or warnings visible closing and opening the project

Callstack
Assertion failed: CommandBuffers[NextIndex].SourceCommandQueue.Num() == 0 [File:D:/P4Workspaces/Switch_3/Engine/Source/Runtime/AudioMixer/Private/AudioMixerSourceManager.cpp] [Line: 300] 
LogAndroid: Error: === Critical error: ===
LogAndroid: Error: 
LogAndroid: Error: Assertion failed: CommandBuffers[NextIndex].SourceCommandQueue.Num() == 0 [File:D:/P4Workspaces/Switch_3/Engine/Source/Runtime/AudioMixer/Private/AudioMixerSourceManager.cpp] [Line: 300] 
LogAndroid: Error: 
LogAndroid: Error: [Callstack] 0x00000000D2F242A0 libUE4.so(0x00000000039E82A0)!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) []
LogAndroid: Error: [Callstack] 0x00000000D6FD5DD0 libUE4.so(0x0000000007A99DD0)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1]) []
LogAndroid: Error: [Callstack] 0x00000000D4AEA68C libUE4.so(0x00000000055AE68C)!Audio::FMixerSourceManager::Update() []
LogAndroid: Error: [Callstack] 0x00000000D4AF4BF4 libUE4.so(0x00000000055B8BF4)!Audio::FMixerSourceManager::FlushCommandQueue(bool) []
LogAndroid: Error: [Callstack] 0x00000000D4ED0C10 libUE4.so(0x0000000005994C10)!FAudioDevice::Flush(UWorld*, bool) []
LogAndroid: Error: [Callstack] 0x00000000D4ECF344 libUE4.so(0x0000000005993344)!FAudioDevice::Teardown() []
LogAndroid: Error: [Callstack] 0x00000000D4EF53FC libUE4.so(0x00000000059B93FC)!FAudioDeviceManager::ShutdownAudioDevice(unsigned int) []
LogAndroid: Error: [Callstack] 0x00000000D4EF5524 libUE4.so(0x00000000059B9524)!FAudioDeviceManager::ShutdownAllAudioDevices() []
LogAndroid: Error: [Callstack] 0x00000000D5B02AD0 libUE4.so(0x00000000065C6AD0)!UEngine::ShutdownAudioDeviceManager() []
LogAndroid: Error: [Callstack] 0x00000000D273845C libUE4.so(0x00000000031FC45C)!FEngineLoop::Exit() []
LogAndroid: Error: [Callstack] 0x00000000D27293F0 libUE4.so(0x00000000031ED3F0)!AndroidMain(android_app*) []
LogAndroid: Error: [Callstack] 0x00000000D2738B30 libUE4.so(0x00000000031FCB30)!android_main() []
LogAndroid: Error: [Callstack] 0x00000000D2759DB8 libUE4.so(0x000000000321DDB8)![Unknown]() []
LogAndroid: Error: [Callstack] 0x00000000F642B8D4 libc.so(0x00000000000478D4)![Unknown]() []
LogAndroid: Error: [Callstack] 0x00000000F63FDFE6 libc.so(0x0000000000019FE6)![Unknown]() []

Have Comments or More Details?

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

7
Login to Vote

Fixed
ComponentUE - Audio
Affects Versions4.224.23
Target Fix4.23
Fix Commit7950850
Main Commit6549555
Release Commit7950850
CreatedApr 30, 2019
ResolvedAug 12, 2019
UpdatedFeb 25, 2020
View Jira Issue