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.