Editor Crash on opening project
Adding following lines of code caused my project to crash:
The OnCollisionBoxEnter function worked before adding loop.
That loop was located in the constructor ABaseItem::ABaseItem(), this is ABaseItem's header:
Sorry if that was to long, I'm just making sure I don't miss an important detail.
As you can see I was creating multiple bindings on a UBoxComponent on a USTRUCT to a single function on a UCLASS which to be honest I doubted would work. However this caused an editor crash, that continued crashing the editor when I tried to launch the project even when the lines of code had been commented out. This brought up the Unreal Engine 4 Crash Reporter and told me: "You do not have any debugging symbols required to display the callstack for this crash." The only way I found to launch my project was to delete the folders Intermediate and .vs and remove any dll or pdb files in Binaries>Win64 that ended with numbers. Even then if I tried to compile my code the project crashed again.
I hope that somebody could tell me what is causing this problem and how to fix it. It would also be nice if I could be given an alternative to the error causing loop but that would not be necessary as long as I can get the project to launch again.
asked Apr 18 '17 at 06:10 PM in Bug Reports
Go to your My Files in your computer. File Explorer > Documents > Unreal Projects > Project Name > Content. Find the object you were editing when the crash occurred, then delete it. I know it may suck getting rid of it, but worst case scenario, you still have the rest of your game. This same thing has happened to me countless times throughout this project I am working on.
Once you delete the object, of course it will need to be recreated, but it will allow the editor to open up without any issues. And for the future, ensure that once you get this working again, you make a backup copy of your game. This will come in handy for whenever you cannot get your project back.
Follow this question
Once you sign in you will be able to subscribe for any updates here