A specific map would crash a process in the UE4 editor no matter what

I have a project with a specific map for the main scene.
The project worked fine until now, but recently I tried to add some new code to my C++ classes.
What happened then is that just loading the main map would crash a process in UE4 and shut down the editor.
I tried rebuilding from VS2017, I tried rebuilding everything while on different map and then loading this specific map. But no matter what, just loading this map will crash UE4 editor.

Not only that, even trying to delete the map from the UE4 editor would make it crash. So I had to delete it using windows explorer.
I then copied an older backup of the map, and it did the same thing.

Is there a way to fix this?

Hey there, you need to execute the engine through VS and check the call stack, that will give you more information about where the crash happened.

Is it possible to execute the project from VS without having to attach it to the editor or run it as standalone from the editor first? I can’t seem to be able to find any information on that.

Hi, ok I realized I can attach VS to the editor before I would click the map and then it would break and debug it.
I just didn’t realize it runs my code even before I press Play. Should I mark your answer or make a new answer about the code running even before pressing Play?

You should mark as correct when it’s fixed :slight_smile: