# Niagara + audio component resulting in crash (5.2)

**URL:** <https://forums.unrealengine.com/t/niagara-audio-component-resulting-in-crash-5-2/1261535>\
**Category:** Programming & Scripting\
**Tags:** audio-bugs, access-violation, unreal-engine, crash, Physics, bug-report\
**Created:** [August 15, 2023, 6:27am UTC](https://forums.unrealengine.com/t/niagara-audio-component-resulting-in-crash-5-2/1261535 "2023-08-15T06:27:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jegunainen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jegunainen/32/725537_2.png) [@Jegunainen](https://forums.unrealengine.com/u/Jegunainen)\
**Post date:** [August 15, 2023, 6:27am UTC](https://forums.unrealengine.com/t/niagara-audio-component-resulting-in-crash-5-2/1261535/1 "2023-08-15T06:27:37Z")

</div>

I have a BP containing two Niagara systems (an orb and a vortex), and I’ve placed it in the world. I want the systems to respond to sound, and so for any changes to take place, I had to create a Niagara script module, but the engine crashes every time I hit start.

The problem persists until I delete the script module from the content browser (removing it only from the particle update list will still result in a crash). I deleted the script module, and recreated the patch via scratch module in the Particle Update section, and now I’m stuck in a loop where I cannot prevent the crash, even if I delete the scratch module.

Removing the culprit actor from the world yields the same results, unless I save the project. With or without adding audio to trigger the patch, the engine will still crash.

Note: the niagara systems work as intended until I create the script module (script model procedure was shown in tutorials; cross/double-checked for mistakes).

**Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0xffffffffffffffff**

**UnrealEditor\_Niagara**  
**UnrealEditor\_Niagara**  
**UnrealEditor\_Engine**  
**UnrealEditor\_Engine**  
**UnrealEditor\_Engine**  
**UnrealEditor\_Engine**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor\_UnrealEd**  
**UnrealEditor**  
**UnrealEditor**  
**UnrealEditor**  
**UnrealEditor**  
**UnrealEditor**  
**UnrealEditor**  
**kernel32**  
**ntdll**

 ![module](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/8/c785da0fd86333b756bdbac6de7839e087537249.png)

---

<div class="post-metadata">

**Author:** ![Jegunainen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jegunainen/32/725537_2.png) [@Jegunainen](https://forums.unrealengine.com/u/Jegunainen)\
**Post date:** [August 15, 2023, 8:19am UTC](https://forums.unrealengine.com/t/niagara-audio-component-resulting-in-crash-5-2/1261535/2 "2023-08-15T08:19:20Z")

</div>

Deduction reveals that the part of the module causing the crash is the link between the sum vector and the velocity input on the penultimate node.

What do I do now? The only time it doesn’t crash is if I route the velocity vector directly into the velocity input, without making any changes to it. For example, as soon as I add a +1 on the Z-axis, the module will cause the engine to crash on play.
