Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Crash: NumActiveAudioDevices == 0

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

Product Version: UE Github Master branch
more ▼

asked Mar 14 '19 at 08:57 PM in C++ Programming

avatar image

38 4 8

avatar image Shadowriver Mar 14 '19 at 09:38 PM

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?

avatar image FresherThnFebrez Mar 14 '19 at 11:26 PM

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?

avatar image Shadowriver Mar 15 '19 at 02:00 AM

So you use master branch?

avatar image FresherThnFebrez Mar 15 '19 at 03:11 PM

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

avatar image Shadowriver Mar 15 '19 at 08:24 PM

But it's forked from master?

avatar image FresherThnFebrez Mar 16 '19 at 08:44 PM

No. It's just a zip of the 4.21

avatar image Shadowriver Mar 17 '19 at 02:50 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Mar 30 '19 at 05:33 PM

avatar image

38 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question