Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Deadlock when setting RTPC value

+6 votes
We just encountered a deadlock running our game on an xbox one (we're on 2018.1.5.6835.1218).  Our code looks fairly benign and we don't have access to most of the code that appears to be involved.  Any ideas on this?

The top of the main thread looks like this:

  ntdll.dll!0000010227644a9a() Unknown
  ntdll.dll!00000102275f1dd1() Unknown
  ntdll.dll!00000102275f214a() Unknown
  [Inline Frame] Indiana--Test.exe!CAkLock::Lock() Line 59 C++
  [Inline Frame] Indiana--Test.exe!CAkFunctionCritical::{ctor}() Line 40 C++
  Indiana--Test.exe!CAkAudioMgr::ReserveQueue(unsigned short in_eType, unsigned long in_uSize) Line 408 C++
  [Inline Frame] Indiana-XboxOne-Test.exe!AutoReserveMsg::{ctor}(AkQueuedMsgType in_uSize, unsigned long) Line 240 C++
  Indiana--Test.exe!AK::SoundEngine::_SetRTPCValue(unsigned long in_rtpcID, float in_value, unsigned __int64 in_gameObjectID, unsigned long in_playingID, long in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) Line 1639 C++
  Indiana--Test.exe!AK::SoundEngine::SetRTPCValueByPlayingID(const wchar_t * in_pszRtpcName, float in_value, unsigned long in_playingID, long in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve, bool in_bBypassInternalValueInterpolation) Line 1714 C++
  Indiana--Test.exe!UAkIndianaAudioStatics::SetRTPCValueOnPlayingID(int PlayingID, FName RTPC, float Value, int InterpolationTimeMs) Line 364 C++
> Indiana--Test.exe!UImpactAudioData::PlayAudioForImpact::__l2::<lambda>(UAkAudioEvent * AudioEvent) Line 108 C++
  Indiana--Test.exe!UImpactAudioData::PlayAudioForImpact(const FHitResult & HitInfo, const FDamageDescription & DamageDescription, AActor * Instigator, bool bCrit, bool bGraze, bool bWeakSpot) Line 116 C++

 
The audio thread looks like this:

  [Inline Frame] Indiana--Test.exe!AkArray<StateRegisteredTarget,StateRegisteredTarget,AkArrayAllocatorNoAlign<_ArrayPoolDefault>,1,AkAssignmentMovePolicy<StateRegisteredTarget> >::Erase(unsigned int) Line 319 C++
  [Inline Frame] Indiana--Test.exe!AkStateParamTargetArray::RemoveTarget(CAkParameterTarget *) Line 58 C++
  [Inline Frame] Indiana--Test.exe!CAkParamNodeStateTargetData::RemoveTarget(CAkParameterTarget *) Line 93 C++
  [Inline Frame] Indiana--Test.exe!CAkParamNodeStateAware::UnregisterParameterTarget(CAkParameterTarget *) Line 166 C++
  Indiana--Test.exe!CAkParameterNodeBase::UnregisterParameterTarget(CAkParameterTarget * in_pTarget, const CAkBitArray<unsigned __int64,0> & in_paramsRequested, bool in_bPropagateToBusHier) Line 2210 C++
  Indiana--Test.exe!CAkParameterTarget::UnregisterParamTarget(const CAkBitArray<unsigned __int64,0> & in_tgtParams, bool in_bPropagateToBusHier) Line 139 C++
  [Inline Frame] Indiana--Test.exe!CAkParameterTarget::UnregisterParamTarget() Line 70 C++
  Indiana--Test.exe!CAkBehavioralCtx::Term(bool in_bFailedToInit) Line 86 C++
  [Inline Frame] Indiana--Test.exe!CAkURenderer::DestroyPBI(CAkPBI * in_pPBI) Line 931 C++
> Indiana--Test.exe!CAkURenderer::PerformContextNotif() Line 915 C++
  Indiana--Test.exe!CAkAudioMgr::Perform() Line 555 C++
  Indiana--Test.exe!CAkAudioThread::EventMgrThreadFunc(void * lpParameter) Line 74 C++
asked Mar 29, 2019 in General Discussion by Mark D. (170 points)

1 Answer

0 votes
May I ask if this problem has been solved? I also encountered a similar problem
answered Aug 23, 2023 by Hao Z. (140 points)
...