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

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!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) []
LogAndroid: Error: [Callstack] 0x00000000D6FD5DD0!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1]) []
LogAndroid: Error: [Callstack] 0x00000000D4AEA68C!Audio::FMixerSourceManager::Update() []
LogAndroid: Error: [Callstack] 0x00000000D4AF4BF4!Audio::FMixerSourceManager::FlushCommandQueue(bool) []
LogAndroid: Error: [Callstack] 0x00000000D4ED0C10!FAudioDevice::Flush(UWorld*, bool) []
LogAndroid: Error: [Callstack] 0x00000000D4ECF344!FAudioDevice::Teardown() []
LogAndroid: Error: [Callstack] 0x00000000D4EF53FC!FAudioDeviceManager::ShutdownAudioDevice(unsigned int) []
LogAndroid: Error: [Callstack] 0x00000000D4EF5524!FAudioDeviceManager::ShutdownAllAudioDevices() []
LogAndroid: Error: [Callstack] 0x00000000D5B02AD0!UEngine::ShutdownAudioDeviceManager() []
LogAndroid: Error: [Callstack] 0x00000000D273845C!FEngineLoop::Exit() []
LogAndroid: Error: [Callstack] 0x00000000D27293F0!AndroidMain(android_app*) []
LogAndroid: Error: [Callstack] 0x00000000D2738B30!android_main() []
LogAndroid: Error: [Callstack] 0x00000000D2759DB8![Unknown]() []
LogAndroid: Error: [Callstack] 0x00000000F642B8D4![Unknown]() []
LogAndroid: Error: [Callstack] 0x00000000F63FDFE6![Unknown]() []

Have Comments or More Details?

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

Login to Vote

Affects Versions4.224.23
Target Fix4.23
Fix Commit7950850
Main Commit6549555
Release Commit7950850
CreatedApr 30, 2019
ResolvedAug 12, 2019
UpdatedFeb 25, 2020