Steam audio Unity crashing on play after upgrade
System Information Please provide the following information about your system:
- Steam Audio version: 4.7.0
- Unity version: 6000.0.51f1
- Operating System and version: Windows 11
Issue Description Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist
After upgrading my project from a (very) old version of steam audio, I am now experiencing crashes every single time I enter play mode if the Spatializer Plugin is set to Steam Audio. This behavior happens even after completely re-installing steam audio, and even if there are no Steam Audio sources (or any other steam audio components) in the scene. Attached is the unity crash log. It also crashes 80% of the time even when the Spatializer plugin is set to nothing, unless I completely uninstall steam audio as a whole.
Crash Dump https://gist.github.com/BunnCode/2187d70d92c416a8b3fcd3156808d4cc
Additionally, downgrading to Steam Audio 4.6.0 fixed the issue completely.
@BunnCode Based on the crash dump, it looks like the crash is in the iplSourceSetInputs API function. We recently fixed a crash in this function (https://github.com/ValveSoftware/steam-audio/commit/1a0802582e2788c72984abf6e3824614e24206d1). Can you grab the latest version of SteamAudio.cs from GitHub and replace the one in your project? Let us know if this resolves the issue. (I don't think you will need to rebuild any C++ code.)
@lakulish i had the same issue as the author and grabbing the latest version of SteamAudio.cs fixed the issue for me. It no longer crashes on editor on play. Thanks :D
I had this same issue in one Unity project but not another project (both projects seemingly using the same version of 4.7.0). In the faulty project, I applied the above fix which solved the issue.
Hi, I am experiencing this issue and replacing SteamAudio.cs does not seem to have fixed it. I am still getting a crash instantly on hitting play.