# Random CRASH PhysX ComponentHit

**URL:** <https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408>\
**Category:** World Creation\
**Tags:** oncomponenthit, random, physx, unreal-engine, Physics, question\
**Created:** [August 25, 2019, 8:32pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408 "2019-08-25T20:32:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [August 25, 2019, 8:32pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/1 "2019-08-25T20:32:36Z")

</div>

Hi guys,

I have this random crash when moving a physics object that fires the Hit event that I use to play the impact sound. Everything works fine but sometimes it just crashes the engine. Does the same on a packaged version.

The only thing that seems to be causing it in a particular level is the presence of the terrain/landscape and a static mesh on top of it. The Explosive barrel that hits the concrete ground of the static mesh has the terrain below it. I dunno if this has anything to do with it.

Here’s the crash info:

========================================================================================

LoginId:ae04c6114e5e25cad8107eab7ca9811c

EpicAccountId:3a19cb1a89de45ab85138756fbb98a3c

Unhandled exception

PhysX3CommonPROFILE\_x64!physx::Gu::TriangleMesh::getTriangleMaterialIndex() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\physx\_3.4\source\geomutils\src\mesh\gutrianglemesh.h:97]

PhysX3PROFILE\_x64!physx::NpShape::getMaterialFromInternalFaceIndex() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\physx\_3.4\source\physx\src\npshape.cpp:464]

UE4Editor\_Engine!FPhysXSimEventCallback::onContact() [d:\build++ue4\sync\engine\source\runtime\engine\private\physicsengine\physxsupport.cpp:520]

APEXFrameworkPROFILE\_x64!nvidia::apex::ApexSceneUserNotify::onContact() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\apex\_1.4\framework\src\apexsceneusernotify.cpp:235]

PhysX3PROFILE\_x64!physx::Sc::Scene::fireQueuedContactCallbacks() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\physx\_3.4\source\simulationcontroller\src\scscene.cpp:4387]

PhysX3PROFILE\_x64!physx::NpScene::fetchResults() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\physx\_3.4\source\physx\src\npscene.cpp:2325]

APEXFrameworkPROFILE\_x64!nvidia::apex::ApexScene::fetchResults() [d:\build++fortnite\sync\engine\source\thirdparty\physx3\apex\_1.4\framework\src\apexscene.cpp:1377]

UE4Editor\_Engine!FPhysScene\_PhysX::ProcessPhysScene() [d:\build++ue4\sync\engine\source\runtime\engine\private\physicsengine\physscene\_physx.cpp:1235]

UE4Editor\_Engine!TBaseRawMethodDelegateInstance\<0,FPhysScene\_PhysX,void \_\_cdecl(enum ENamedThreads::Type,TRefCountPtr const &)\>::ExecuteIfSafe() [d:\build++ue4\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:518]

UE4Editor\_Engine!TGraphTask::ExecuteTask() [d:\build++ue4\sync\engine\source\runtime\core\public\async\taskgraphinterfaces.h:842]

UE4Editor\_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\build++ue4\sync\engine\source\runtime\core\private\async\taskgraph.cpp:686]

UE4Editor\_Core!FNamedTaskThread::ProcessTasksUntilIdle() [d:\build++ue4\sync\engine\source\runtime\core\private\async\taskgraph.cpp:593]

UE4Editor\_Engine!FTickTaskSequencer::ReleaseTickGroup() [d:\build++ue4\sync\engine\source\runtime\engine\private\ticktaskmanager.cpp:574]

UE4Editor\_Engine!FTickTaskManager::RunTickGroup() [d:\build++ue4\sync\engine\source\runtime\engine\private\ticktaskmanager.cpp:1505]

UE4Editor\_Engine!UWorld::RunTickGroup() [d:\build++ue4\sync\engine\source\runtime\engine\private\leveltick.cpp:789]

UE4Editor\_Engine!UWorld::Tick() [d:\build++ue4\sync\engine\source\runtime\engine\private\leveltick.cpp:1581]

UE4Editor\_UnrealEd!UEditorEngine::Tick() [d:\build++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:1618]

UE4Editor\_UnrealEd!UUnrealEdEngine::Tick() [d:\build++ue4\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:403]

UE4Editor!FEngineLoop::Tick() [d:\build++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3967]

UE4Editor!GuardedMain() [d:\build++ue4\sync\engine\source\runtime\launch\private\launch.cpp:168]

UE4Editor!GuardedMainWrapper() [d:\build++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]

UE4Editor!WinMain() [d:\build++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:275]

UE4Editor!\_\_scrt\_common\_main\_seh() [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe\_common.inl:288]

