# \#garbage-collection

**URL:** https://forums.unrealengine.com/tag/garbage-collection/6051.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [UE 5.8 10X GC Purge Garbage Performance Regression from 5.7](https://forums.unrealengine.com/t/ue-5-8-10x-gc-purge-garbage-performance-regression-from-5-7/2742577)

<div class="topic-metadata">

**Author:** [@Mr.Vadam](https://forums.unrealengine.com/u/Mr.Vadam)\
**Replies:** 7\
**Last updated:** [November 4, 2026, 10:00pm UTC](https://forums.unrealengine.com/t/ue-5-8-10x-gc-purge-garbage-performance-regression-from-5-7/2742577 "2026-11-04T22:00:40Z")

</div>

Summary Hi, i recently updated project from 5.7.2 to 5.8.1 and upon testing discovered the GC Purge Garbage pass taking at least 10x more time compared to 5.7. I have then tested the same finding via two blank projects …

---

## [How to free memory used by imported resources](https://forums.unrealengine.com/t/how-to-free-memory-used-by-imported-resources/484639)

<div class="topic-metadata">

**Author:** [@HD0520](https://forums.unrealengine.com/u/HD0520)\
**Replies:** 4\
**Last updated:** [November 26, 2025, 4:04am UTC](https://forums.unrealengine.com/t/how-to-free-memory-used-by-imported-resources/484639 "2025-11-26T04:04:22Z")

</div>

I’m trying to build an automatic import tool using Editor Utility Widget to import a large number of resources, but the memory used by imported resources is never freed by the garbage collection, even though the resourc…

---

## [Magical Garbage Collection gets invalid Array from ArrayPool and crashes](https://forums.unrealengine.com/t/magical-garbage-collection-gets-invalid-array-from-arraypool-and-crashes/379371)

<div class="topic-metadata">

**Author:** [@OgoxHammerschild](https://forums.unrealengine.com/u/OgoxHammerschild)\
**Replies:** 4\
**Last updated:** [March 18, 2025, 5:56am UTC](https://forums.unrealengine.com/t/magical-garbage-collection-gets-invalid-array-from-arraypool-and-crashes/379371 "2025-03-18T05:56:37Z")

</div>

Hi, Unreal is hitting a break point at FastReferenceCollector.h:290 but there is no error message and I dont know where to fix stuff. This is the snippet where it happens: else if (ReferenceInfo.Type == GCRT\_ArrayObjec…

---

## [Unreal Engine AssetTools AdvancedCopyPackages Garbage Collection ](https://forums.unrealengine.com/t/unreal-engine-assettools-advancedcopypackages-garbage-collection/2317582)

<div class="topic-metadata">

**Author:** [@JaredHane](https://forums.unrealengine.com/u/JaredHane)\
**Replies:** 0\
**Last updated:** [February 4, 2025, 4:27pm UTC](https://forums.unrealengine.com/t/unreal-engine-assettools-advancedcopypackages-garbage-collection/2317582 "2025-02-04T16:27:49Z")

</div>

I’ve been working on a tool that manages the structure of my Unreal Engine content and have ran into a bit of trouble with copying assets. After copying the assets Unreal Engine doesn’t release the system resources. It’s…

---

## [Where is ActorComponent's GC Reference managed?](https://forums.unrealengine.com/t/where-is-actorcomponents-gc-reference-managed/2278162)

<div class="topic-metadata">

**Author:** [@chul2ya](https://forums.unrealengine.com/u/chul2ya)\
**Replies:** 2\
**Last updated:** [January 16, 2025, 5:04am UTC](https://forums.unrealengine.com/t/where-is-actorcomponents-gc-reference-managed/2278162 "2025-01-16T05:04:25Z")

</div>

Hello. First of all, I ask for your understanding of using a translator due to my lack of English skills. We thought that the GC Reference of the ActorComponent was managed by the Actor who owns the ActorComponent. ht…

---

## [Garbage collection, creating UObject while collecting garbage is not allowed](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 8:36am UTC](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311 "2024-10-04T08:36:32Z")

</div>

Hello, I have an issue with garbage collection and I would like to know how I can find what is causing that… I have a game server in 4.26, and the fatal error “Creating UObjects while Collecting Garbage is not allowed!…

---

## [How to Obtain More Detailed Debugging Information for Garbage Collection](https://forums.unrealengine.com/t/how-to-obtain-more-detailed-debugging-information-for-garbage-collection/1892584)

<div class="topic-metadata">

**Author:** [@OM\_Mehmet](https://forums.unrealengine.com/u/OM_Mehmet)\
**Replies:** 0\
**Last updated:** [June 6, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-obtain-more-detailed-debugging-information-for-garbage-collection/1892584 "2024-06-06T16:26:46Z")

</div>

Hi everyone, I’m encountering an issue where my game crashes in the build version on the client side, but everything works fine on the server. This crash happens during garbage collection. Is there any way I can debug t…

---

## [Assert fails on EndPlay after an Actor was Spawned](https://forums.unrealengine.com/t/assert-fails-on-endplay-after-an-actor-was-spawned/1768342)

<div class="topic-metadata">

**Author:** [@SSttuudd](https://forums.unrealengine.com/u/SSttuudd)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 12:56pm UTC](https://forums.unrealengine.com/t/assert-fails-on-endplay-after-an-actor-was-spawned/1768342 "2024-03-24T12:56:15Z")

</div>

Hi Despite all my efforts I fail to figure out how to fix this. After using SpawnActor (in cpp or in blueprint), if I stop the game, this check fails: Ths actor is properly spawned with the correct class, I can see …

---

## [Prevent garbage collection for item in inventory](https://forums.unrealengine.com/t/prevent-garbage-collection-for-item-in-inventory/1379376)

<div class="topic-metadata">

**Author:** [@spielefreak](https://forums.unrealengine.com/u/spielefreak)\
**Replies:** 5\
**Last updated:** [November 12, 2023, 3:33am UTC](https://forums.unrealengine.com/t/prevent-garbage-collection-for-item-in-inventory/1379376 "2023-11-12T03:33:59Z")

</div>

Hey everyone, I am pretty new to unreal. I want to pick up my item and add it to the player inventory after that remove the item from the world. But I don’t know how to keep a valid reference so the garbage collection do…

---

## [Packaged game crashes when opening next level](https://forums.unrealengine.com/t/packaged-game-crashes-when-opening-next-level/474086)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b5c8e0a0](https://forums.unrealengine.com/u/anonymous_user_b5c8e0a0)\
**Replies:** 4\
**Last updated:** [October 9, 2023, 1:11pm UTC](https://forums.unrealengine.com/t/packaged-game-crashes-when-opening-next-level/474086 "2023-10-09T13:11:01Z")

</div>

Hello, I can package a project to Windows (32-bit and/or 64-bit) but I keep running into a problem when opening the next level where it will take 30 seconds then go to a black screen. The crash logs report “LogGarbage:…

---

## [Struct destroy and garbage collection](https://forums.unrealengine.com/t/struct-destroy-and-garbage-collection/1302783)

<div class="topic-metadata">

**Author:** [@bennur\_1206](https://forums.unrealengine.com/u/bennur_1206)\
**Replies:** 2\
**Last updated:** [September 19, 2023, 1:01pm UTC](https://forums.unrealengine.com/t/struct-destroy-and-garbage-collection/1302783 "2023-09-19T13:01:52Z")

</div>

Hello. I wanted to know if there was a way to destroy or delete structs from memory, and how unreal engine performs garbage collection for structs. Do structs that have not been used, get purged from memory? For examp…

---

## [Project crashes upon opening map (garbage collection error)](https://forums.unrealengine.com/t/project-crashes-upon-opening-map-garbage-collection-error/486435)

<div class="topic-metadata">

**Author:** [@Myxsup](https://forums.unrealengine.com/u/Myxsup)\
**Replies:** 2\
**Last updated:** [May 22, 2022, 1:09pm UTC](https://forums.unrealengine.com/t/project-crashes-upon-opening-map-garbage-collection-error/486435 "2022-05-22T13:09:33Z")

</div>

Hi there, I’ve been duplicating and saving a map as I iterate on it. I was able to save the most recent iteration but upon trying to open the map, UE4 crashes. The crash log states the following error message: “Error: …

---

## [World /Temp/Untitled\_1.Untitled not cleaned up by garbage collection!](https://forums.unrealengine.com/t/world-temp-untitled-1-untitled-not-cleaned-up-by-garbage-collection/422092)

<div class="topic-metadata">

**Author:** [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Replies:** 1\
**Last updated:** [December 2, 2021, 7:50am UTC](https://forums.unrealengine.com/t/world-temp-untitled-1-untitled-not-cleaned-up-by-garbage-collection/422092 "2021-12-02T07:50:18Z")

</div>

Context I’ve been working within the shooter game since 4.9 but most of the source has been maintained by me since 4.12, meaning I’ve been updating code to get the game to work one version after the other until now. Is…

---

## [How to amortize the performance cost of garbage collection and level streaming?](https://forums.unrealengine.com/t/how-to-amortize-the-performance-cost-of-garbage-collection-and-level-streaming/330490)

<div class="topic-metadata">

**Author:** [@KGist](https://forums.unrealengine.com/u/KGist)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 11:17am UTC](https://forums.unrealengine.com/t/how-to-amortize-the-performance-cost-of-garbage-collection-and-level-streaming/330490 "2021-06-23T11:17:48Z")

</div>

Are there any recommended methods for amortizing the costs of garbage collection and visibility changes? Can we control the number of actors per frame that are destroyed or have visibility changes applied? Details: We…

---

## [Error Garbage Collection Fatal Error](https://forums.unrealengine.com/t/error-garbage-collection-fatal-error/485170)

<div class="topic-metadata">

**Author:** [@joergselters](https://forums.unrealengine.com/u/joergselters)\
**Replies:** 2\
**Last updated:** [June 21, 2021, 4:12pm UTC](https://forums.unrealengine.com/t/error-garbage-collection-fatal-error/485170 "2021-06-21T16:12:12Z")

</div>

Hi, I have a Fatal Error on Garbage Collector. What can this trigger?

---

## [Assertion Failed !IsGarbageCollecting()](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686)

<div class="topic-metadata">

**Author:** [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 4:57pm UTC](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686 "2021-05-21T16:57:34Z")

</div>

I have a plugin that tries to create UObjects after a database request, but occasionally it crashes because its trying to make UResultRow (a UObject) while its garbage collecting? I’ve break pointed it and VS says I’m in…

---

## [Assertion on IOS (occurs intermittently)](https://forums.unrealengine.com/t/assertion-on-ios-occurs-intermittently/401066)

<div class="topic-metadata">

**Author:** [@iktomi](https://forums.unrealengine.com/u/iktomi)\
**Replies:** 4\
**Last updated:** [May 3, 2021, 12:05am UTC](https://forums.unrealengine.com/t/assertion-on-ios-occurs-intermittently/401066 "2021-05-03T00:05:23Z")

</div>

Hi Matthew, Would be nice if the project settings would actually override this tbh.

---

## [Tickable object deleted check problem](https://forums.unrealengine.com/t/tickable-object-deleted-check-problem/482680)

<div class="topic-metadata">

**Author:** [@yoshi-komori](https://forums.unrealengine.com/u/yoshi-komori)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 3:32am UTC](https://forums.unrealengine.com/t/tickable-object-deleted-check-problem/482680 "2021-04-30T03:32:07Z")

</div>

In “FTickableGameObject::TickObjects”, it checks “If the new tickable object has already been deleted.” The check is done by comparing the memory address of the object. The problem is, if an object is destroyed and ad…

---

## [Garbage collection related error on Android](https://forums.unrealengine.com/t/garbage-collection-related-error-on-android/475973)

<div class="topic-metadata">

**Author:** [@aethaedd](https://forums.unrealengine.com/u/aethaedd)\
**Replies:** 1\
**Last updated:** [December 21, 2020, 5:01am UTC](https://forums.unrealengine.com/t/garbage-collection-related-error-on-android/475973 "2020-12-21T05:01:53Z")

</div>

Packaging for Oculus Quest, testing a field builder where the user can add bunkers and re-arrange them then save the field. When its saved I iterate through all the bunkers and store an array of transforms and bunker id’…

---

## [Garbage Collection and widgets](https://forums.unrealengine.com/t/garbage-collection-and-widgets/475340)

<div class="topic-metadata">

**Author:** [@JIMMYMANGO69](https://forums.unrealengine.com/u/JIMMYMANGO69)\
**Replies:** 3\
**Last updated:** [December 3, 2020, 8:44pm UTC](https://forums.unrealengine.com/t/garbage-collection-and-widgets/475340 "2020-12-03T20:44:10Z")

</div>

If I make an inventory menu with a nested grid of 16 slots and those slots are an instanced “slotwidget” in say a 4 by 4 grid I get 16 instances of that slot widget. when I close the menu I remove the inventory menu from…

---

## [STEAM\_CALLBACK\_MANUAL being deleted by Garbage Collection](https://forums.unrealengine.com/t/steam_callback_manual-being-deleted-by-garbage-collection/475272)

<div class="topic-metadata">

**Author:** [@Joe\_Hogan23](https://forums.unrealengine.com/u/Joe_Hogan23)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/steam_callback_manual-being-deleted-by-garbage-collection/475272 "2020-12-02T14:35:57Z")

</div>

I’m implementing some Steam API callbacks, manually because the automated STEAM\_CALLBACK is triggering twice. The STEAM\_CALLBACK\_MANUAL is only calling once when registering a function, but it is removed after about 30 s…

---

## [Crash related to Garbage Collection occurring](https://forums.unrealengine.com/t/crash-related-to-garbage-collection-occurring/442920)

<div class="topic-metadata">

**Author:** [@anon11580166](https://forums.unrealengine.com/u/anon11580166)\
**Replies:** 7\
**Last updated:** [November 10, 2020, 11:11pm UTC](https://forums.unrealengine.com/t/crash-related-to-garbage-collection-occurring/442920 "2020-11-10T23:11:24Z")

</div>

So my team has this problem with a crash that occurs periodically on all platforms, which seems to reference garbage collection, but we’re unsure how to correct it. The assert shown below is thrown while the program is c…

---

## [How can the garbage collection in the blueprint work?](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402)

<div class="topic-metadata">

**Author:** [@CharlotteBYth3](https://forums.unrealengine.com/u/CharlotteBYth3)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 7:51am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402 "2020-07-24T07:51:26Z")

</div>

I am considering how to optimize engine performance. I don’t know a programming language, and I have only been familiar with the blueprint. Recently, I saw the node “garbage collection” in the blueprint, and I searched f…

---

## [UTexture2d deletion](https://forums.unrealengine.com/t/utexture2d-deletion/411798)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_60c9dc7d](https://forums.unrealengine.com/u/anonymous_user_60c9dc7d)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 10:38am UTC](https://forums.unrealengine.com/t/utexture2d-deletion/411798 "2020-06-23T10:38:44Z")

</div>

I create my texture using the following line LoadedT2D = UTexture2D::CreateTransient(ImageWrapper-\>GetWidth(), ImageWrapper-\>GetHeight()); And it loads correctly. LoadedT2D is stored in a UProperty(). So as long as the…

---

## [Signal 11 on android after some time](https://forums.unrealengine.com/t/signal-11-on-android-after-some-time/457631)

<div class="topic-metadata">

**Author:** [@Fatorice](https://forums.unrealengine.com/u/Fatorice)\
**Replies:** 0\
**Last updated:** [October 27, 2019, 4:16pm UTC](https://forums.unrealengine.com/t/signal-11-on-android-after-some-time/457631 "2019-10-27T16:16:30Z")

</div>

Hello! After the upgrade vom 4.20 to 4.22 the android release build crashes after some time. I use the VaREST and the PlayFab Plugin. Sometimes it works, when I disable one of both (but this can be luck anyways). I got…

---

## [Garbage Collection causes hitching/stuttering 30 to 60 seconds after play?](https://forums.unrealengine.com/t/garbage-collection-causes-hitching-stuttering-30-to-60-seconds-after-play/449000)

<div class="topic-metadata">

**Author:** [@KonrB](https://forums.unrealengine.com/u/KonrB)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 4:14am UTC](https://forums.unrealengine.com/t/garbage-collection-causes-hitching-stuttering-30-to-60-seconds-after-play/449000 "2019-09-08T04:14:09Z")

</div>

I have a forest that contains a modest and I mean really modest amount of foliage. As a matter of fact, I have no grass, ferns, sticks, stones or ground materials applied to my landscape–just trees. As far as I know, my …

---

## [Upgraded to 4.22, garbage collection crasch at levelstream](https://forums.unrealengine.com/t/upgraded-to-4-22-garbage-collection-crasch-at-levelstream/454179)

<div class="topic-metadata">

**Author:** [@carpet200](https://forums.unrealengine.com/u/carpet200)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 10:57am UTC](https://forums.unrealengine.com/t/upgraded-to-4-22-garbage-collection-crasch-at-levelstream/454179 "2019-08-21T10:57:04Z")

</div>

After upgrading from 4.19 to 4.22 i get this crasch sometimes when i unload and then load levels. I have not tested in a packaged build yet so it may be editor only but i don’t know. The crasch has something to do with …

---

## [When using the console command Obj Refs Name=Example I get the response Example is not currently reachable. How do I get this to work?](https://forums.unrealengine.com/t/when-using-the-console-command-obj-refs-name-example-i-get-the-response-example-is-not-currently-reachable-how-do-i-get-this-to-work/451605)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b04a730a](https://forums.unrealengine.com/u/anonymous_user_b04a730a)\
**Replies:** 0\
**Last updated:** [July 2, 2019, 7:19pm UTC](https://forums.unrealengine.com/t/when-using-the-console-command-obj-refs-name-example-i-get-the-response-example-is-not-currently-reachable-how-do-i-get-this-to-work/451605 "2019-07-02T19:19:00Z")

</div>

When using the console command Obj Refs Name=Example I get the response Example is not currently reachable. How do I get this to work? I want to know which objects are holding onto some UAnimSequence objects which I woul…

---

## [Destroy widget/garbage collection](https://forums.unrealengine.com/t/destroy-widget-garbage-collection/449817)

<div class="topic-metadata">

**Author:** [@Claudiu.Schwartz](https://forums.unrealengine.com/u/Claudiu.Schwartz)\
**Replies:** 4\
**Last updated:** [May 30, 2019, 8:34pm UTC](https://forums.unrealengine.com/t/destroy-widget-garbage-collection/449817 "2019-05-30T20:34:58Z")

</div>

I know this question was asked too many times to count, but the “latest” discussions about the topic I’ve found are about two years old, with many engine updates in between so, my questions are: How to destroy widgets …

---

## [Packaging error with UObjectGlobals \[Line : 281\]](https://forums.unrealengine.com/t/packaging-error-with-uobjectglobals-line-281/445127)

<div class="topic-metadata">

**Author:** [@aroiestudio](https://forums.unrealengine.com/u/aroiestudio)\
**Replies:** 0\
**Last updated:** [March 12, 2019, 12:20pm UTC](https://forums.unrealengine.com/t/packaging-error-with-uobjectglobals-line-281/445127 "2019-03-12T12:20:29Z")

</div>

Hi, I try packaging the project, but It still same error like this. UATHelper: Packaging (Windows (64-bit)): LogCook: Display: Cooked packages 1300 Packages Remain 3581 Total 4881 UATHelper: Packaging (Windows (64-b…

[Next page](https://forums.unrealengine.com/tag/garbage-collection/6051.md?match_all_tags=true&page=1&tags%5B%5D=garbage-collection)
