After updating to 4.6, crash on editor startup
I've just upgraded the engine to the latest version. I've made a series of changes (mainly changing signatures to new versions in the case of PCIP and GENERATE_UCLASS_BODY etc.) and was having some difficulties with my TMap object. Formerly it looked like this:
and now this:
I've changed it to a pointer because of some strange issue I was having, wherein Map.h reported an error something along the lines of it not having access to private member "UAbility::UAbility" (of which I have not even declared, and thus assume it comes from the generated body which must be private).
The reason I mention the TMap at all is because it would seem to be the only change I have made, aside from renaming, and now the entire project does crashes on load. It compiles fine, but upon loading the editor crashes around 40-50% through the initialize step; I can only provide the following information:
I appreciate that this may be vague but I would greatly appreciate any help. The project is rather large currently and I am unable to debug to discover the problem, as it crashes seemingly before hitting any breakpoints.
Any help would be highly appreciated!
You are having issues because you are storing UObjects in a container by value. This is generally a Bad Thing to do, and I wouldn't be surprised if the default constructor, copy and assignment operators are blocked on UObjects to prevent that.
As for the crash, it is likely happening in the modules initialization, where the native class CDOs are initialized. Is it possible that this ability map of yours is somehow being accessed and dereferenced during some native class's constructor?
When having blueprints serialized with bad/outdated data, I've also had some luck in the past by deleting the DDC (DerivedDataCache folder). This forces lots of runtime cooked assets to be rebuilt, including blueprints that may be faulty.
Follow this question
Once you sign in you will be able to subscribe for any updates here