# \[UE 5.3.2\] Assertion failed: Index\>=0 && Index\<NumBits when stopping the game in editor 

**URL:** <https://forums.unrealengine.com/t/ue-5-3-2-assertion-failed-index-0-index-numbits-when-stopping-the-game-in-editor/2546053>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, crash, bug-report, editor, question\
**Created:** [June 7, 2025, 10:52pm UTC](https://forums.unrealengine.com/t/ue-5-3-2-assertion-failed-index-0-index-numbits-when-stopping-the-game-in-editor/2546053 "2025-06-07T22:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IAmSympathy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iamsympathy/32/1072426_2.png) [@IAmSympathy](https://forums.unrealengine.com/u/IAmSympathy)\
**Post date:** [June 7, 2025, 10:52pm UTC](https://forums.unrealengine.com/t/ue-5-3-2-assertion-failed-index-0-index-numbits-when-stopping-the-game-in-editor/2546053/1 "2025-06-07T22:52:45Z")

</div>

Hi, I’m new to Unreal and currently following an online course.  
Everything went great for a couple of months until this crash started showing up . It occurs about 30% of the time when pressing Stop during Play in Editor. I’ve now had this issue for months and I couldn’t find anything about it on the internet and that crash corrupted my project twice.

Here’s the crash report

```auto
Assertion failed: Index>=0 && Index<NumBits [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\BitArray.h] [Line: 1418]

UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
VCRUNTIME140
ntdll
ntdll
ntdll
UnrealEditor_Paper2D
UnrealEditor_Engine
UnrealEditor_Renderer
UnrealEditor_Engine
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

```

And here’s the full crash log if it can help  
[RoadToTemehani.log](https://forums.unrealengine.com/uploads/short-url/edvwTUu9qEEyiidfDeD0MK0va9B.log) (197.2 KB)

Any help would be appreciated.  
Thanks in advance.

-UPDATE-  
I found out that I can reproduce this crash 100% of the time if I stop the Play in Editor while a Timeline is running, like this one.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/5/de5ca55aef4b738f2d1e391afc21997232748392.jpeg)

---

<div class="post-metadata">

**Author:** ![IAmSympathy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iamsympathy/32/1072426_2.png) [@IAmSympathy](https://forums.unrealengine.com/u/IAmSympathy)\
**Post date:** [June 8, 2025, 12:37am UTC](https://forums.unrealengine.com/t/ue-5-3-2-assertion-failed-index-0-index-numbits-when-stopping-the-game-in-editor/2546053/3 "2025-06-08T00:37:16Z")

</div>

Solution found

> [@Engine crashes when stop simulating while a dynamic material instance is being set to a sprite component](https://forums.unrealengine.com/t/engine-crashes-when-stop-simulating-while-a-dynamic-material-instance-is-being-set-to-a-sprite-component/1399441/12):
>
> For those who don’t want to have to touch anything in C++, the solution is quite quick and practical. Include a hotkey in the project (it can be ESC) and make a call to the QUIT GAME event. It works perfectly and doesn’t crash. It’s just as fast as stopping the simulation, at most it takes a few milliseconds longer.
