The incorrect use of NewObject() to instance nested class-owned subobjects will force StaticAllocateObject() to reconstruct the instance that was already constructed by the outer class ctor in native engine code. This will eventually result in a call to the UObjectBase dtor.
When async loading is enabled, the UObjectBase destruction will assert if the load results in this code path occurring on an async load worker thread rather than the main (game) thread.
Suggested workarounds are as follows (only one of the following is needed):
[BlueprintNativizationSettings] +ExcludedBlueprintTypes=/Script/UMGEditor.WidgetBlueprint
[BlueprintNativizationSettings] +ExcludedAssets=/Game/Widgets/MyWidgetBlueprint.uasset
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-87038 in the post.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.22, 4.23, 4.24 |
Target Fix | 4.25 |
Created | Jan 18, 2020 |
---|---|
Resolved | Jan 18, 2020 |
Updated | Feb 5, 2020 |