Is the DynamicMeshComponent's distance field generation option editor-only?

When I tried to use it in a packaged build it caused my game to crash. If this is intended behavior, I find it pretty disrespectful that no one had the decency to comment it anywhere or write it in the docs as I spent a good chunk of time working with it and I hope this will not go to waste.

If it isn’t intended behavior however, I’m very surprised that I couldn’t find any bug report about it, then again maybe I’m the only one having this issue…

Hey @Elioss44

Welcome back to the Unreal Forum! I’d be happy to take a look if you can upload the crash log for me.

Hello and thank you! Here is my log, but I’m not sure it is very useful because it doesn’t give much information. Here, I subclass UDynamicMeshComponent, don’t verrride anything and add to it some geometry. In GenerateDistanceField mode there is a crash, otherwise there isn’t.
DWI_core.log (94.6 KB)

As you can see, I also generate distance field data myself and log this about it but it is actually never used anywhere in the code in this version. However, it is still relevant as my distance field function is the exact same as the default one copy-pasted except for sign computation of the SDF which I changed, so it should give results which are exactly the same size in bytes, and i noticed that “Resource size bytes” is significantly bigger in packaged builds as compared to editor builds. Moreover, it is completely consistent in all packaged builds, and completely consistent in all editor builds. I wonder if it’s generating unwanted data that causes issues when the lumen cards are generated.

Note that without the “GenerateDistanceField” mode, everything works as intended

That’s interesting. I’ve saw errors similar to this prior. The odd thing is that it isn’t happening without GenerateDistanceField. Have you tried pulling everything over to a new project and testing? (Also, does it work without the crash in other UE versions?)

I spent yesterday pulling everything over to a new project yes, and the error continued to appear only in packaged builds and not in editor builds. Also I’m pretty sure the GenerateDistanceField option is new in 5.5 (it was marked as such in the changelog) so I can’t test it in other versions, I actually upgraded my project from 5.1 to 5.5 specifically because of that feature

Should I report it on the issue tracker at that point? Since I’ve managed to reproduce the issue in a new project

Yes, that’s what I was thinking as well. Thank you for the report!