SetDefaultSubobjectClass when calling Super's constructor crashes Unreal Engine
Today I started a new project, after creating the base classes a compile step made Unreal Editor crash. Since then my project doesn't start, at 70% load Unreal Engine stops working. After a bit of fiddling, cleaning the build, deleting some of the folders inside of the intermediate folder, etc. I couldn't get it to work. No big deal, something got corrupted when it crashed and I can't get back in, it's early in the project, I will waste more time trying to solve the problem than starting from scratch.
So I started a new project and when I finished redoing the last class that I managed to do in the previous one the compiler crashed again. Apparently it's my code that somehow manages to crash the compiler, and I guess when the project begins it rebuilds some things and so it crashes too.
Indeed when I comment everything out except the topmost definition of the class and the GENERATE_BODY() macro the project starts properly.
By uncommenting slowly and recompiling I've delimited the problem to the constructor of the class:
The three lines inside are not needed to crash the compiler so I've left them commented.
The class declaration is as follows
asked Oct 26 '16 at 07:16 PM in C++ Programming
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.
answered Nov 04 '16 at 02:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here