# \[Bug Report\]\[Reproducible\] Child Actor Component's Class clears on editor restart

**URL:** <https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037>\
**Category:** C++\
**Tags:** bug, child-actor-componen, UE4-7, unreal-engine, bug-report, Blueprint, question\
**Created:** [March 4, 2015, 12:03am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037 "2015-03-04T00:03:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d2ffd0f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d2ffd0f](https://forums.unrealengine.com/u/anonymous_user_9d2ffd0f)\
**Post date:** [March 4, 2015, 12:03am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/1 "2015-03-04T00:03:48Z")

</div>

This is a reproducible bug report of a bug that people have been reporting recently on 4.7:

> **[Child Actor Component's Class clears on editor restart](https://forums.unrealengine.com/questions/178689/child-actor-components-class-clears-on-editor-rest.html)**
>
> This bug appeared after updating to 4.7 version. We have 2 child actor components attached to a blueprint. For some reason, every time I restart editor, it sets both of child actor components class to “None” or to “Placeholder-(something)” and I...

**Branch:** Binary

**Build Version:** 4.7.0-2455222

**Repro Steps:**

- Create a new project “ChildActorNone” from blank template with no starter content
- Create new blueprint “MyPlayerController” by subclassing “PlayerController” blueprint
- Create new blueprint “MyChildActor” by subclassing “Actor” blueprint
- Create new blueprint “MyActor” by subclassing “Actor” blueprint
- Create new “ChildActor” component in “MyPlayerController”
- Set “Child Actor Class” property of “ChildActor” component in “MyPlayerController” blueprint to “MyChildActor”
- Create new variable “MyActorVariable” of type “MyActor” in “MyPlayerController”
- Create graph in “MyPlayerController”:

 ![32084-myplayercontrollergraph.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/8/ff8d86be8cf3c0848e20fba76504ab529b755018.png)

- Create graph in “MyActor”:

 ![32085-myactorgraph.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/9/4397064b9047a0f7c3daab4cd0424c13985229c2.png)

- Save everything
- Close and reopen editor
- Notice how “Child Actor Class” property of “Child Actor” component in “MyPlayerController” blueprint has been set to something like “PLACEHOLDER-CLASS\_MyChildActor\_C\_0”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 4, 2015, 1:03am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/2 "2015-03-04T01:03:24Z")

</div>

Hey Mastodon,

Thanks for reproduction steps! This was really helpful, and I was able to reproduce this issue in 4.7.1 as well. I checked it in our internal build as well, and it appears that issue has already been fixed. This fix should be included with a future release.

In meantime, it appears that cause is circular dependency; MyPlayerController is getting a reference to MyChildActor, which in turn references player controller. This is generally to be avoided if possible, but it looks like this particular bug won’t be an issue for much longer. Thanks again for narrowing it down for us!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d2ffd0f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d2ffd0f](https://forums.unrealengine.com/u/anonymous_user_9d2ffd0f)\
**Post date:** [March 4, 2015, 1:12am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/3 "2015-03-04T01:12:33Z")

</div>

You’re welcome . Glad to help.

I suspected culprit was a circular dependency during asset loading.

So is this on track to be fixed in 4.8 or 4.7.2 (if there will be one)?

What would be a good work-around in meantime? Other than just removing all circular dependencies.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 4, 2015, 1:18am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/4 "2015-03-04T01:18:52Z")

</div>

My guess would be 4.8, though if we do Previews again (I suspect we will) you’ll see it there first. I think 4.7.2 will be too short notice for developers at this point, if they decide to push that out.

Removing circular dependencies is definitely your best bet, though I know that can be difficult and workaround will depend on what you’re trying to achieve. I’ll give it some thought for type of setup you’ve got here and let you know what I come up with.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [March 5, 2015, 10:17am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/5 "2015-03-05T10:17:52Z")

</div>

