[5.7.4] Landscape spline build is crashing due to landscape spline actor having null static mesh components

Hello :slight_smile:

I’m not sure how our map did end up in that state, probably during the migrations of unreal or something in 5.5 affecting our landscape spline meshes actors, but they were in a bad state (they were still showing up in the map in editor, but not in build), when i try to rebuild them, a crash occured because it was trying to hash the static mesh components of a landscape actor, but they were all null, i fixed the tool to be able to get in a state where our actors can recover by using this, basically dirtying any landscape spline mesh actor that is having at least a null static mesh component

[Image Removed]

[Attachment Removed]

Steps to Reproduce[Attachment Removed]

Hi Alex,

Thanks for reporting the issue. We don’t really see why the static mesh components would be null upon reload. Isn’t there a warning in the log indicating what happened?

As for the fix, we think it would be best to do this in ALandscapeSplineMeshesActor::PostLoad, in case another system might rely on non-null static mesh components but what you did should work too. We will prepare a fix on our side too and will update this ticket when it’s submitted.

Cheers,

Jonathan

[Attachment Removed]

No there were no warnings or so, it could be coming from some issues we got with landscape splines in 5.5, yeah i see the reasoning, make sense, will probably exchange my fix with yours when you have done it :slight_smile:

Thanks

[Attachment Removed]