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

Facing crashes every time I try to run the game in Unity

Open Xapu1337 opened this issue 3 years ago • 5 comments

Hey, I have an issue where my editor will crash every time I try to run it. More details can be found in the attached crash log as in I did nothing special but just followed the getting started in the docs Editor.log

Xapu1337 avatar Jan 18 '22 10:01 Xapu1337

Update: removing AudioClip.Stop() from FixedUpdate seems to fix is but now I have a new error.. Editor.log .

Xapu1337 avatar Jan 18 '22 13:01 Xapu1337

Think I figured this out.

once the scene is exported via steam audio menu, it creates a scene view window gizmo. that, has to encapsulate an area with reverb/reflection/steam audio source elements within it. if you generate over an area where there are none, it creates..... 0 probes. 0 then gets passed through to the internal dll method and results in an arithmetic error, and a crash in the unity editor. presumably because you can't divide by 0.

vTimeMaca avatar Mar 10 '22 18:03 vTimeMaca

@Xapu1337 @vTimeMaca Can you provide a crash dump or a minimal test scene/project? That will help us reproduce the issue faster. Thanks!

lakulish avatar Apr 06 '22 00:04 lakulish

We've just released Steam Audio 4.1.0, which includes various crash fixes: https://github.com/ValveSoftware/steam-audio/releases/tag/v4.1.0.

Try it out and let us know if these crashes persist in the new version.

lakulish avatar Jul 05 '22 20:07 lakulish

@Xapu1337 @vTimeMaca Can you provide a crash dump or a minimal test scene/project? That will help us reproduce the issue faster. Thanks!

Thanks for the update! Real-time audio now works flawlessly! I will be trying out baked audio soon, but I have a question, do you know why it says that "No OpenCL Device is found"? I have a 3060 and it should be capable of

Xapu1337 avatar Jul 16 '22 08:07 Xapu1337

Closing per the last couple comments.

Sorry, I don't have any insight into the follow up question.

kisak-valve avatar Aug 19 '22 18:08 kisak-valve