# Child Actor Component with Light Crash

**URL:** <https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076>\
**Category:** Platform & Builds\
**Tags:** child-actor-componen, light, unreal-engine, crash, bug-report, question\
**Created:** [May 1, 2016, 7:21am UTC](https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076 "2016-05-01T07:21:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slarti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@slarti](https://forums.unrealengine.com/u/slarti)\
**Post date:** [May 1, 2016, 7:21am UTC](https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076/1 "2016-05-01T07:21:40Z")

</div>

I’ve experienced a crash in regards to child actors with a light component with static mobility. This can be used to reproduce the bug:

Initial Setup:

Child Blueprint

- A Sphere Component as root (Mobility: Movable)
- A Spotlight Component (Mobility: Movable)

Parent Blueprint

- A Cube Component as root (Mobility: Movable)
- A Child Actor Compoent with the “Child Blueprint” as the Child Actor Class (Mobility: Movable)

Now to create the crash: Set the Mobility of the childs light to Stationary (edit: Static works, Stationary does not). This will correctly change the Childs root to Static Mobility but not that of the parent blueprint. Trying to place the Parent Blueprint in a level and playing the level will crash the editor.

Here is the log file of such a crash:

> **[UE4 Crash Log - Pastebin.com](https://pastebin.com/0pfcf4xA)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

And a test map with this setup:  
[http://ge.tt/4SwUIBa2](http://ge.tt/4SwUIBa2)

Workaround: Set the correct mobility on the parent before changing the child mobility.

[There is a similar bug report here](https://answers.unrealengine.com/questions/373658/unreal-engine-411-preview-5-bug-light-as-child-act.html) but I created a new post since this still happens in 4.11.2 and not only in the preview version.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 2, 2016, 5:54pm UTC](https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076/2 "2016-05-02T17:54:25Z")

</div>

Hi ,

Unfortunately, I have not been able to reproduce this on my end with the steps/map provided. Are you compiling the parent blueprint after making changes to the child?

---

<div class="post-metadata">

**Author:** ![slarti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@slarti](https://forums.unrealengine.com/u/slarti)\
**Post date:** [May 3, 2016, 6:00am UTC](https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076/3 "2016-05-03T06:00:55Z")

</div>

Yes, all components in the parent blueprint are still listed as Movable. But I have a correction to make. Setting the light to Static works, but not to Stationary. Placing the component with the stationary light also (correctly) shows that the light has an error (stationary light, movable parents, see image).

 ![89257-lightcrash.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/f/7cf68e09576855e1e20a11b46f731782f4b7ead0.jpeg)

As soon as I hit play (with the in-editor view), the crash happens with the aforementioned error log:

```
[2016.05.03-05.53.52:665][131]LogWindows:Error: === Critical error: ===
Fatal error: [File:D:\BuildFarm\buildmachine_++UE4+Release-4.11\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 177] 
Illegal call to StaticFindObjectFast() while serializing object data or garbage collecting!

```

The crash also happens when trying to save the map with the placed parent blueprint.

Also the crash does not happen, when first setting the light to Static, saving/compiling and then setting the light to stationary. Then only an error is logged in the editor which correctly shows the incorrect setup:

```
PIE:Warning: Warning AttachTo: '/Game/UEDPIE_0_Level.Level:PersistentLevel.ParentBlueprint_72.ChildActor' is not static (in blueprint "ParentBlueprint"), cannot attach '/Game/UEDPIE_0_Level.Level:PersistentLevel.ChildBlueprint_C_80.Child' which is static to it. Aborting.
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 3, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/child-actor-component-with-light-crash/356076/4 "2016-05-03T20:56:36Z")

</div>

Hi ,

I was able to reproduce this and have entered a bug report, UE-30275, to be assessed by the development staff.
