在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

Every now and again a certain UAkAudioEvent for pausing and unpausing music won't garbage collect when closing a game made on UE4 version 4.26.2 using Wwise 2021.1.1.7601.1995.  First the garbage collector tries to destroy the audio event via UAkAudioEvent::BeginDestroy() which always fires the following warning (other events also fire it sometimes):

UE_LOG(LogAkAudio, Warning, TEXT("Stopping all instances of the \"%s\" event because it is being unloaded."), *GetName());

Then the garbage collector tries to call UAkAudioEvent::IsReadyForFinishDestroy() over and over again which in turn tries to call AK::SoundEngine::RenderAudio() which doesn't deactivate the event.  The event that is being deleted is the only active event in the audio device and there are no async tasks.  The log file keeps growing filling up the log file with this message:

[2022.04.12-03.38.48:818][394]LogGarbage: Warning: [0]: AkAudioEvent None.None, IsReadyForFinishDestroy: false

[2022.04.12-03.38.48:818][394]LogGarbage: Warning: Spent more than 10.00s on routing FinishDestroy to objects (objects in queue: 1)

The UAkAudioEvent pauses the game's music, starts the menu music, and also pauses all sounds.  There is a resume UAkAudioEvent that does the opposite which always gets called when exiting the game menu.  I only found this forum which had the same problem with no solution.  What is the garbage collector trying to accomplish by calling AK::SoundEngine::RenderAudio() over and over to deactivate the event?   Also why would an event that only contains pauses and a start not deactivate or stay active for a very long time?

分类:General Discussion | 用户: Elroy (100 分)
修改于 用户:Elroy

Please sign-in or register to answer this question.

...