kernel32

ntdll

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [August 26, 2019, 2:21pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/2 "2019-08-26T14:21:32Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [August 26, 2019, 2:32pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/3 "2019-08-26T14:32:20Z")

</div>

Done! Thank you 🙂

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [September 1, 2019, 10:37am UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/4 "2019-09-01T10:37:04Z")

</div>

UPDATE: Tried in 4.23 (Preview 8), still crashes the same way.

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [September 1, 2019, 1:40pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/5 "2019-09-01T13:40:52Z")

</div>

UPDATE 2: Tried to put a simple Physics object instead of my BP actor, still the same issue. A certain amount of collisions or a certain type of collisions at the same time causes UE4 to freeze and crash… This is some serious issue. Can’t use Physics for this reason. Causes way too many frequent crashes…

If the STAFF needs my UE4 project, let me know. I really wan to solve this.

---

<div class="post-metadata">

**Author:** ![rdtg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rdtg](https://forums.unrealengine.com/u/rdtg)\
**Post date:** [July 13, 2020, 8:36am UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/6 "2020-07-13T08:36:54Z")

</div>

Are you still having this issue in 4.25? I just began experiencing it myself as I started placing physics actors around my levels. One too many physics actors OR one too many physics interactions and I get the exact same crash you posted above.

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [July 13, 2020, 10:05am UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/7 "2020-07-13T10:05:48Z")

</div>

In my case I’ve played with some parameters in the Physics section of the project settings and I screwed up something. I suggest you to create a blank project and export the Physics settings of the new project. Then import them inside your project. This will make sure you’re using the default settings for the Physics parameters. Restart UE and see if it happens again.

I really hope this helps.  
Let me know. 🙂

---

<div class="post-metadata">

**Author:** ![rdtg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rdtg](https://forums.unrealengine.com/u/rdtg)\
**Post date:** [July 13, 2020, 10:14am UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/8 "2020-07-13T10:14:19Z")

</div>

Outstanding! That fixed it for me. Turns out I accidentally enabled 2D Physics which was causing my problem. Thank you very much! 🙂

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [July 13, 2020, 5:56pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/9 "2020-07-13T17:56:18Z")

</div>

I’m glad it worked 😃

---

<div class="post-metadata">

**Author:** ![Elitic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elitic](https://forums.unrealengine.com/u/Elitic)\
**Post date:** [March 9, 2021, 2:18pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/10 "2021-03-09T14:18:08Z")

</div>

I’ve had exact same crashes in UE4.26.1 :

> PhysX3CommonPROFILE\_x64!physx::Gu::TriangleMesh::getTriangleMaterialIndex()  
> [d:\build++fortnite\sync\engine\source\thirdparty\physx3\physx\_3.4\source\geomutils\src\mesh\gutrianglemesh.h:97]

I’ve determined that this exception occurs when “ **Enable Stabilization** ” is ticked in project settings → Engine - Physics → Simulation → “Enable Stabilization”.

![331901-ue4-stabilization.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/4/d041a10567a20d489bfa774744ae637c82857f5f.png)

Make sure to disable/untick it.

---

<div class="post-metadata">

**Author:** ![Alakuloinen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alakuloinen](https://forums.unrealengine.com/u/Alakuloinen)\
**Post date:** [September 25, 2021, 7:31pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/11 "2021-09-25T19:31:47Z")

</div>

I had the same crashes in 4.25, 4.26, maybe earlier, tried to disable this setting too and oops…  
Every time the engine/editor starts this checkbox is checked again!  
How can it even happen?

---

<div class="post-metadata">

**Author:** ![Hairy\_Cabbage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hairy_cabbage/32/474160_2.png) [@Hairy\_Cabbage](https://forums.unrealengine.com/u/Hairy_Cabbage)\
**Post date:** [March 18, 2022, 10:52pm UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/12 "2022-03-18T22:52:28Z")

</div>

I’m sure you have fixed this issue already by now, but if not, you can edit the setting manually in the defaultengine.ini file. I was having a similar issue with changes reverting when i reopen the project in 4.27.

---

<div class="post-metadata">

**Author:** ![Gallonmate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gallonmate](https://forums.unrealengine.com/u/Gallonmate)\
**Post date:** [June 10, 2022, 12:20am UTC](https://forums.unrealengine.com/t/random-crash-physx-componenthit/454408/13 "2022-06-10T00:20:33Z")

</div>

Physx - Enable Stabilization = true, causing crashes has been a bug since 2018 at least. Even so Physx is still better than Chaos.
