# Assertion failed: Tag.Size == Loaded

**URL:** <https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 10, 2022, 4:41pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880 "2022-05-10T16:41:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vagabond00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vagabond00](https://forums.unrealengine.com/u/vagabond00)\
**Post date:** [May 10, 2022, 4:41pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/1 "2022-05-10T16:41:25Z")

</div>

Hi There, I had a variable of type Array of Transforms and tried to update it to an Array of Actors. Unreal opened it little window of links to show me where things had been updated. I fixed a couple of them then compiled out of habit and it hard crashed the editor. After that, I have been unable to access either the map or the blueprints involved.

The crash gives a reporting page with the error: Assertion failed: Tag.Size == Loaded [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp]

I found a similar error as a _fixed_ bug Here: [https://issues.unrealengine.com/issue/UE-94970](https://issues.unrealengine.com/issue/UE-94970) that referenced 4.26 (the version I was working in) so I tried updating to 4.27 (that was a huge headache as well and had a bunch of weird permissions bugs)  
(here is the link to the forum post if you are interested [link](https://forums.unrealengine.com/t/couldnt-copy-project-check-you-have-sufficient-disk-space-and-write-access-to-the-project-folder/138897/4)

After loading up .27 with the copy of the project, I had the same original error /crash (Tag.Size == Loaded ). After that happened I can no longer open up .27 at all and am getting this error:

# LS-0013: Game is unable to launch

People have accepted answers on the forums to delete all my blueprints that are relevant and start again, I don’t really consider that a solution however. Here are all the other forum links (none of which are resolved)  
[link 1](https://forums.unrealengine.com/t/critical-error-tag-size-loaded-prevents-cooking-and-builds/262282)  
[link2](https://forums.unrealengine.com/t/ue4-crashes-on-project-startup/266443)  
[link 3](https://forums.unrealengine.com/t/error-nedd-your-help-to-resolve/226938)  
[link4](https://forums.unrealengine.com/t/editor-crash-in-change-of-using-variable-type-in-blueprint/466200/3)

Hoping someone from Unreal can chime in as deleting my whole project and starting over is not really a _solution_.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![LarryTheLadd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LarryTheLadd](https://forums.unrealengine.com/u/LarryTheLadd)\
**Post date:** [June 22, 2022, 10:32am UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/2 "2022-06-22T10:32:23Z")

</div>

Hope this isnt too late but I had this same issue today. It started when I tried to use a data asset for something and it crashed and reloaded. Then i tried the same method again thinking it was just one of unreals random crashes and then it basically broke my project. Got the exact same error code

I deleted the files in /Engine/DerivedDataCache and most importantly replaced the broken files with auto saves and deleted the corrupted files.

Its not an exact fix and i was gonna try other things such as rebuilding the project from visual studio but its better than deleting a years worth of work 😑

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [June 22, 2022, 4:24pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/3 "2022-06-22T16:24:25Z")

</div>

Personally I would attempt recovery via engine modifications.  
Download and build engine from source.

The error is thrown by Class.cpp line 1499  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/e/afe2b6972d62c2fa6a5cd229fc34c82cf4534a26.png)

This happens when deserializing properties from assets.  
Start by logging as many info as you can when it crashes :

```cpp
else
{
    if (Tag.Size != Loaded)
    {
        UE_LOG(LogTemp, Log, TEXT("Class: %s"), *GetName());
        UE_LOG(LogTemp, Log, TEXT("Prop: %s"), *Property->GetName());
        UE_LOG(LogTemp, Log, TEXT("PropType: %s"), *Property->GetCPPType());
        UE_LOG(LogTemp, Log, TEXT("Tag.Type: %s"), *Tag.Type);
        UE_LOG(LogTemp, Log, TEXT("Tag.Size: %i"), Tag.Size);
        UE_LOG(LogTemp, Log, TEXT("Tag.StructName: %s"), *Tag->StructName);
        UE_LOG(LogTemp, Log, TEXT("Loaded = %i"), Loaded);
    }
    check(Tag.Size == Loaded);
}

```

There is most likely a mismatch between the type of the property and what is serialized, eg. type is UObject\* (size 8) but serialized is still a FTransform (size 40 I think), or something along those lines…

It’s hard to predict what the results are going to be.  
The problem might occur on multiple classes/objects, but the mismatch should always be the same since it comes from that conversion you attempted.

Based on what you are seeing then you can start applying corrections on the fly, to allow the deserializing process to continue.

---

<div class="post-metadata">

**Author:** ![vagabond00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vagabond00](https://forums.unrealengine.com/u/vagabond00)\
**Post date:** [July 5, 2022, 10:36pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/4 "2022-07-05T22:36:02Z")

</div>

I appreciate the detailed post. I have already redone all the work but hopefully it can be helpful for someone else!

---

<div class="post-metadata">

**Author:** ![SlayerOfWhales](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slayerofwhales/32/722179_2.png) [@SlayerOfWhales](https://forums.unrealengine.com/u/SlayerOfWhales)\
**Post date:** [July 28, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/5 "2023-07-28T23:53:44Z")

</div>

I cannot get the logs to print anywhere

---

<div class="post-metadata">

**Author:** ![Lancek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lancek](https://forums.unrealengine.com/u/Lancek)\
**Post date:** [March 22, 2025, 12:41pm UTC](https://forums.unrealengine.com/t/assertion-failed-tag-size-loaded/553880/6 "2025-03-22T12:41:44Z")

</div>

Hey Chatouille.  
The issues that was described in this thread happened to me very recently (still working on 4.27).  
I’m in the process of repeating the steps you have proposed (building source code and debugging the issue in VS), but I am not a programmer. Could you please elaborate a bit more on the process of logging deserialization errors and the process of “applying corrections on the fly” as you’ve put it.  
I would really appriciate the help. I tried everything to recover the corrupt file, to no avail - this method is my last resort.

Thanks in advance!
