# Access violation crash

**URL:** <https://qa.fmod.com/t/access-violation-crash/13412>\
**Category:** Unreal Engine\
**Created:** [September 7, 2017, 9:27am UTC](https://qa.fmod.com/t/access-violation-crash/13412 "2017-09-07T09:27:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_E.K](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@John\_E.K](https://qa.fmod.com/u/John_E.K)\
**Post date:** [September 7, 2017, 9:27am UTC](https://qa.fmod.com/t/access-violation-crash/13412/1 "2017-09-07T09:27:39Z")

</div>

I recently wrote a footstep sound system in C++ for our game. I used multiple FMOD events to handle the sound for the different material surfaces. It works fine for a while but a few minutes later it gets the game crashed, something that wouldn’t previously happen with the standard unreal cues.

Any ideas on this are appreciated.

Debugger output:  
(Don’t get scared with tick(). The system calls play on camera-bobbing times only).

LoginId:9445eeb64e5f57885ad678a443cd1ea3  
EpicAccountId:4b13f7f4375b4a65b00db14daac4c043

Access violation - code c0000005 (first/second chance not available)

UE4Editor\_FMODStudio!FFMODStudioModule::GetEventDescription() [e:\epic games\projects\lethe\_origins 4.16 - 2\plugins\fmodstudio\source\fmodstudio\private\fmodstudiomodule.cpp:1211]  
UE4Editor\_FMODStudio!UFMODBlueprintStatics::PlayEventAtLocation() [e:\epic games\projects\lethe\_origins 4.16 - 2\plugins\fmodstudio\source\fmodstudio\private\fmodblueprintstatics.cpp:38]  
UE4Editor\_Lethe\_Origins!AOriginsCharacter::PlayFootstepSound() [e:\epic games\projects\lethe\_origins 4.16 - 2\source\lethe\_origins\characters\player\originscharacter.cpp:436]  
UE4Editor\_Lethe\_Origins!AOriginsCharacter::UpdateEyeHeight() [e:\epic games\projects\lethe\_origins 4.16 - 2\source\lethe\_origins\characters\player\originscharacter.cpp:300]  
UE4Editor\_Lethe\_Origins!AOriginsCharacter::Tick() [e:\epic games\projects\lethe\_origins 4.16 - 2\source\lethe\_origins\characters\player\originscharacter.cpp:130]  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_UnrealEd  
UE4Editor\_UnrealEd  
UE4Editor  
UE4Editor  
UE4Editor  
UE4Editor  
UE4Editor  
kernel32  
ntdll

EDIT:  
Once again I answer my own question.  
I haven’t noticed any crashes since adding UPROPERTY() right before instancing the sound component class used to hold the assets outside the main character class. As my partner said, it probably has to do with the way UE4 handles garbage collection.
