You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System Information
Please provide the following information about your system:
Steam Audio version: 4.5.3
Unity version: 2022.3.37f1
Operating System: Windows 11
CPU architecture: x64
Issue Description
SteamAudio does not create sound properly in any way, it does not reflect off the walls, is not calculated, is not muted in case of obstacles (Does not work at all), but when debugging starts in the visual studio, instantly (When the game is not even included in the Editor), debugging immediately stops in the SteamAudioSource file.CS and raises an exception stating that "Handle is not initialized".
Detailed error:
System.InvalidOperationException: Handle is not initialized.
at System.Runtime.InteropServices.GCHandle.Free () [0x00034] in :0
at SteamAudio.SteamAudioSource.Finalize () [0x00000] in E:\Path-To-Project\Project_Name\Assets\Plugins\SteamAudio\Scripts\Runtime\SteamAudioSource.cs:230
Steps To Reproduce
Steps to reproduce the behavior:
Install SteamAudio using .unitypackage;
Specify the use of SteamAudio in the Unity settings;
Open regular scripts in the Unity project in Visual Studio (I have version 2022);
Start debugging the project in Visual Studio;
Run debugging from Visual Studio as a session in Unity;
See the error as "Handle is not initialize"
The text was updated successfully, but these errors were encountered:
Hi @AlmazowFaradey - I am not able to reproduce this issue on our end. I created a standalone project in Unity 2022.3.14 and imported latest version of Steam Audio.
Let me know if there is a standalone minimal repro you are able to share.
I can't confirm if SteamAudio is broken like in AlmazowFaradey's case in my own project, but I've managed to reproduce the debugging issue in a separate smaller project.
On my side, I used Unity 2022.3.39f1 using URP with the latest version of Steam Audio (4.5.3). I also use Visual Studio 2022.
Steps to Reproduce
Enable Steam Audio in the Project Settings.
In the current scene (SampleScene.unity), create a new GameObject.
Add an AudioSource and attach a SteamAudioSource component
Create a new Monobehaviour class "Test.cs"
Open the class in Visual Studio and attach the debugger
Enable debugging in Unity when prompted
Enter Play Mode in Unity
Unity will begin "Reloading Domain" and immediately get caught by an exception in the debugger
I've found that this issue can be avoided by turning on the debugger during runtime well after Unity has entered Play Mode
I've encountered this issue on two computers, one running Windows 10 and another running Windows 11.
I can provide the full project if needed, but creating a new project using Unity's 2D URP template should be sufficient for reproducing the issue.
@jackyyang09 This issue was fixed in the following commit: c565da2. You can get the latest version of SteamAudioSource.cs, which should resolve the issue.
This will, of course, be part of the next official release of Steam Audio.
System Information
Please provide the following information about your system:
Issue Description
SteamAudio does not create sound properly in any way, it does not reflect off the walls, is not calculated, is not muted in case of obstacles (Does not work at all), but when debugging starts in the visual studio, instantly (When the game is not even included in the Editor), debugging immediately stops in the SteamAudioSource file.CS and raises an exception stating that "Handle is not initialized".
Detailed error:
System.InvalidOperationException: Handle is not initialized.
at System.Runtime.InteropServices.GCHandle.Free () [0x00034] in :0
at SteamAudio.SteamAudioSource.Finalize () [0x00000] in E:\Path-To-Project\Project_Name\Assets\Plugins\SteamAudio\Scripts\Runtime\SteamAudioSource.cs:230
Steps To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: