# Garbage collector error with blueprint hierarchies

**URL:** <https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258>\
**Category:** Blueprint\
**Tags:** garbage-collector, child-actor-componen, unreal-engine, crash, Blueprint, question\
**Created:** [April 15, 2016, 7:25am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258 "2016-04-15T07:25:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 15, 2016, 7:25am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/1 "2016-04-15T07:25:52Z")

</div>

**Build Type** : Binary  
**Build Version** : 4.11.1-2934540

We have blueprints that have other blueprints as child actor component inside of them. Some of these form hierarchies at least to the 4th level. After converting project to 4.11 making changes these blueprints inside these hierarchies cause _Illegal call to StaticFindObject() while collecting garbage!_ - error and crashes the project. Most of these blueprints contain couple meshes or sprites and some functionalities for them.

BPANDREW posted this issue to blueprint question section, here is the orginal post: [https://answers.unrealengine.com/questions/402744/garbage-collection-bug-411.html](https://answers.unrealengine.com/questions/402744/garbage-collection-bug-411.html)

**Repro steps** :

1. Created clean project.
2. Added blueprints: MainActor, ChildActor1, ChildActor2, ChildActor3.
3. Added CA1 as child component of MainActor.
4. Added CA2 as child component CA1.
5. Added CA3 as child component CA2.
6. Then drop the MainActor to the game level.
7. Add cube mesh to MainActor and after that sphere mesh to CA1 → Illegal call to StaticFindObject() while collecting garbage!

After this you can restart the project and everything seems fine for while, until you do again some changes in one of the blueprints or add meshes and in some point it will crash in while making the change, compiling or running the game in editor.

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [April 17, 2016, 2:05am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/2 "2016-04-17T02:05:58Z")

</div>

I am running into same problem. Kind of a show stopper. I can’t figure out where its coming from because the project is fairly developed at this point.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 18, 2016, 2:40pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/3 "2016-04-18T14:40:13Z")

</div>

Hello,

I have followed the above steps in a clean project, but I’m not seeing the same error on my end. When are you seeing this error message appear?

---

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 18, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/4 "2016-04-18T15:04:02Z")

</div>

Hello,  
I have tested that method several times, but I as well failed reproduce error just now, which is weird.

To make it throw that error, just now, I had to add and remove meshes in hierarchy then just add more back or just move the meshes and the child actor component in the local spaces randomly with the arrows. It should crash immediately or when compiling.

I had at least one mesh in every blueprint and then added couple more and moved one child actor in CA1 and then mesh in CA2.

Thanks for checking this issue.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 18, 2016, 3:58pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/5 "2016-04-18T15:58:01Z")

</div>

- Could you provide the logs from your project’s Saved-\>Logs folder after the crash occurs?
- Could you please cause the crash again and provide your Machine ID from the Crash Reporter window and ensure to hit send on the report?

---

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 18, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/6 "2016-04-18T16:19:56Z")

</div>

Logs

MachineId:F440E81045D3507D237D68827723F0A5

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 19, 2016, 6:08pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/7 "2016-04-19T18:08:54Z")

</div>

Thank you for providing this additional information. Could you please provide a test project where this crash is occurring so that we can enter a report for it? If you have one, you can zip it up, upload it to dropbox, and then provide a link to the project via PM: [https://forums.unrealengine.com/member.php?160394-Sean-Flint](https://forums.unrealengine.com/member.php?160394-Sean-Flint)

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [April 25, 2016, 12:35pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/8 "2016-04-25T12:35:39Z")

</div>

I’m also having this error. Using 4.11.2 and it randomly occurs when I attempt to PIE.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 25, 2016, 3:55pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/9 "2016-04-25T15:55:24Z")

</div>

As far as the project’s that you’ve provided, could you please provide the steps that I’ll need to take to reproduce the error?

---

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 25, 2016, 4:47pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/10 "2016-04-25T16:47:54Z")

</div>

I sent pm message with video showing the steps.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 25, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/11 "2016-04-25T17:06:47Z")

</div>

Hello SVR33,

Could you cause the crash to occur again and provide your Machine ID from the Crash Reporter window and ensure that you send the report?

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [April 28, 2016, 12:57am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/12 "2016-04-28T00:57:55Z")

</div>

Sean, have you been able to recreate the error? Is this problem being addressed? Thank you.

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [April 28, 2016, 1:00am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/13 "2016-04-28T01:00:40Z")

</div>

I don’t want to jinx it, but it hasn’t hit me once since I posted here. /fingers crossed. If it does, I’ll post relevant info. Thanks.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 28, 2016, 1:20pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/14 "2016-04-28T13:20:36Z")

</div>

Hello mxnko,

I’m currently investigating this issue, and I will provide more information as soon as it is available.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 28, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/15 "2016-04-28T14:04:03Z")

</div>

Hello everyone,

Please test your projects using the 4.12 preview. There is a similar issue that was reported fixed for 4.12, but I haven’t been able to determine if it is the same as what you are all experiencing.

Let me know the results, and I will continue testing in the meantime.

Thank you

---

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 29, 2016, 8:18am UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/16 "2016-04-29T08:18:03Z")

</div>

I tried with three projects, one converted to 4.12 preview and other created clean with code and third without. All projects crash with same steps and same way but this time with: Access violation - code c0000005 (first/second chance not available)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 29, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/17 "2016-04-29T16:10:20Z")

</div>

Could you provide the logs from the 4.12 project? That error message seems different than the one that you were getting in 4.11.

Could you also send that 4.12 crash report so that I can check it in our database?

---

<div class="post-metadata">

**Author:** ![Daedrox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daedrox](https://forums.unrealengine.com/u/Daedrox)\
**Post date:** [April 29, 2016, 4:37pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/18 "2016-04-29T16:37:09Z")

</div>

Here the whole project with logs.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [May 3, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/19 "2016-05-03T14:19:51Z")

</div>

Hello,

I have been able to reproduce your crash, and have entered a bug report (UE-30242). Thank you for your report.

Have a great day

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [May 3, 2016, 10:11pm UTC](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258/20 "2016-05-03T22:11:46Z")

</div>

Sean do you know if its going to be addressed in 4.11.x or 4.12? Thank you!

[Next page](https://forums.unrealengine.com/t/garbage-collector-error-with-blueprint-hierarchies/354258.md?page=2)
