Crash after moving struct to different location

I got a crash after moving a struct to a different location. I made a small fix in the UE4 source to fix it…

K2Node.cpp line 536
TMap<FName, FName>* StructRedirects = (ParentPin->PinType.PinSubCategoryObject.IsValid()) ? UStruct::TaggedPropertyRedirects.Find(ParentPin->PinType.PinSubCategoryObject->GetFName()) : nullptr;

This fixed it, because afterwards i got nice message saying some struct references were invalid with the option to remove them, which i did.

Hi ,

How did you move the struct? Did you move it in the Content Browser through the editor or did you more the .uasset through your PC’s file structure?

It happened after moving files for integrations, thus i moved the .uasset files. In my opinion there should be much more checking for nullptrs in the code base… it prevents a lot of crashes that can be resolved without a hard crash… especially when changing references i regularly experience crashes. Note: the crash happened after opening a blueprint, which caused recompilation.

I attempted to reproduce your crash but so far I haven’t been able to get the same results.

I did get the message about invalid references which is expected. Moving .uassets outside of the editor can sometimes cause major issues. Removing them and fixing the references in the blueprints that were using the struct is the correct way to fix that.

If you would like to continue troubleshooting the crash, could you post the entire crash Callstack, Log, and Dmp files? Also, make sure to submit the crash report as well.

Cheers,

TJ

I do not have the callstack anymore, i just traced it myself to this point. I will submit a new bugreport when i do.