Garbage collection throwing fatal error
I am using the installed 4.5.1. We download a uasset from our server and instantiate it. Once garbage collection happens automatically (or we use GetWorld().ForceGarbageCollection(true)), we get
We have the ability to animate and move the downloaded asset, but once GC runs, it crashes. I am not sure if we are forgetting to set something on our instantiation of the downloaded asset, or anything like that.
Apparently when setting the FSingleAnimationPlayData for the SkeletalMeshComponent's AnimationData needs to have both the AnimToPlay and VertexAnimToPlay set to something, even if that something is just nullptr, or GC will fail because it considers the object invalid.
answered Oct 30 '14 at 06:12 PM
Mark with UPROPERTY()
After you download your asset, are you caching it off to a UPROPERTY() variable?
That will protect it from GC.
IsValidLowLevel() would seem to be indicating that your object is not getting properly initialized.
Can you show your code for actually creating the uasset/object from your downloaded data?
answered Oct 30 '14 at 05:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here