Access violation - code c0000005

Every time I start up UE4 I get this error message

UE4Editor_Engine!USceneComponent::AttachTo() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\components\scenecomponent.cpp:1162]
UE4Editor_Game_5294!APlayerCharacter::APlayerCharacter() [c:\users\simon\onedrive\documents\college\epq\game\source\game\playercharacter.cpp:44]
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\coreuobject\private\uobject\class.cpp:2657]
UE4Editor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:658]
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:752]
UE4Editor_CoreUObject!TBaseStaticDelegateInstance::ExecuteIfSafe() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:921]
UE4Editor_Core!TBaseMulticastDelegate::Broadcast() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:809]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\core\private\modules\modulemanager.cpp:426]
UE4Editor_Projects!FModuleDescriptor::LoadModulesForPhase() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\projects\private\moduledescriptor.cpp:370]
UE4Editor_Projects!FProjectManager::LoadModulesForProject() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\projects\private\projectmanager.cpp:53]
UE4Editor!FEngineLoop::LoadStartupModules() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\launchengineloop.cpp:1989]
UE4Editor!FEngineLoop::PreInit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\launchengineloop.cpp:1495]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll

Any help would be appreciated

Hello,

I have a few questions that can help narrow down the cause of your crash:

  • Does this happen with every project, or just a specific project?
  • Could you please provide your crash logs from your project’s Saved->Logs folder?
  • Could you also cause the crash to occur again, and provide your Machine ID from the Crash Reporter window, and also ensure that you hit send on the Crash Reporter window?

Thank you.

Try to start in Local Windows Debugger in Visual Studio, it will redirect you where the crash occurs !

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

Hello, sorry to keep you waiting. I’ve been away for a few days.

  • It only occurs with a specific project
  • Machine ID: 68998BF14A613D2E5F22DEA6662D84CD
  • Log: My Files

Since this seems to be specific to your project, it is likely that I will need to take a look at the project itself so I can determine the cause of the crash.

Could you please zip up your project and provide a link to Dropbox where I can download it? If you’re concerned about privacy, feel free to send the link in a PM to me on the forums: https://forums.unrealengine.com/member.php?160394-Sean-Flint

Also, do you happen to be using AttachTo in the construction script of any of your blueprints? If so, move this to the Event Graph to something like Begin Play, and see if this prevents your crash.

Thanks for the help, I’ve managed to fix it. I don’t know exactly what I did to fix it, or what was wrong but it’s fixed now anyway. I moved a whole bunch of stuff into BeginPlay which might have been the cause :stuck_out_tongue: