Editor crashes when opening project

Every time I open my project, the editor crashes at about 70%. Here is the crash log.

The crash looks like it is coming from your code,

[2017.11.15-17.50.24:433][  0]LogWindows: Error: === Critical error: ===
[2017.11.15-17.50.24:433][  0]LogWindows: Error: 
[2017.11.15-17.50.24:433][  0]LogWindows: Error: Fatal error!
[2017.11.15-17.50.24:433][  0]LogWindows: Error: 
[2017.11.15-17.50.24:433][  0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000128
[2017.11.15-17.50.24:433][  0]LogWindows: Error: 
[2017.11.15-17.50.24:433][  0]LogWindows: Error: UE4Editor-Engine.dll!0x00000000151608A0
[2017.11.15-17.50.24:433][  0]LogWindows: Error: UE4Editor-Elementals-5895.dll!AElementalsCharacter::AElementalsCharacter() [e:\users\tommy muir\unreal projects\elementals\source\elementals\elementalscharacter.cpp:53]

In general if the error you see is ‘access violation’ it means you are not checking if something is nullptr. Look at your elementalscharacter.cpp file at line 53 and see what it is doing there. If you need help feel free to post that section of your code

That’s really weird, elementalscharacter.cpp at line 53 is commented out. I built the solution in visual studio and, for some reason, I was now able to open it in the editor. However, when I opened it,


message appeared and when I played it in the editor, the game was frozen.

Also, I get these messages when I load the project.

These seem unusual, can you post the constructor from elementalscharacter.cpp and elementalscharacter.h please?

Nevermind, luckily, just after I first received the crash, I saved a backup of the project and I was able to open this project once I had built it in visual studio. I have no idea what caused this to happen and why building it in visual studio fixed it, but I’m glad I’ve got it all sorted now.

It works for me, thank you !