# Engine crashes when stop simulating while a dynamic material instance is being set to a sprite component

**URL:** <https://forums.unrealengine.com/t/engine-crashes-when-stop-simulating-while-a-dynamic-material-instance-is-being-set-to-a-sprite-component/1399441>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, crash, bug-report, question\
**Created:** [November 18, 2023, 2:28am UTC](https://forums.unrealengine.com/t/engine-crashes-when-stop-simulating-while-a-dynamic-material-instance-is-being-set-to-a-sprite-component/1399441 "2023-11-18T02:28:21Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Kirtasher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kirtasher](https://forums.unrealengine.com/u/Kirtasher)\
**Post date:** [September 21, 2024, 1:19pm UTC](https://forums.unrealengine.com/t/engine-crashes-when-stop-simulating-while-a-dynamic-material-instance-is-being-set-to-a-sprite-component/1399441/12 "2024-09-21T13:19:03Z")

</div>

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.

---

_[View the full topic](https://forums.unrealengine.com/t/engine-crashes-when-stop-simulating-while-a-dynamic-material-instance-is-being-set-to-a-sprite-component/1399441)._
