UE 4.11.2 Editor crash when loading C++ project
While compiling some C++ code changes the editor just shut down on me. Now I can't load the project because every time I try to open it the editor crashes. I have tried deleting the project \Save and \Intermediate folders with no success.
This is a project migrated from 4.10.4. Have worked on it/compiled code for several days before the crash today.
Mini-dump reports Exception code 0xC0000005, The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Excerpt of log (entire log is attached):
asked May 03 '16 at 07:34 AM in C++ Programming
The cause of the crash is the GetWorld() call before the world actually exists. If you wrap that specific line inside an if(GetWorld()) call, you should be able to load the editor without the crash. This will ensure that it checks for the world before trying to access it.
answered May 03 '16 at 04:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here