Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on physx::shdfnd::sort #641

Open
aki577 opened this issue Jun 5, 2023 · 3 comments
Open

Crash on physx::shdfnd::sort #641

aki577 opened this issue Jun 5, 2023 · 3 comments

Comments

@aki577
Copy link

aki577 commented Jun 5, 2023

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.

@preist-nvidia
Copy link
Collaborator

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

@aki577
Copy link
Author

aki577 commented Jun 6, 2023

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.

@preist-nvidia
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants