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.

+1 vote
Hi !

UE: 5.3.2

Wwise: V2023.1.0.8365

Just to warn people. We updated Wwise to V2023.1.0.8365 and we have a crash inside AkComponent.cpp. This variable:

/** Room the AkComponent is currently in. nullptr if none */
class UAkRoomComponent* CurrentRoom;

Is garbage collected while the component may still be ticking, resulting in a crash when calling GetSpatialAudioRoom with a dangling ptr later here:

if (AkAudioDevice)
{
    AkAudioDevice->GetObsOccServicePortalMap(GetSpatialAudioRoom(), GetWorld(), ObsOccPortalMap);
}

Using a TWeakObjectPtr (+ some minor changes for compilation) like this:

TWeakObjectPtr<class UAkRoomComponent> CurrentRoom;

Fix the issue.

Have a nice day.

Vincent.
in General Discussion by Vincent P. (110 points)

Please sign-in or register to answer this question.

...