# PhysX crash in UE, bug is fixed in nVidia PhysX 3.3.4 SDK

**URL:** <https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465>\
**Category:** World Creation\
**Tags:** physx, unreal-engine, crash, bug-report, CPP, question\
**Created:** [July 28, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465 "2016-07-28T16:58:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d8c388c8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d8c388c8](https://forums.unrealengine.com/u/anonymous_user_d8c388c8)\
**Post date:** [July 28, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/1 "2016-07-28T16:58:52Z")

</div>

Hello,

this post is a bit weird but I think this is the only way to explain clearly what I ran into today.

**Preamble** : UE 4.12 is uses PhysX 3.3.4; however if you download the 4.12.5 release from Epic’s github, some PhysX source files are different from the ones that you can download from nVidia’s github ; you need to be part of GameWorks organization to access it).

**Example** : Unreal Engine’s file “Engine\Source\ThirdParty\PhysX\PhysX-3.3\Source\LowLevel\software\src\PxsConstraintPartition.cpp”, line 731, is different from the one provided by nVidia as part of PhysX 3.3.4 SDK.

**The issue** : I am currently using Unreal Editor 4.12.5, compiled from github sources The UE PhysX sources I am referring to are the ones downloaded by running the setup.bat contained in the zip file.

I managed to trigger a bug that lead to an editor crash by assembling a particular PxScene, but this bug has been fixed in nVidia’s PhysX SDK. You can diff the file that I cited as an example to see the fix. Would it be possible to have this fix ported to UE’s PhysX sources as well?

Let me know if you need a minimal unreal project that crashes the engine, I’ll produce one. I can also produce an example to be run on the nVidia’s SDK that shows that the same PhysX scene does not cause a crash on their version.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 28, 2016, 6:25pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/2 "2016-07-28T18:25:48Z")

</div>

Hello,

I am currently investigating this issue, and will respond back as soon as I have new information.

Thanks!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 28, 2016, 7:05pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/3 "2016-07-28T19:05:18Z")

</div>

If you could provide a project, as well as include the steps we need to follow in the project to cause the crash, that would be fantastic.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d8c388c8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d8c388c8](https://forums.unrealengine.com/u/anonymous_user_d8c388c8)\
**Post date:** [July 28, 2016, 10:12pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/4 "2016-07-28T22:12:11Z")

</div>

Here is a zip file with a minimal project, and those are the steps:

-Extract the folder

-Open the PhysX\_crash\_334.uproject with Unreal Editor 4.12.5, launcher version.

-Let the editor compile the dll

-In the editor, load the TestLevel located in the Content folder

-[Optional] if you have PhysX Visual Debugger installed, you can open it to record the physX scene that will be created. You need to manually give the “Pvd connect” console command before starting the PIE

-Start the Play In Editor

After just a few frames the editor will crash. If PVD was open and connected, the previous frames will be visualizable. The stacktrace points to an out-of-bounds array access inside a function in the PhysX internals. The scene that I’m loading is not very complicated, is simply a plane with five (very small) tetrahedra linked together by PhysX joints. I know it has stability problems due to scale, but if the **Example** file that I mentioned in the bug report is “patched” to be the same as the nVidia PhysX 3.3.4 SDK, the crash does not happen anymore.

Thank you very much for your time!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 29, 2016, 2:05pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/5 "2016-07-29T14:05:48Z")

</div>

Hello,

I’ve reproduced the crash in your project, and entered a bug report, UE-33927. Thank you for your report.

Have a great day

---

<div class="post-metadata">

**Author:** ![Pewbot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pewbot](https://forums.unrealengine.com/u/Pewbot)\
**Post date:** [August 11, 2016, 8:24pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/6 "2016-08-11T20:24:04Z")

</div>

@sean i am trying to find this issue in the tracker but it doesn’t seem to exist.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [August 12, 2016, 12:35pm UTC](https://forums.unrealengine.com/t/physx-crash-in-ue-bug-is-fixed-in-nvidia-physx-3-3-4-sdk/365465/7 "2016-08-12T12:35:01Z")

</div>

It just needed to be pushed to public. Here you go: [Unreal Engine Issues and Bug Tracker (UE-33927)](https://issues.unrealengine.com/issue/UE-33927)

Have a great day!
