# Assertion failed: Offset \>= 0 && BytesToRead \> 0

**URL:** <https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291>\
**Category:** Platform & Builds\
**Tags:** assertion-failed, unreal-engine, question\
**Created:** [December 28, 2020, 9:29am UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291 "2020-12-28T09:29:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [December 28, 2020, 9:29am UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291/1 "2020-12-28T09:29:15Z")

</div>

Hi!

I’ve a project in UE4.25 which works fine while playing in UE, but after packaging the game crashes at some point. The error-dialog appears, but the game itself is still playable. After a while the game closes.

The log contains this:

```
20.12.22-19.06.35:689][785]LogThreadingWindows: Error: Runnable thread PoolThread 1 crashed.
[2020.12.22-19.06.35:689][785]LogWindows: Error: === Critical error: ===
[2020.12.22-19.06.35:689][785]LogWindows: Error: 
[2020.12.22-19.06.35:689][785]LogWindows: Error: Assertion failed: Offset >= 0 && BytesToRead > 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp] [Line: 144] 
[2020.12.22-19.06.35:689][785]LogWindows: Error: 
[2020.12.22-19.06.35:689][785]LogWindows: Error: 
[2020.12.22-19.06.35:689][785]LogWindows: Error: 
[2020.12.22-19.06.35:689][785]LogWindows: Error: [Callstack] 0x00007ffc89983e49 UnknownFunction []
[2020.12.22-19.06.35:689][785]LogWindows: Error: 
[2020.12.22-19.06.35:689][785]LogWindows: Error: Crash in runnable thread PoolThread 1
[2020.12.22-19.06.35:751][792]LogExit: Executing StaticShutdownAfterError
[2020.12.22-19.06.35:751][792]LogWindows: FPlatformMisc::RequestExit(1)
[2020.12.22-19.06.35:752][792]LogCore: Engine exit requested (reason: Win RequestExit)
[2020.12.22-19.06.35:791][793]Log file closed, 12/22/20 20:06:35

```

I’m working with the default UE4.25 version and Blueprint-only. So I don’t really know why the GenericPlatformFile.cpp [Line: 144] is mentioned.

Before that log-entry there is this line:

```
20.12.22-19.06.34:311][633]LogSerialization: Error: (../../../GBII_UE4/Content/Assets/Sofas/Flexform_Ettore/UE_dcmap_Flexform_Ettore_refl.ubulk) has invalid bulk data size.
[2020.12.22-19.06.34:311][633]LogWindows: Windows GetLastError: Der Vorgang wurde erfolgreich beendet. (0)

```

Could this be the problem while playing the packaged build? That asset never was a problem before.

Am I missing something?

Thanks for help in advance \<3

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [January 7, 2021, 9:19am UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291/2 "2021-01-07T09:19:06Z")

</div>

It was the “has invalid bulk data size.” problem! Don’t exactly know why, but it works for now!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f76cca111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f76cca111](https://forums.unrealengine.com/u/anonymous_user_f76cca111)\
**Post date:** [January 27, 2021, 11:46pm UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291/3 "2021-01-27T23:46:09Z")

</div>

Could you give more details on the issue and how you solved it? Thanks!

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [March 1, 2021, 7:07am UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291/4 "2021-03-01T07:07:57Z")

</div>

Hi! Sorry, didn’t get any notification on your reply. I’ve deleted the texture that was listed in the log file. (In my case the 'UE\_dcmap\_Flexform\_Ettore\_refl). After that I checked if there are any lost references inside the project files (directly in Windows Explorer) Then: Re-Import of the texture file and it worked.

---

<div class="post-metadata">

**Author:** ![scadl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scadl/32/979231_2.png) [@scadl](https://forums.unrealengine.com/u/scadl)\
**Post date:** [December 6, 2021, 8:12am UTC](https://forums.unrealengine.com/t/assertion-failed-offset-0-bytestoread-0/476291/5 "2021-12-06T08:12:19Z")

</div>

Thank you. This solved smae problem in my project, saving several days of findings
