Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

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

 [2014.10.29-22.50.33:355][454]LogUObjectBase:Error: Class pointer is invalid or CDO is invalid.
 [2014.10.29-22.50.33:356][454]LogUObjectBase:Error: Class object failed IsValidLowLevelFast test.
 [2014.10.29-22.27.05:170][694]LogUObjectBase:Error: Object flags are invalid or either Class or Outer is misaligned
 Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.5\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp] [Line: 273] 
 Invalid object in GC: 0x00000000112e7898, ReferencingObject: SkeletalMeshComponent /Game/UEDPIE_0_default.Default:PersistentLevel.ASSET_1895.SkeletalMeshComponent0, ReferencingProperty: ObjectProperty /Script/Engine.SkeletalMeshComponent:SingleAnimationPlayData.VertexAnimToPlay
 UE4Editor.exe has triggered a breakpoint.

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.

Product Version: Not Selected
more ▼

asked Oct 29 '14 at 08:59 PM in C++ Programming

avatar image

93 11 12 14

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Oct 30 '14 at 06:12 PM

avatar image

93 11 12 14

(comments are locked)
10|2000 characters needed characters left

Dear DoctorWhy,

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?


more ▼

answered Oct 30 '14 at 05:51 PM

avatar image

10.6k 446 343 1085

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question