Project crashes on startup (C++)

Hi,

Having some problems, UE4 crashes at 71% when opening my project. Compiles fine in Visual Studio though.

I’ve tried removing Binaries folder and rebuilding project in VS - Compiled successfully but still doesn’t work.

Tried removing the maps in case that was it - no change

Tried removing Autosave folder - nothing

I cannot see anything noticeable in the log files, please can someone help?

See attached log files here

CrashDump say you have nullpointer, because its happens when you start editor i guess you did something wrong in some class Constructor (like you tried to getworld, or something like that)

cheers

Hi,
Thanks for your help.

I’ve removed the code that was implemented just before the crash (so i’m guessing that caused it) and
it still doesn’t work after re-building.

I have checked everywhere for null ptrs. :confused:

Not enough if you checking nullptrs… if you try to call functions on constructor which not allowed, engine will still crash…

Double check you do not use any non allowed function in constructor…

If not… well then problem can be in blueprint… and try to remove interm / saved dirs again…

Have you tried running your project with attached debugger?

@Down
Ikr :stuck_out_tongue:

good point! :smiley:

Open your project in visual studio.

From Debug menu select Start Debugging. (https://i.imgur.com/ALMwX0P.png)

Or simply hit F5.

Wow, great idea thanks.

How would i do this when the editor crashes on startup? How do I attach the process as if i attach it to the editor, by the time VS has sorted itself out, the editor has already crashed and VS says “Source not available”

Thanks

I’ve removed all code and intermediate + save directories and still crashes. :confused:

Ok, managed to get it to work by removing the Saved, Interm and binaries folders, the .sln
Right clicked the project and generated visual studio etc…
Loaded the solution up in VS and built solution.

Hopefully this could help someone else.