# NiagaraShaderModule.cpp Can not invoke OnRequestDefaultDataInterface. Delegate was never set

**URL:** <https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933>\
**Category:** FX\
**Tags:** launch, unreal-engine, question\
**Created:** [June 18, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933 "2020-06-18T19:28:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_28363cf31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_28363cf31](https://forums.unrealengine.com/u/anonymous_user_28363cf31)\
**Post date:** [June 18, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/1 "2020-06-18T19:28:27Z")

</div>

Hello

We’ve started implementing Niagara particle FX into our game. After building the game and launching we get the following error message:

**Assertion failed: OnRequestDefaultDataInterface.IsBound() [File:D:/Build/++UE4+Licensee/Sync/Engine/Plugins/FX/Niagara/Source/NiagaraShader/Private/NiagaraShaderModule.cpp] [Line: 55]  
Can not invoke OnRequestDefaultDataInterface. Delegate was never set.**

We’re completely stumped by this! We have tried enabling a bounding box and changing sim target to CPU in the emitter properties and still nothing. Would anyone be able to help?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_28363cf31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_28363cf31](https://forums.unrealengine.com/u/anonymous_user_28363cf31)\
**Post date:** [June 22, 2020, 4:49pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/2 "2020-06-22T16:49:49Z")

</div>

we managed to fix it. There was one emitter that managed to slip through the net which wasn’t a CPU sim with fixed bounds.

Seems like Niagara GPU particles are still a bit buggy in Unreal 4.24.3. Changing every emitter and Particle System in your project to CPU with fixed bounds should solve the issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2fc1d692](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2fc1d692](https://forums.unrealengine.com/u/anonymous_user_2fc1d692)\
**Post date:** [March 8, 2021, 12:41pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/3 "2021-03-08T12:41:04Z")

</div>

If you’re a developer, try to run a game in debug mode, and after assert fail check the functions call stack.  
I had an UDevelopersSettings child class that has reference to the actor class that uses Niagara, and attempt to construct a Niagara object in CDO failing because Niagara as engine module doesn’t load yet.

---

<div class="post-metadata">

**Author:** ![T3chSupport](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T3chSupport](https://forums.unrealengine.com/u/T3chSupport)\
**Post date:** [June 3, 2021, 11:16am UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/4 "2021-06-03T11:16:03Z")

</div>

Was at a loss on this problem in Unreal 4.26.2 after switching several of our more intensive VFX over to GPU. Switching everything back to CPU with fixed bounds resolved our issue, after that we went about enabling GPU Sim on each VFX to see if we could get any of them on the GPU. Only a small subset of VFX would run without fatal error.

Thanks for the solution!

---

<div class="post-metadata">

**Author:** ![Tobias\_Tobasco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tobias_tobasco/32/1194646_2.png) [@Tobias\_Tobasco](https://forums.unrealengine.com/u/Tobias_Tobasco)\
**Post date:** [November 21, 2021, 2:56pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/5 "2021-11-21T14:56:52Z")

</div>

How did you manage to solve the issue then?

---

<div class="post-metadata">

**Author:** ![Tobias\_Tobasco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tobias_tobasco/32/1194646_2.png) [@Tobias\_Tobasco](https://forums.unrealengine.com/u/Tobias_Tobasco)\
**Post date:** [November 21, 2021, 4:27pm UTC](https://forums.unrealengine.com/t/niagarashadermodule-cpp-can-not-invoke-onrequestdefaultdatainterface-delegate-was-never-set/466933/6 "2021-11-21T16:27:21Z")

</div>

Just in case it might help anyone else. For some reason this was caused by the gamemode trying to load the player pawn by default.  
I’ve just uncommented these lines in my gamemode.cpp and that fixed it for me.

 ![GamemodePlayerFix.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/d/2d4f5acfe4fa0f77aca7153ab7692474e0d3c14d.jpeg)
