-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
AudioDriverWASAPI error while using editor if another application is using exclusive mode #18732
Comments
cc @marcelofg55 |
@Toshiwoz Hi, it happens everytime? Whats your soundcard? |
Nope,
it started recently, strangely maybe, when I started using Netflix (it
sounds weird, but that aplication does strange things with the audio, it
does not allow to control the volume).
The sound card is an integrated soundcard, my pc is an old EEEBOX (with
intel atom), and I use HDMI + TV (with it's audio device)
2018-05-09 8:03 GMT-05:00 Marcelo Fernandez <[email protected]>:
… @Toshiwoz <https://github.com/Toshiwoz> Hi, it happens everytime? Whats
your soundcard?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18732 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUT4zOb4st_i53x5WuHEVPK6_X_eaifPks5twukdgaJpZM4T3q1m>
.
|
So if you don't use Netflix there is no problem? If so then it's probably requesting exclusive access to the soundcard. |
Yeah, I can confirm that now, I opened Godot editor, my current project. No error. |
Yes, you could try to contact them since we can't do much if an external application requests WASAPI exclusive mode. They could switch to shared mode and that will solve the issue. |
I've been told it's how it is suposed to work, by the netflix support, lol.. |
I guess we could try to improve the error message, but we can't prevent thirdparty apps from abusing the audio driver :) @marcelofg55 Would there be an easy way to catch this source of error and print an understandable error? |
Yeah, we should definitely improve the error messages for this so that it's more clear. But I think we won't be able to tell if another application that uses exclusive mode is actually the problem, afaik WASAPI funtions simply return AUDCLNT_E_DEVICE_INVALIDATED when this happens. |
I'm getting this error too; I am not using Netflix nor listening to any music. |
Happens every time you run godot? Or is it random? And what soundcard you're using? |
Removing the exclusive mode rights stopped this behavior, I think, it's def not happening anymore rn and that's the only thing I've changed |
Thanks, it did fix the error for me as well. To access the settings on windows 10:
|
Also getting this. Windows 8.1. Certainly happens opening some sort of sound application like Sound Forge, but I've had it happen pretty regularly just doing basic stuff like web browsing, though tough to say exactly what caused it. I often have Godot open in the background and come back to see it spamming this nonstop. Updated line number on 3.1.1:
Might be nice to, at the very least, avoid spamming the error. Best case would be to attempt to grab access of to the sound device again, maybe after a short delay. |
Can anyone still reproduce this bug in Godot 3.2.3 rc4 or any later release? |
Can confirm it still happens in 3.2.3 rc4. I can repro it by simply opening godot to the project manager then launching VEGAS Pro, Sound Forge, or any other program that tries to take exclusive control of the sound card. |
Stumbled upon this issue when playing music in the music player with exclusive mode to bypass all extra audio effects. The extra thing I got is a memory leak, but that could be related to all the logging (I got almost a million messages accumulated). |
somebody has a hot-fix for this? I would like to listen to Tidal the way I'm used to without rendering Godot unusable. |
There is no reason for Godot to literally log HUNDREDS of thousands of these errors when this is happening. A single, concise error message would be acceptable. The Godot editor will also do this if VLC Media Player, an incredibly commonly-used media app, is playing a movie. The engine doesn't even have to be running a game, it just needs to be open. That's ridiculous. |
I've created PR #100116 to address the error spam in the Godot editor. If anyone is available for testing this fix, you can download an editor build from the artifacts on the checks page of the PR. |
Fixes godotengine#99968 and prevents the error spam referenced in comments of godotengine#18732. Also fixes a number of memory leaks that occur when an audio device is reinitialized or fails to reinitialize and gates reinitialization attempts to around 1 per second instead of ~1000 attempts per second. Co-authored-by: Kusok <[email protected]>
This build seems to fix the spam problem when I use Realtek ASIO in Reaper at the same time as having Godot running. I get these errors when I start Reaper: drivers\wasapi\audio_driver_wasapi.cpp:780 - WASAPI: GetBufferSize error
drivers\wasapi\audio_driver_wasapi.cpp:851 - WASAPI: Current output_device invalidated, closing output_device
drivers\wasapi\audio_driver_wasapi.cpp:987 - WASAPI: Start failed
drivers\wasapi\audio_driver_wasapi.cpp:780 - WASAPI: GetBufferSize error
drivers\wasapi\audio_driver_wasapi.cpp:851 - WASAPI: Current output_device invalidated, closing output_device
drivers\wasapi\audio_driver_wasapi.cpp:987 - WASAPI: Start failed
drivers\wasapi\audio_driver_wasapi.cpp:780 - WASAPI: GetBufferSize error
drivers\wasapi\audio_driver_wasapi.cpp:851 - WASAPI: Current output_device invalidated, closing output_device
drivers\wasapi\audio_driver_wasapi.cpp:987 - WASAPI: Start failed
drivers\wasapi\audio_driver_wasapi.cpp:780 - WASAPI: GetBufferSize error
drivers\wasapi\audio_driver_wasapi.cpp:851 - WASAPI: Current output_device invalidated, closing output_device But that's it. If I try to load Reaper with Realtek ASIO using regular 4.4.dev7, it spams until it hangs and I have to terminate it through Task Manager. I never had this problem with 3.5. |
Fixes godotengine#99968 and prevents the error spam referenced in comments of godotengine#18732. Also fixes a number of memory leaks that occur when an audio device is reinitialized or fails to reinitialize and gates reinitialization attempts to around 1 per second instead of ~1000 attempts per second. Co-authored-by: Kusok <[email protected]>
Fixes godotengine#99968 and prevents the error spam referenced in comments of godotengine#18732. Also fixes a number of memory leaks that occur when an audio device is reinitialized or fails to reinitialize and gates reinitialization attempts to around 1 per second instead of ~1000 attempts per second. Co-authored-by: Kusok <[email protected]>
Fixes godotengine#99968 and prevents the error spam referenced in comments of godotengine#18732. Also fixes a number of memory leaks that occur when an audio device is reinitialized or fails to reinitialize and gates reinitialization attempts to around 1 per second instead of ~1000 attempts per second. Co-authored-by: Kusok <[email protected]>
Godot version:
3.0.3 RC1
OS/device including version:
Windows 10, not related to video, apparently.
Issue description:
I have used the editor for a while and never got this error before, I haven't even used the audio features, yet this error message seems to be related to the audio:
Steps to reproduce:
Unkown
Minimal reproduction project:
unkonwn
The text was updated successfully, but these errors were encountered: