# Crash when calling removeDSP

**URL:** https://qa.fmod.com/t/crash-when-calling-removedsp/24185
**Category:** FMOD Engine
**Tags:** cpp, ue5
**Created:** [April 14, 2026, 5:29pm UTC](https://qa.fmod.com/t/crash-when-calling-removedsp/24185 "2026-04-14T17:29:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dquartz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dquartz/32/4978_2.png) [@dquartz](https://qa.fmod.com/u/dquartz)
#### Post date: [April 14, 2026, 5:29pm UTC](https://qa.fmod.com/t/crash-when-calling-removedsp/24185/1 "2026-04-14T17:29:56Z")

</div>

Hi, I’m working on a crash bug that happens sometimes when traveling between levels. It’s during cleanup code for a basic channel listener we use to display a waveform. Cleanup looks like this:

```cpp
	if (bIsRegistered)
	{
		// clear userdata so we don't try to do something with a deleted channel listener in our callback.
		verifyfmod(CaptureDSP->setUserData(nullptr));
		// might fail if FMOD has already marked it for cleanup,
		// in which case trying to release it can cause a crash.
		if (FMOD_OK == Channel->removeDSP(CaptureDSP))
		{
			CaptureDSP->release();
		}
		CaptureDSP = nullptr;
		bIsRegistered = false;
	}

```

Where `CaptureDSP` is an `FMOD::DSP*` and `Channel` is an `FMOD::ChannelGroup*.`

The crash occurs when calling `removeDSP`, two levels deep in fmodL.dll:

```auto
>	fmodL.dll!00007fffde036a3c()	Unknown
 	fmodL.dll!00007fffddf5d1e2()	Unknown

```

As you can see from the comment above, I’ve already encountered a crash here when calling release on the dsp pointer. It seems like removeDSP should always be safe to call, even if the channel has shutdown and already cleaned up dsp. So I’m wondering what might the cause of the crash here.

We are currently running FMOD version 2.03.08.

---

<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: [April 15, 2026, 12:39am UTC](https://qa.fmod.com/t/crash-when-calling-removedsp/24185/2 "2026-04-15T00:39:22Z")

</div>

Hi,

Thanks for bringing this to our attention.

Unfortunately, I cannot reproduce the issue. Would it be possible to share the class that causes the crash and any consistent reproduction steps?

---

<div class="post-metadata">

### Author: ![dquartz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dquartz/32/4978_2.png) [@dquartz](https://qa.fmod.com/u/dquartz)
#### Post date: [April 15, 2026, 1:50am UTC](https://qa.fmod.com/t/crash-when-calling-removedsp/24185/3 "2026-04-15T01:50:50Z")

</div>

I wasn’t able to get the crash to reproduce today through normal play, so I’ll be trying to create a test scenario to reproduce it. I’ll report back here if I have any luck.
