# Hit event with complex collision mesh could cause crash

**URL:** <https://forums.unrealengine.com/t/hit-event-with-complex-collision-mesh-could-cause-crash/488842>\
**Category:** World Creation\
**Tags:** physx, unreal-engine, Physics, hit-event, question\
**Created:** [September 15, 2021, 9:53pm UTC](https://forums.unrealengine.com/t/hit-event-with-complex-collision-mesh-could-cause-crash/488842 "2021-09-15T21:53:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanfeiwong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanfeiwong](https://forums.unrealengine.com/u/yanfeiwong)\
**Post date:** [September 15, 2021, 9:53pm UTC](https://forums.unrealengine.com/t/hit-event-with-complex-collision-mesh-could-cause-crash/488842/1 "2021-09-15T21:53:44Z")

</div>

Made a “balloon” with PhysicsThruster when it hits mesh with complex collision a little bit longer game will crash.  
Found out its cause by the hit event, disable it everything works just fine…

\*1.Enable “Using Stabilization” on PC game will crash,disable it every thing goes fine;

\*2.Enable or disable “Using Stabilization” on Android doesnt make any different,game will crash.

\*3.Disable generate hit event on the “balloon” fixs every thing…

Its quit offen (and easy to repeat) and seems unavoidable for my project, really hoping for a fix…

People might have the same issue:

> **[Random CRASH PhysX ComponentHit](https://forums.unrealengine.com/questions/918420/random-crash-physx-componenthit.html)**
>
> 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...

> **[Physics related crashing](https://forums.unrealengine.com/questions/726311/physics-related-crashing.html)**
>
> Hi everyone, There’s a sphere that has been making the game crash in certain locations. It doesn’t make sense to me because it happens on flat surfaces usually. A few details that may be helpful: The sphere is using CCD There are hit events for...

**Crash log on PC:**  
LoginId:2eafe41b4fcaf2619497fabf36a0b671  
EpicAccountId:2b03e715786a4b13a1c5ea5312a56cc0

Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x000002cd72348dc0

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  
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

**Crash log on Android:**  
backtrace:  
F/DEBUG : #00 pc 0cc10956 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (physx::Gu::TriangleMesh::getTriangleMaterialIndex(unsigned int) const+6) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #01 pc 0c9ddd65 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (physx::NpShape::getMaterialFromInternalFaceIndex(unsigned int) const+180) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #02 pc 0b5334b4 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FPhysXSimEventCallback::onContact(physx::PxContactPairHeader const&, physx::PxContactPair const\*, unsigned int)+1556) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #03 pc 0caa4b03 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (physx::Sc::Scene::fireQueuedContactCallbacks(bool)+238) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #04 pc 0c9d0c4f /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (physx::NpScene::fetchResults(bool, unsigned int\*)+202) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #05 pc 0b527770 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FPhysScene\_PhysX::ProcessPhysScene()+1744) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #06 pc 0b5673a0 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (_ZNK30TBaseRawMethodDelegateInstanceILb0E16FPhysScene\_PhysXFvN13ENamedThreads4TypeERK12TRefCountPtrI11FGraphEventEE26FDefaultDelegateUserPolicyJEE13ExecuteIfSafeES2\_S7_+36) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #07 pc 0afdd114 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (\_ZN10TGraphTaskI18FDelegateGraphTaskE11ExecuteTaskER6TArrayIP14FBaseGraphTask22TSizedDefaultAllocatorILi32EEEN13ENamedThreads4TypeE+256) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #08 pc 06ffc9a0 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FNamedTaskThread::ProcessTasksNamedThread(int, bool)+2096) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #09 pc 06ffaf1c /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FNamedTaskThread::ProcessTasksUntilQuit(int)+180) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #10 pc 06ff8010 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (\_ZN24FTaskGraphImplementation22WaitUntilTasksCompleteERK6TArrayI12TRefCountPtrI11FGraphEventE16TInlineAllocatorILj4E22TSizedDefaultAllocatorILi32EEEEN13ENamedThreads4TypeE+1180) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #11 pc 0b9b26e4 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FTickTaskSequencer::ReleaseTickGroup(ETickingGroup, bool)+2672) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #12 pc 0b9acd18 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FTickTaskManager::RunTickGroup(ETickingGroup, bool)+92) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #13 pc 0b0f2d30 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (UWorld::Tick(ELevelTick, float)+14628) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #14 pc 0aee4078 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (UGameEngine::Tick(float, bool)+4568) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #15 pc 05b64cb0 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (FEngineLoop::Tick()+42168) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #16 pc 05b589dc /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (AndroidMain(android\_app\*)+3964) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #17 pc 05b6dc5c /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (android\_main+172) (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #18 pc 05ba10f4 /data/app/com.TYPEY.THELAB-V-TpXC9JhKX5h6Q\_ukQpew==/lib/arm/libUE4.so (BuildId: 8da3caed90843a33f093c0243ff98c3f857cc9b8)  
F/DEBUG : #19 pc 000ab3cd /apex/com.android.runtime/lib/bionic/libc.so (\_\_pthread\_start(void\*)+20) (BuildId: b2ccf3e34327839923551c4d2a5caac1)  
F/DEBUG : #20 pc 00061989 /apex/com.android.runtime/lib/bionic/libc.so (\_\_start\_thread+30) (BuildId: b2ccf3e34327839923551c4d2a5caac1)

---

<div class="post-metadata">

**Author:** ![yanfeiwong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanfeiwong](https://forums.unrealengine.com/u/yanfeiwong)\
**Post date:** [September 16, 2021, 8:46am UTC](https://forums.unrealengine.com/t/hit-event-with-complex-collision-mesh-could-cause-crash/488842/2 "2021-09-16T08:46:35Z")

</div>

Same issue in 4.27.0 manually change bEnableStabilization=False fixed the issue on packing on Android, but I do need to Enable Stabilization hope the bug can be fixed…  
A easy reference or broject below(1.27 MB) to show you whats going on,and how easy to repeat it…

> **[EasyCrash.7z](https://onedrive.live.com/redir?resid=EB8D50574B03508C%219395&authkey=%21AK24qN7vJq--OXM&e=5ffuTu)**
>
> 7Z File

---

<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:14am UTC](https://forums.unrealengine.com/t/hit-event-with-complex-collision-mesh-could-cause-crash/488842/3 "2022-06-10T00:14:45Z")

</div>

Apparently Physx with Enable Stabilization = true, has been crashing since 2018 lol. Still in 2022 with the same crash and no answers. Which is shame because current Chaos is terrible performance for many physics pieces and Physx is overall still much better. Many in another 5 years they will solve Chaos issues by just using Physx and updating it since it’s been open source anyways…
