steam-audio icon indicating copy to clipboard operation
steam-audio copied to clipboard

[UE 5.3.2]Opening a new map causes iplSimulatorRunPathing crash.

Open SkacikPL opened this issue 2 years ago • 0 comments

System Information Please provide the following information about your system:

  • Steam Audio version: 4.5.1
  • (If applicable) Unity version: N/A
  • (If applicable) Unreal Engine version: 5.3.2
  • (If applicable) FMOD Studio version: N/A
  • Operating System and version: Windows 11 23H2 22631.3155
  • (Optional) CPU architecture (e.g. x86-64, armv7): x86-64

Issue Description Changing levels has a high chance to cause async thread crash during iplSimulatorRunPathing in FSteamAudioManager::Tick

Steps To Reproduce Steps to reproduce the behavior:

  1. Create a steam audio project.
  2. Create normal level with steam audio sources, geometry, volumes and all other required stuff. (Let's call this "ingame")
  3. Make sure at least one audio source has "Simulate pathing" enabled.
  4. Create empty level (something that a game could use as main menu, just blank world that would play music and show a widget). (Let's call this "main menu")
  5. Via ingame logic (not editor) set-up cycling between "ingame" and "main menu" levels. (What i mean is having actual running game switch between both levels, not just opening them in editor).
  6. When going from "ingame" to "main menu" level, the project will crash during aforementioned call in async thread.

Note: This occurs both in editor and built projects. Also same crash will occur when trying to terminate the game running the "ingame" level. (Like in built project, directly calling Quit in console)

This crash can be bypassed by running iplSimulatorRunPathing from game thread but that's obviously a bad idea. I assume that internal Phonon logic does not like parameters changing during simulation on async thread (probably listeners and/or sources being cleared?) that occurs during world destruction due to changing levels. Executing iplSimulatorRunPathing synchronously gets rid of the level change crash but game quit crash still persists (apparently only in shipping configuration).

Crash Dump (https://drive.google.com/file/d/14KZSkE27swLSvb3lznkI3-UY94gawtHJ/view?usp=sharing)

SkacikPL avatar Feb 18 '24 12:02 SkacikPL