# CitySample Chaos crash

**URL:** <https://forums.unrealengine.com/t/citysample-chaos-crash/567804>\
**Category:** Showcase\
**Tags:** unreal-engine, crash, UE5-0, Showcase\
**Created:** [May 27, 2022, 10:52am UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804 "2022-05-27T10:52:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eaglelordhua1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eaglelordhua1](https://forums.unrealengine.com/u/eaglelordhua1)\
**Post date:** [May 27, 2022, 10:52am UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/1 "2022-05-27T10:52:57Z")

</div>

#UE5

I’am trying the CitySample Showcase. It’s amazing! Except when I was driving the car and hit a few other vehicles, the game crash down. Below is the message shown:

Assertion failed: NumItems() \< MaxItems() [File: build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Evolution\SolverBodyContainer.cpp] [Line: 27]

Is there anybody who can help me figure out what the problem is?

Many thx!

---

<div class="post-metadata">

**Author:** ![TheNyx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thenyx/32/466541_2.png) [@TheNyx](https://forums.unrealengine.com/u/TheNyx)\
**Post date:** [July 2, 2022, 8:33pm UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/2 "2022-07-02T20:33:01Z")

</div>

Same, did you figure it out?

---

<div class="post-metadata">

**Author:** ![skywalkermibnasa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skywalkermibnasa](https://forums.unrealengine.com/u/skywalkermibnasa)\
**Post date:** [July 4, 2022, 7:15am UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/3 "2022-07-04T07:15:57Z")

</div>

Hi man , I got the exact same issue like your’s,have you solved it out?

---

<div class="post-metadata">

**Author:** ![Naios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naios](https://forums.unrealengine.com/u/Naios)\
**Post date:** [July 10, 2022, 11:49am UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/4 "2022-07-10T11:49:42Z")

</div>

I’m encountering the same issue (not in the city demo though). I think it’s somehow related to if the set of Dynamic/Kitematic particles changes across physic simulations.

---

<div class="post-metadata">

**Author:** ![jotar2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jotar2012](https://forums.unrealengine.com/u/jotar2012)\
**Post date:** [August 31, 2022, 7:10pm UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/5 "2022-08-31T19:10:36Z")

</div>

i have same problem in city sample demo

its happen when i hit other spawned cars from parket spawn actors , but when i spawn it manually do not happen

---

<div class="post-metadata">

**Author:** ![woolworthdude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@woolworthdude](https://forums.unrealengine.com/u/woolworthdude)\
**Post date:** [September 27, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/6 "2022-09-27T15:11:07Z")

</div>

same error, this happens every time you hit some car or NPC

LoginId:d4236bcc4a85667a69453584c4707810  
EpicAccountId:c433c398429445399fdc1f24308adeee

Assertion failed: NumItems() \< MaxItems() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Evolution\SolverBodyContainer.cpp] [Line: 27]

UnrealEditor\_Chaos!Chaos::FSolverBodyContainer::AddParticle() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Evolution\SolverBodyContainer.cpp:27]  
UnrealEditor\_Chaos!Chaos::FSolverBodyContainer::FindOrAdd() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Evolution\SolverBodyContainer.cpp:43]  
UnrealEditor\_Chaos!Chaos::FPBDJointConstraints::PreGatherInput() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDJointConstraints.cpp:890]  
UnrealEditor\_Chaos!Chaos::TPBDConstraintIslandRuleChaos::FPBDJointConstraints::GatherSolverInput() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDConstraintRule.cpp:187]  
UnrealEditor\_Chaos!Chaos::FPBDRigidsEvolutionGBF::GatherSolverInput() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDRigidsEvolutionGBF.cpp:664]  
UnrealEditor\_Chaos!\<lambda\_27b7b0d73b2a1aca3354d63768153bab\>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDRigidsEvolutionGBF.cpp:468]  
UnrealEditor\_Chaos!\<lambda\_041993bad8fe4a9b9c7e24fd27132542\>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Framework\Parallel.cpp:76]  
UnrealEditor\_Chaos!`ParallelForImpl::NewParallelForInternal<TFunctionRef<void __cdecl(int)>,<lambda_06f0d5d1c5fc9bccb0e7d1fd1e70ca42>,std::nullptr_t>'::`2’::FParallelExecutor::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\ParallelFor.h:566]  
UnrealEditor\_Chaos!LowLevelTasks::TTaskDelegate\<void \_\_cdecl(bool),48\>::TTaskDelegateImpl\<\<lambda\_1bf4a01354d569cb2631b3617c09e35e\>,0\>::CallAndMove() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\TaskDelegate.h:171]  
UnrealEditor\_Core!LowLevelTasks::FTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:426]  
UnrealEditor\_Core!LowLevelTasks::FScheduler::TryExecuteTaskFrom\<&LowLevelTasks::TLocalQueueRegistry\<1024\>::TLocalQueue::DequeueGlobal,0\>() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:280]  
UnrealEditor\_Core!LowLevelTasks::FScheduler::WorkerMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:320]  
UnrealEditor\_Core!UE::Core::Private::Function::TFunctionRefCaller\<\<lambda\_776551d1e343b6cb7eaf0e5521c77c81\>,void \_\_cdecl(void)\>::Call() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:549]  
UnrealEditor\_Core!FThreadImpl::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\Thread.cpp:69]  
UnrealEditor\_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]

---

<div class="post-metadata">

**Author:** ![Anonymous\_fe63daefd8ca5888fcf7dced40bf6061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_fe63daefd8ca5888fcf7dced40bf6061](https://forums.unrealengine.com/u/Anonymous_fe63daefd8ca5888fcf7dced40bf6061)\
**Post date:** [November 9, 2022, 5:10am UTC](https://forums.unrealengine.com/t/citysample-chaos-crash/567804/7 "2022-11-09T05:10:20Z")

</div>

I also encountered the same problem.
