# Crash: NumActiveAudioDevices == 0

**URL:** <https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329>\
**Category:** Audio\
**Tags:** engine, unreal-engine, crash, bug-report, question\
**Created:** [March 14, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329 "2019-03-14T20:57:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_96bfbf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_96bfbf95](https://forums.unrealengine.com/u/anonymous_user_96bfbf95)\
**Post date:** [March 14, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/1 "2019-03-14T20:57:26Z")

</div>

For the past couple of days i’ve been getting this crash a lot while playing (only when playing not when developing). I’ve looked through the forums but couldn’t find anything on it, and i have no idea what the problem is. This it the crash report, thanks anyone for the help :).

Assertion failed: NumActiveAudioDevices == 0 [File:C:\Software\EpicGames\UE421\UnrealEngine-release\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp] [Line: 513]

UE4Editor\_Core!FDebug::AssertFailed() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:417]  
UE4Editor\_Engine!FAudioDeviceManager::ShutdownAllAudioDevices() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\engine\private\audiodevicemanager.cpp:514]  
UE4Editor\_Engine!UEngine::ShutdownAudioDeviceManager() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\engine\private\unrealengine.cpp:1635]  
UE4Editor!FEngineLoop::Exit() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\launch\private\launchengineloop.cpp:3163]  
UE4Editor!GuardedMain() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\launch\private\launch.cpp:185]  
UE4Editor!GuardedMainWrapper() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]  
UE4Editor!WinMain() [c:\software\epicgames\ue421\unrealengine-release\engine\source\runtime\launch\private\windows\launchwindows.cpp:276]  
UE4Editor!\_\_scrt\_common\_main\_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe\_common.inl:288]  
kernel32  
ntdll

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 14, 2019, 9:38pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/2 "2019-03-14T21:38:19Z")

</div>

Assert Failed means that desired cosition failed, it hapens on ShutdownAllAudioDevices() which is obviously attempted to shut down audio system. The failed condition hints that UE4 failed to shut down the audio device objects as it raports there some active once.

You need to explain situation more, what kind of project is it, you do any C++ stuff? you involve any audio on C++ side? When crash exactly happens? the call stack suggest engine shutdown, is it you shuting it down? Also what is you specs (aspecially audio) and system?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_96bfbf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_96bfbf95](https://forums.unrealengine.com/u/anonymous_user_96bfbf95)\
**Post date:** [March 14, 2019, 11:26pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/3 "2019-03-14T23:26:57Z")

</div>

I do have a lot of C++ stuff, It’s multiplayer, so i’m using dedicated server with multiple clients. But i haven’t done anything in audio, and no i’m not shutting down anything, it just crashes while i’m playing. Not entirely sure what kinda specs you want. Processor i7-4790 CPU, GPU NVIDIA GeForce GTX 1080, and i’m just using the monitor and/or headphones for sound?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 15, 2019, 2:00am UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/4 "2019-03-15T02:00:04Z")

</div>

So you use master branch?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_96bfbf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_96bfbf95](https://forums.unrealengine.com/u/anonymous_user_96bfbf95)\
**Post date:** [March 15, 2019, 3:11pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/5 "2019-03-15T15:11:44Z")

</div>

I have the git hub repo, the only source code changes i’ve made are in the Gameplay Ability plugin.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 15, 2019, 8:24pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/6 "2019-03-15T20:24:14Z")

</div>

But it’s forked from master?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_96bfbf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_96bfbf95](https://forums.unrealengine.com/u/anonymous_user_96bfbf95)\
**Post date:** [March 16, 2019, 8:44pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/7 "2019-03-16T20:44:46Z")

</div>

No. It’s just a zip of the 4.21

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 17, 2019, 2:50am UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/8 "2019-03-17T02:50:01Z")

</div>

yes, but if you got it from github you got it from specific branch, if it’s main page that means it release branch. If thats the case i dont really know

Hmmm can you give full log? maybe there more hints before crash. Not to mention, something is closing UE4 that causing this crash

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_96bfbf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_96bfbf95](https://forums.unrealengine.com/u/anonymous_user_96bfbf95)\
**Post date:** [March 30, 2019, 5:33pm UTC](https://forums.unrealengine.com/t/crash-numactiveaudiodevices-0/445329/9 "2019-03-30T17:33:22Z")

</div>

I ended up changing a lot of old code and it fixed itself, i probably had something somewhere that was breaking it but i don’t know what it was. Thanks for your help tho.
