# Adjusting DSP Buffer Length and DSP Buffer Count leads to a crash

**URL:** https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816
**Category:** Unreal Engine
**Created:** [February 1, 2023, 5:18pm UTC](https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816 "2023-02-01T17:18:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![j.lafontaine](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/j.lafontaine/32/244_2.png) [@j.lafontaine](https://qa.fmod.com/u/j.lafontaine)
#### Post date: [February 1, 2023, 5:18pm UTC](https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816/1 "2023-02-01T17:18:23Z")

</div>

Hi,

I’m using the 2.02.12 FMOD Plugin for UE 5.1  
While investigating for an other issue, I stumble upon that post [Experiencing important latency in UE 4.20 with Fmod 1.10.08](https://qa.fmod.com/t/experiencing-important-latency-in-ue-4-20-with-fmod-1-10-08/14108) and decided to give a try at changing the DSP Buffer settings.  
I fixed Buffer Count to 4 and tried lengths of 512, 1024 and 2048

With 512 and 2048 the game crashes soon after playing some sounds during a malloc.  
My debugger tells me it’s called from “c:\jk\workspace\Build\_\_2.2\_\_Unreal\_Win\core\_api\src\fmod\_dsp\_transceiver.cpp(193)”

Here’s the complete stack:

[Inlined] \_mi\_page\_thread\_free\_collect(mi\_page\_s \*) page.c:175  
[Inlined] \_mi\_page\_free\_collect(mi\_page\_s \*,bool) page.c:196  
\_mi\_free\_delayed\_block(mi\_block\_s \*) alloc.c:523  
[Inlined] \_mi\_heap\_delayed\_free(mi\_heap\_s \*) page.c:283  
\_mi\_malloc\_generic(mi\_heap\_s \*,unsigned long long) page.c:856  
\_mi\_heap\_malloc\_zero(mi\_heap\_s \*,unsigned long long,bool) alloc.c:148  
mi\_heap\_malloc\_zero\_aligned\_at(mi\_heap\_s \*const,const unsigned long long,const unsigned long long,const unsigned long long,const bool) alloc-aligned.c:51  
[Inlined] mi\_heap\_malloc\_aligned\_at(mi\_heap\_s \*,unsigned long long,unsigned long long,unsigned long long) alloc-aligned.c:66  
[Inlined] mi\_heap\_malloc\_aligned(mi\_heap\_s \*,unsigned long long,unsigned long long) alloc-aligned.c:70  
mi\_malloc\_aligned(unsigned long long,unsigned long long) alloc-aligned.c:96  
[Inlined] FMallocMimalloc::TryMalloc(unsigned long long,unsigned int) MallocMimalloc.cpp:61  
FMallocMimalloc::Malloc(unsigned long long,unsigned int) MallocMimalloc.cpp:66  
FMemory::Malloc(unsigned long long,unsigned int) FMemory.inl:30  
FMODMemoryAlloc(unsigned int,unsigned int,const char \*) FMODStudioModule.cpp:62  
 0x00007ff84c4c72c8  
 0x00007ff84c4c755b  
 0x00007ff84c52845a  
 0x00007ff84c527ced  
 0x00007ff84c4a219d  
 0x00007ff84c4a228b  
 0x00007ff84c4a228b  
 0x00007ff84c4a2315  
 0x00007ff84c4a2315  
 0x00007ff84c4a228b  
 0x00007ff84c4a228b  
 0x00007ff84c4a2315  
 0x00007ff84c4a228b  
 0x00007ff84c4a2315  
 0x00007ff84c4a228b  
 0x00007ff84c4a228b  
 0x00007ff84c4a2315  
 0x00007ff84c4a2516  
 0x00007ff84c4cec1e  
 0x00007ff84c4cdb17  
 0x00007ff84c4cd6cf  
 0x00007ff84c4cd3a8  
 0x00007ff84c4d8301  
 0x00007ff84c4c97b1  
 0x00007ff84c4d339c  
 0x00007ff84c55972e  
 0x00007ff9062726bd  
 0x00007ff906a8dfb8

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [February 2, 2023, 12:58am UTC](https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816/2 "2023-02-02T00:58:13Z")

</div>

Hi,

Unfortunately, I was not able to reproduce the issue. Is it possible to get a stripped-out version of the project you are experiencing this on uploaded to your [Profile](https://fmod.com/profile#uploads) or DM’d to me?

Thanks for bringing this to our attention.

---

<div class="post-metadata">

### Author: ![j.lafontaine](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/j.lafontaine/32/244_2.png) [@j.lafontaine](https://qa.fmod.com/u/j.lafontaine)
#### Post date: [February 2, 2023, 4:12pm UTC](https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816/3 "2023-02-02T16:12:51Z")

</div>

Would a packaged version be sufficient ?

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [February 2, 2023, 9:08pm UTC](https://qa.fmod.com/t/adjusting-dsp-buffer-length-and-dsp-buffer-count-leads-to-a-crash/19816/4 "2023-02-02T21:08:58Z")

</div>

Apologies, a version of the UE project.
