Crash Log after "Starvation detected in WASAPI output buffer!" Warning

Hello everyone,

I’m experiencing an issue where I receive a crash log after encountering the warning message “Starvation detected in WASAPI output buffer!” in the logs. I’m wondering if this crash is related to FMOD or if I’m receiving this warning simply because a crash occurred.

I have noticed the following pattern in the logs:

  1. “Starvation detected in WASAPI output buffer!” warning.
  2. Subsequent crash log.

Has anyone else encountered this issue before? I would appreciate any insights or suggestions regarding the potential connection between this warning and the subsequent crash.

Thank you in advance for your assistance!

I’m using FMOD 2.02 , UE4 4.27

LOGS:

[2023.05.27-08.43.09:732][971]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\core_api\platforms\win\src\fmod_output_wasapi.cpp(587) - Starvation detected in WASAPI output buffer!

[2023.05.27-08.43.09:753][971]LogOutputDevice: Warning:

Script Stack (0 frames):

[2023.05.27-08.43.09:753][971]LogWindows: Windows GetLastError: Operacja ukończona pomyślnie. (0)
[2023.05.27-08.43.09:753][971]LogWindows: Error: === Critical error: ===
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp] [Line: 902]
[2023.05.27-08.43.09:753][971]LogWindows: Error: Rendering thread exception:
[2023.05.27-08.43.09:753][971]LogWindows: Error: Fatal error!
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff72bfca018 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff732207bd0 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff73220c2e8 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff7322034d3 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff732215ea2 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff72eff5eeb SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff72eff634e SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff731ce8579 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff731ced579 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff72f50e87f SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ff72f504d90 SB2.exe!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ffdd1c47614 KERNEL32.DLL!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error: [Callstack] 0x00007ffdd1e226a1 ntdll.dll!UnknownFunction
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:753][971]LogWindows: Error:
[2023.05.27-08.43.09:772][971]LogExit: Executing StaticShutdownAfterError
[2023.05.27-08.43.09:870][971]LogWindows: FPlatformMisc::RequestExit(1)
[2023.05.27-08.43.09:870][971]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
[2023.05.27-08.43.09:870][971]LogCore: Engine exit requested (reason: Win RequestExit)
[2023.05.27-08.43.09:880][971]Log file closed, 05/27/23 09:43:09


Edit: And there are too many “loading delay exceeded, sound may play at incorrect time” warnings in the log

[2023.05.11-12.24.37:035][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

[2023.05.11-12.24.37:037][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

[2023.05.11-12.24.37:055][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

[2023.05.11-12.24.37:075][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

[2023.05.11-12.24.37:075][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

[2023.05.11-12.24.37:075][849]LogFMOD: Warning: c:\jk\workspace\Build__2.2__Unreal_Win\studio_api\src\fmod_playback_instrument.cpp(1273) - Loading delay exceeded, sound may play at incorrect time

Hi,

What version of FMOD are you using?

Starvation detected in WASAPI output buffer! may be an indication that there is a buildup of unreleased events taking up resources. Would it be possible to get record a profiler session? Instructions for recording and packaging a profiler session is outlined here: FMOD Studio | Profiling.

The error Loading delay exceeded, sound may play at incorrect time may be resolved by enabling the Load All Sample Data in the FMOD integration settings
image
Further details about pre-loading sample data can be read here: FMOD API | Studio API Guide - Sample Data Loading.

However, the crash does not seem to be happening in the FMOD code. Hope this helps!