x

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"

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

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://www.youtube.com/watch?v=pvGIjdld8cU&feature=youtu.be

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.

Product Version: UE 4.11
Tags:
more ▼

asked Apr 13 '16 at 08:08 PM in Bug Reports

avatar image

TheJamsh
795 54 89 136

avatar image TheJamsh Apr 13 '16 at 03:40 PM

[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.

avatar image Rudy Q ♦♦ STAFF Apr 19 '16 at 04:27 PM

Hello TheJamsh,

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)?

avatar image TheJamsh Oct 10 '16 at 07:18 PM

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

avatar image Rudy Q ♦♦ STAFF Oct 10 '16 at 07:36 PM

Hello TheJamsh,

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: https://issues.unrealengine.com/issue/UE-29983

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hello TheJamsh,

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

more ▼

answered Apr 27 '16 at 02:15 PM

avatar image

Rudy Q ♦♦ STAFF
47.7k 545 132 522

avatar image Rudy Q ♦♦ STAFF Apr 22 '16 at 05:21 PM

Hello TheJamsh,

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.

avatar image TheJamsh Apr 26 '16 at 09:31 AM

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.

avatar image TheJamsh Sep 08 '16 at 08:54 PM

Hey Rudy, would it be possibly to add this to issues.unrealengine.com? Cheers!

(comments are locked)
10|2000 characters needed characters left

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!

more ▼

answered Oct 10 '16 at 07:33 PM

avatar image

TheJamsh
795 54 89 136

avatar image Minus_Kelvin STAFF Oct 10 '16 at 10:35 PM

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

https://forums.unrealengine.com/showthread.php?125451-Calling-Stop()-on-a-looping-UAudioComponent-doesn-t-always-work&p=607089#post607089

(comments are locked)
10|2000 characters needed characters left
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