# 'Stop Sound' and 'Destroy Component' - Don't stop looping sounds.

**URL:** <https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047>\
**Category:** Audio\
**Tags:** unreal-engine, bug-report, editor, Blueprint, question, UMG\
**Created:** [April 13, 2016, 8:08pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047 "2016-04-13T20:08:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [April 13, 2016, 3:40pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/1 "2016-04-13T15:40:22Z")

</div>

[2016.04.13-15.37.44:088][774]LogActorComponent:Error: May not destroy component AudioComponent /Game/Maps/UEDPIE\_0\_UM\_EarthMapScaled.UM\_EarthMapScaled:PersistentLevel.BP\_PlayerController\_C\_0.AudioComponent\_1 owned by BP\_PlayerController\_C /Game/Maps/UEDPIE\_0\_UM\_EarthMapScaled.UM\_EarthMapScaled:PersistentLevel.BP\_PlayerController\_C\_0.

Also get that in the output log.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [April 13, 2016, 8:08pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/2 "2016-04-13T20:08:14Z")

</div>

Calling Stop Sound or Destroy Component on an Audio Component created in UMG doesn’t actually destroy the sound, and leaves it orphaned in the world.

This ONLY seems to occur with Looping sounds! I can call ‘Fade out’, but after the fade the sound starts again from scratch. Perhaps this is an issue with looping sounds? Video:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/e/6deef937b66efd54d06e6b9d8633188d9232f663.jpeg "UE4 Answerhub - Stop / Destroy Sound Not Working") ](https://www.youtube.com/watch?v=pvGIjdld8cU)

The sound is created and played while the money counts up. If the player chooses to close the box early, it tries to stop the sound early. For some reason, this doesn’t work - even though the functions are called.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 19, 2016, 4:27pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/3 "2016-04-19T16:27:11Z")

</div>

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed list of steps needed to reproduce this issue on our end?
3. Could you provide screen shots of any blueprints that may be involved in this issue (if not shown in the video)?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 22, 2016, 5:21pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/4 "2016-04-22T17:21:14Z")

</div>

Hello ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [April 26, 2016, 9:31am UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/5 "2016-04-26T09:31:21Z")

</div>

Hi Rudy

1. Create a UMG widget
2. Somewhere in the event graph, tell it to play a sound - and store that sound as a variable.
3. Drag off from the sound somewhere else in the graph and try to ‘Stop’ it or call ‘Destroy Component’ - neither operation works even though the sound is still valid.
4. Make sure the sound is set to loop. It probably does the same with non-looping audio too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 27, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/6 "2016-04-27T14:15:55Z")

</div>

Hello ,

I was able to reproduce this issue on our end. I have written up a report (UE-29983) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [September 8, 2016, 8:54pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/7 "2016-09-08T20:54:41Z")

</div>

Hey Rudy, would it be possibly to add this to [issues.unrealengine.com](http://issues.unrealengine.com)? Cheers!

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [October 10, 2016, 7:18pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/8 "2016-10-10T19:18:44Z")

</div>

This is still a problem in 4.12, after stopping a looping sound once, it’s then impossible to stop it again at all.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [October 10, 2016, 7:33pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/9 "2016-10-10T19:33:58Z")

</div>

Finally figured out where the bug is caused:

```
void FSoundConcurrencyManager::RemoveActiveSound(FActiveSound* ActiveSound)
{
	if (!ActiveSound->ConcurrencyGroupID)
	{
		return;
	}
}

```

That’s from the engine in SoundConcurrency.cpp. Essentially it’s perfectly possible to create sounds without a Concurrency class, but if you do that, the Concurrency manager never removes them.

That’s kind of a big deal IMO, there’s probably a memory leak situation there where non-looping FActiveSounds never get removed from the concurrency manager, even though they’re not doing anything.

Giving my audio component a Concurrency class fixed this issue for now, but this isn’t a requirement when creating the sound!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 10, 2016, 7:36pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/10 "2016-10-10T19:36:16Z")

</div>

Hello ,

We are showing this issue to be resolved on our end. I have provided a link to the public tracker below for reference. Is it possible that your steps to reproduce this issue have changed since the original report?

Link: [Unreal Engine Issues and Bug Tracker (UE-29983)](https://issues.unrealengine.com/issue/UE-29983)

---

<div class="post-metadata">

**Author:** ![Minus\_Kelvin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/minus_kelvin/32/1124977_2.png) [@Minus\_Kelvin](https://forums.unrealengine.com/u/Minus_Kelvin)\
**Post date:** [October 10, 2016, 10:35pm UTC](https://forums.unrealengine.com/t/stop-sound-and-destroy-component-dont-stop-looping-sounds/354047/11 "2016-10-10T22:35:41Z")

</div>

I’ve responded to this in the forums. I do not think the concurrency manager has a memory leak:

> **[Calling 'Stop()' on a looping UAudioComponent doesn't always work.](https://forums.unrealengine.com/showthread.php?125451-Calling-Stop%28%29-on-a-looping-UAudioComponent-doesn-t-always-work&p=607089#post607089)**
>
> This is a really frustrating bug that I’m having major trouble tracking down. I have an Audio Component that is supposed to play a Looping SoundWave until I tell it to stop. Now if I don’t put a breakpoint in in Visual Studio, it doesn’t work - but...
