Unreal crashes every time when launching Escape Building project

Hi, I have this particular problem when I finished the door rotation class in Lecture 60.
Soon as I finished building in VS, Unreal automatically crashed.
Every time I tried to launch it again, it crashes when loading around 70%
I tried to reset my git commit back when thecrashing problem hasn’r been coming up but it failed.
Opening other projects works ok though.

I’m plain clueless how this happened or how can I avoid such cases in the future.

Here’s the crash report:

MachineId:59E2EA5C4C1A7B3B97486DBC885B8136
EpicAccountId:562da02071f14cfeb72ba36844224f58

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

UE4Editor_Engine!AActor::SetActorRotation() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\engine\private\actor.cpp:3102]
UE4Editor_BuildingEscape_8261!UOpenDoor::UOpenDoor() [c:\users\k\documents\unreal projects\03_buildinggame\buildingescape\source\buildingescape\opendoor.cpp:22]
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:3340]
UE4Editor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:725]
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:819]
UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl(void)>::ExecuteIfSafe() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:1021]
UE4Editor_Core!TBaseMulticastDelegate::Broadcast() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:921]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:461]
UE4Editor_Projects!FModuleDescriptor::LoadModulesForPhase() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\projects\private\moduledescriptor.cpp:398]
UE4Editor_Projects!FProjectManager::LoadModulesForProject() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\projects\private\projectmanager.cpp:53]
UE4Editor!FEngineLoop::LoadStartupModules() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2163]
UE4Editor!FEngineLoop::PreInit() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:1609]
UE4Editor!GuardedMain() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\launch.cpp:114]
UE4Editor!GuardedMainWrapper() [d:\build++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\build++ue4+release-4.12+compile\sync\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

Judging by the first two lines of the trace, it would seem that you’re making an invalid call to SetActorRotation() within your UOpenDoor class. I would try clearing the project (delete Binaries, Intermediate, and Saved folders, and the .sln file). Then generate the Visual Studio files, but do not build or open the .uproject. Open the .sln and go into the file to see if you can spot the error before building, it should be an easy fix. Once fixed, build and you should be golden.

Privacy & Terms