Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamAudio crashes Unity on stopping game in Editor #388

Open
devil304 opened this issue Nov 22, 2024 · 2 comments
Open

SteamAudio crashes Unity on stopping game in Editor #388

devil304 opened this issue Nov 22, 2024 · 2 comments

Comments

@devil304
Copy link

devil304 commented Nov 22, 2024

System Information
Please provide the following information about your system:

  • Steam Audio version: 4.5.0-4.5.3 (previous versions not tested)
  • (If applicable) Unity version: 2021-6000 (many sub versions between tested)
  • Operating System and version: Windows 10/11 (many sub-versions tested)
  • (Optional) CPU architecture (e.g. x86-64, armv7): x64 (AMD and Intel tested)

Issue Description
We wanted to use Steam Audio in our projects but in every project on every tested Unity and SA versions on many different computers we got crashes. Always on stopping game in editor (not pause). I tried to fix it as task in work but no luck.
It's crashing randomly, sometimes whole day is fine, another day it crashes on every stop. One day it crashes for one person but not for the other (on the same project version). It's not crashing is there is no audio scene, I mean no audio scene baked, and no probes etc. For one of our projects we made optimized Unity raycaster for occlusion/transmission and we were using only this and HRTF and nothing else and then it was completely fine, but when we bake scenes, bake probes etc and use them then lottery begins.
In Android builds it's fine.

Technical info:
It's always crashing on _aligned_free in Memory::free (memory_allocator) with Heap Corruption Exception.
Mostly from struct deleter (same file as above) but sometimes from other sources too (like CSource::release invoked from API from Unity).
I even added list with all addresses allocated with Memory class and on every Memory::free I'm checking if this address is allocated and if yes only then I'm doing _aligned_free and removing this address from list and it still crashes.
It's crashing on normal version from GitHub I just attempted to fix this.

Crash Dump
I will add it soon because dumps I have now are from my modified version.

@bytecauldron
Copy link

We've been having similar issues since we integrated FMOD + Steam Audio into our project. Are you using reflections at all? We've had significantly less crashes on runtime end since we disabled that, but that's purely anecdotal.

@devil304
Copy link
Author

We aren't using FMOD and don't know about reflection (if we use them) but even if, we don't use them on Steam Audio.
We had this problem on at least 4 different projects (and on different Unity versions) and one of them was so basic that I'm sure there was no reflection used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants