Crash on editor start after adding C++ class
Starting from Blueprint only template, added custom AIController class to project via the editor. No other code in project.
First added this: GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("I Worked!"));
works fine. Crashes after compile here and crashes on each attempt to open project: FVector myCharacter = GetControlledPawn()->GetActorLocation();
Comment out all code and rebuild, crashes continue with the same error:
Dump File: Dump-80018512.dmp : C:...\Saved\Logs\Dump-80018512.dmp Last Write Time: 5/20/2014 3:51:09 PM Process Name: UE4Editor.exe : C:\Program Files\Unreal Engine\4.1\Engine\Binaries\Win64\UE4Editor.exe Process Architecture: x64 Exception Code: 0xC0000005 Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. Heap Information: Not Present
OS Version: 6.1.7601 CLR Version(s):
Replicated crash on a new project with same results.
asked May 20 '14 at 08:13 PM in Bug Reports
Any time you are accessing GEngine through code, it is a good idea to make sure it is available first. Try using the following code in your constructor:
Including this check will prevent the crash you are experiencing when you open the project.
answered May 21 '14 at 06:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here