Sound device handling causing crash

Basic Info:

Platform: Steam
Issue Type: Crash
Game Mode: Single Player
Server Type: PvE
Map: Exiled Lands
Server Name: =SERVER NAME=
Mods: =MODS=


Bug Description:

Sound device lost crash when minimized or out of focus


Bug Reproduction:

Open or alternate to another window while playing the game

Ordinarily I would agree that it might be drivers or some such thing, and someone should look into that. But besides me having reproduced the same problem in three different machines, using even a blank install of the game, being a Desktop Ryzen 9 with RTX, a notebook Ryzen 9 Asus ROG Strix with Radeon, and a Desktop i9 with RTX. All updated and correctly functioning with some other games which had the same problem and fixed it, some as recently as last patch like Baldur’s Gate 3.
This problem is more or less intermitent, and have appeared before, stopped happening, and since Age of War have started happening again, at least in my machines.

And it has nothing to do with “changes” to sound devices (the one the logs show to be problematic), as it happens when the machine has nothing but the internal sound device in use or connected.

To add the evidence, always it happens it is on some sound change or update:

Script Stack:
SoundFunctionLibrary_C.PickWalkFoleyCue
BaseHumanoidNPC_C.UpdateFoleyCue
BaseHumanoidNPC_C.ExecuteUbergraph_BaseHumanoidNPC
BaseHumanoidNPC_C.OnPhysicsMaterialChanged

[2023.11.09-20.46.53:195][423]LogMemory: Platform Memory Stats for WindowsNoEditor
[2023.11.09-20.46.53:195][423]LogMemory: Process Physical Memory: 2924.92 MB used, 2997.24 MB peak
[2023.11.09-20.46.53:195][423]LogMemory: Process Virtual Memory: 6379.55 MB used, 6380.64 MB peak
[2023.11.09-20.46.53:195][423]LogMemory: Physical Memory: 9856.96 MB used, 55629.00 MB free, 65485.96 MB total
[2023.11.09-20.46.53:195][423]LogMemory: Virtual Memory: 12773.23 MB used, 55629.00 MB free, 134217728.00 MB total
[2023.11.09-20.46.53:195][423]LogWindows:Error: === Critical error: ===
[2023.11.09-20.46.53:195][423]LogWindows:Error:
[2023.11.09-20.46.53:195][423]LogWindows:Error: Fatal error!
[2023.11.09-20.46.53:195][423]LogWindows:Error:
[2023.11.09-20.46.53:195][423]LogWindows:Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000090
[2023.11.09-20.46.53:195][423]LogWindows:Error:
[2023.11.09-20.46.53:195][423]LogWindows:Error: !0x0000000000000000
[2023.11.09-20.46.53:195][423]LogWindows:Error:
[2023.11.09-20.46.53:215][423]LogExit: Executing StaticShutdownAfterError
[2023.11.09-20.46.53:250][423]LogWindows: FPlatformMisc::RequestExit(1)
[2023.11.09-20.46.53:250][423]Log file closed, 11/09/23 17:46:53

Greetings @KorgFoehammer ,

Thank you for your report. Please follow the steps to verify your game files:

  1. Open Steam
  2. In Library, click with the right button on the game and select “Properties”
  3. Select the Installed files
  4. Select Verify integrity of game files….

Please, also make sure you have you’re drivers updated specially the audio ones,

If the issue still persists, please let us know!

Thanks in advance.

Again, it is not a problem that occurs because of “my computer”.

This is a known problem games face in multiple instances. There is even a line in my own post that says it occurs in a fresh install.

I also mentioned it is the same problem that occured in other games for the same reason, and they were FIXED BY THE DEVS in subsequent patches, like the most recently in Baldur’s Gate 3.

Thank you for taking the time to submit these issues to us. If you have any bugs to report, please reach out to our support team. Thank you for playing Baldur’s Gate 3!
FIXES

  • Fixed Shadowheart not following the party.
  • Fixed the sliders for eye makeup and tattoo intensity not working on controller.
  • Fixed a potential crash relating to Vulkan. This solves the DEVICE_LOST error upon minimising the game window.

I have mentioned this in other bug reports, it is the same thing, device lost. And it is for the same reason.
And that problem is not a “new” or unknown problem that the industry is not aware it happens.

That is caused because new Windows patches have added a security updated that prevent certain aspects of a program to work when this program is not on focus, specially when it is minimized, to avoid its use as an exploit. Since then, games have faced this particular problem in which if it still “using sound while minimized” even if the actual sound is not playing, the system will block the access to the device and the “old code” will consider it a device lost.
This was particularly a topic in the early times because people were used to have games in the background using another window and playing sound to know if there was something to pay attention at the game. That had to change because windows have tightened the security over minimized and unfocused windows, because malicious software could inject code using sound processing while a window was occulted. They would be able even to start software on the background without the user knowing it. So it was changed, and now there are other venues to use sound in a minimized window, which need to be fixed.
Final Fantasy is another one which back then had to update so it stopped crashing while minimized.
As I said in another thread, I have the game running sometimes for hours and hours, I go do some work, sleep, etc, while leaving the game running testing my server. IT never crashes. But this specific crash is a known one, and have been around, games have adapted to it, and this one hasnt. There is no secret about it.

And particularly incorporating that log in the post tells already “corrupted files” would not trigger that particular crash.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.