NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash on physx::shdfnd::sort

aki577 opened this issue · comments

Hi all!

Our project is currently using the latest PhysX 4.1.3 and met a weird crash on physx::shdfnd::sort in PsSort.h file.
Following code is the call stack.

PhysX_64.dll!physx::shdfnd::sort<physx::PxsContactPatch * __ptr64,physx::SortBoundsPredicateManifold,physx::shdfnd::ReflectionAllocator<physx::PxsContactPatch * __ptr64> >
PhysX_64.dll!physx::Dy::ContactReduction<6>::reduceContacts()
PhysX_64.dll!physx::Dy::PxsSolverConstraintPostProcessTask::mergeContacts
PhysX_64.dll!physx::Dy::PxsSolverConstraintPostProcessTask::runInternal()
PhysX_64.dll!physx::Cm::Task::run()

I have done some searches and it seems that Unity has already fixed that bug, but they didn't give any hints about that. https://issuetracker.unity3d.com/issues/crash-in-physx-shdfnd-sort-physx-pxscontactpatch-dot-dot-dot-when-gameobject-collides-with-a-terrain-created-by-script

Does anyone know about this crash and enlights me if possible?

Cheers.

Sorry, I do not know - did you try and ask Unity? And any chance you can try to repro with PhysX 5?

Thank you for your reply preist.

I found PhysX 5 has the same PxSort code in PxSort.h file as PhysX 4.1.3, as well as the reduceContacts function in DyDynamics.cpp. I am wondering the crush still happens if we repro with PhysX 5...

I will try to contact with Unity or UE in their forum.

Hi aki,

Please let me know if you do crash with PhysX 5; and if you can provide a repro, best in an adapted snippet, we can help looking into it further.

Thank you,
Philipp