Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote
Using 2019.2.4.7329.1721:

Loading maps in UE4 can cause a crash in the UE4 integration plugin. It crashes at line 78 in the Load function of UAkAssetDataWithMedia in AkAssetBase.cpp because the garbage collector has collected a sound asset and cleaned it up during a map change.

I managed to find what appears to be causing the problem. The Unload function is called at the correct time, but when mediaStreamHandle is valid it's supposed to be cleaned up here (line 98). The bug is that the function being called is ReleaseHandle instead of CancelHandle. This means that the Asynchronous loading callback from line 75 of the Load function does not get cancelled and the callback then crashes accessing a deleted object.

The fix is to change line 98 from
mediaStreamHandle->ReleaseHandle();
to
mediaStreamHandle->CancelHandle();

I hope other people find this useful and that the development team can incorporate this fix into the next version!
in General Discussion by Ben M. (110 points)

Please sign-in or register to answer this question.

...