Hi , I understand this is fixed in an ‘internal build’ - which Github branch would I need to pick up to obtain this fix, is it ‘promoted’ branch or ‘4.8’ branch?

Some additional thoughts:  
I realize using a build on bleeding edge of development is risk prone (as I only just migrated from 4.6.1 to 4.7.1 with some effort), but this issue is quite a thorn right now as I have to manually set up child actor class whenever I start editor, obviously not fun!

---

<div class="post-metadata">

**Author:** ![Rashura](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rashura](https://forums.unrealengine.com/u/Rashura)\
**Post date:** [March 5, 2015, 1:25pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/6 "2015-03-05T13:25:33Z")

</div>

Also just started having this problem after updatin to 4.7.1 and again after 4.7.2 with random blueprints that have absolutely no circ. dep.  
Random child actor components are cleared after editor restart.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 5, 2015, 3:53pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/7 "2015-03-05T15:53:04Z")

</div>

Promoted is probably most stable option, and most recent Promoted is pretty close to what I tested this on. Master is updated whenever any change is made, so it can be severely unstable.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 5, 2015, 3:54pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/8 "2015-03-05T15:54:06Z")

</div>

Hi Rashura,

If you don’t have any circular dependency in your blueprints, it’s probably a different bug. Can you create a new post with as many details and reproduction steps as you can? We can take a look there. Thanks!

---

<div class="post-metadata">

**Author:** ![sculpepper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sculpepper](https://forums.unrealengine.com/u/sculpepper)\
**Post date:** [March 20, 2015, 2:31am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/9 "2015-03-20T02:31:18Z")

</div>

Similar issue. If I have a child component and a variable of same type whenever editor restarts child component is set to none. child component is an actor with just a few float and integer variables with no logic.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [March 20, 2015, 10:57am UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/10 "2015-03-20T10:57:49Z")

</div>

Same here, mine’s not a circular dep issue either (although there are macro libraries involved and those are often culprit), so I can confirm that fix mentioned in from internal build(s) doesn’t work for me.

For now I’m working around this issue until I can set aside some time to properly focus on this (I understand 's suggestion is to file a new report).

Others feel free to pitch in with any repro if you already have one, sadly I haven’t been able to repro this outside my own project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 20, 2015, 2:18pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/11 "2015-03-20T14:18:32Z")

</div>

Hi all,

We’ve seen a few varying cases with which this happens and we believe it’s been fixed, but we weren’t able to get it into 4.7 because it is an API breaking change. It’s possible that simply using GitHub commit won’t fix this for everyone. best way to test this right now would be to get Master branch and open a copy of project there.

To work around it for now, as long as you don’t have bad cyclic dependencies, you can try disabling deferred dependency loading (bDeferDependencyLoads=false) in BaseEngine.ini.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [March 29, 2015, 7:14pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/12 "2015-03-29T19:14:55Z")

</div>

Thanks , your workaround did trick! Just curious - what are downsides of setting bDeferDependencyLoads to false?

PS: I didn’t just pull a particular github commit to test fix (in fact I don’t even know which commit it is!), I built an entire promoted branch around first week of March so I’m a bit wary of whether latest fix covers all variations of issue in question.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 30, 2015, 2:01pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/13 "2015-03-30T14:01:08Z")

</div>

If you have circular dependencies that could cause a crash, bDeferDependencyLoads will prevent project from crashing. With it disabled, you’re running that risk.

Mike Beach was able to get a non-API-breaking fix in for 4.7.4, which should be released officially very soon, and I’ve been getting various confirmations that this bug has been fixed by it. If you’d like to test it sooner than that, grabbing a 4.7 build from GitHub should do it.

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [March 30, 2015, 2:40pm UTC](https://forums.unrealengine.com/t/bug-report-reproducible-child-actor-components-class-clears-on-editor-restart/309037/14 "2015-03-30T14:40:51Z")

</div>

Thanks for explanation! I’ll probably wait for 4.7.4 to test.
