godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.14k stars 20.2k forks source link

Using an app that uses audio Exclusive Mode on windows causes an infinite amount of errors, only fixed via reset. #85623

Open CantyCanadian opened 9 months ago

CantyCanadian commented 9 months ago

Godot version

4.2

System information

Godot v4.2.stable.mono - Windows 10.0.22621 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.4584) - AMD Ryzen 7 7700X 8-Core Processor (16 Threads)

Issue description

I use exclusive mode with Tidal in order to give audio controls to my amp, which sometimes does cause errors in some apps (like Unity). However, those errors are either once-and-done, or repairs themselves once I close Tidal. The issue is that Godot shoots hundreds of errors per second and doesn't stop even if the problem is fixed, requiring a restart.

In fact, it generates so many errors, it crashed another game I was playing because it was taking 43gb of RAM from sheer errors. If you don't notice it happening, it can be surprising.

image

Steps to reproduce

  1. Have Godot opened in a project.
  2. Use an app, like Tidal, with the ability to take Exclusive Mode of your audio source.
  3. Make it take Exclusive Mode and wait a bit for Godot to register it.

Minimal reproduction project

Works on an empty project without audio playing.

benchpres commented 9 months ago

Related: #77563