# Critical error: Serial size mismatch

**URL:** <https://forums.unrealengine.com/t/critical-error-serial-size-mismatch/242026>\
**Category:** Audio\
**Tags:** unreal-engine, UE5-0\
**Created:** [July 22, 2021, 5:10pm UTC](https://forums.unrealengine.com/t/critical-error-serial-size-mismatch/242026 "2021-07-22T17:10:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [August 4, 2021, 12:48pm UTC](https://forums.unrealengine.com/t/critical-error-serial-size-mismatch/242026/5 "2021-08-04T12:48:06Z")

</div>

Hi @Kaspi ,  
After examining the code for many days I may have come up with a fix. It involves patching the source and rebuilding the UE5 EA.  
I have noticed in the supplied dump that many other files have been corrupted on the move, but the one in your message has seeked too far hence the report.  
I have a patch that may work.

Open the UE5 EA source build and enter “AsyncLoading.cpp” in the Solution Explorer  
When the code opens type Control + G, in the Go To Line box type 7961 and enter  
Edit the code so as seen below adding the “+1”

> checkf(CurrentPos + Count \<= _ **1 +** _ TotalSizeOrMaxInt64IfNotReady(), TEXT(“Seeked past end of file %s (%lld / %lld)”), \*PackagePath.GetDebugName(), CurrentPos + Count, TotalSize());
> 
> ![Screenshot (60)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/f/3f7f41c2b7633d22605c6c8ce8035b0729e081ce.png)

I have put this patch on my UE5EA Vs2022 archive as described in  
[Visual Studio 2022 Preview is 64 bit and compiles and runs UE 5.0 EA approximately 20% FASTER - Development Discussion / Unreal Engine 5 Early Access - Unreal Engine Forums](https://forums.unrealengine.com/t/visual-studio-2022-preview-is-64-bit-and-compiles-and-runs-ue-5-0-ea-approximately-20-faster/237164/12)  
If you need to used it, but simply changing the source file would be an easier fix and keep you close to the original.  
It it works I will try and enter a bug report.

---

_[View the full topic](https://forums.unrealengine.com/t/critical-error-serial-size-mismatch/242026)._
