Comments (1)
thank you for reporting this issue and providing a set of patch file for reproducing the problem. I'm sorry it took a while to get back to you but at least here are good news:
I have applied your patches to the newest version of the PhysX SDK (to be updated here on Github soon) and I could not reproduce the issue anymore (*). In the meantime, we have independently discovered and fixed a problem that had most likely the same root cause: In Sc::Scene::islandGen
the task dependencies were incorrectly configured. They should be processNarrowPhaseTouchEventsStage2(&mUpdateDynamics);
instead of processNarrowPhaseTouchEventsStage2(&mPostSolver);
, i.e., the updateDynamics task (which runs the solver) needs to wait for processing the touch events, otherwise the solver writes the post-solve velocities into the bodies while the contact callbacks are still extracting information from the same location. You can apply this hotfix to the code right now and then upgrade to the new release once it's out.
(*) Meaning the printouts from your __CheckContacts
function never appear. Note that your mutex-based detector is not quite correct and kept showing up false positives for me because for multiple islands, there may be multiple concurrent instances of the PxsSolverStartTask which operate on independent data. The tryLock() check kept triggering for me with multiple threads being in PxsSolverStartTask. Instead, I used an improved check where I redefined the mutex variable as a counter volatile int __shapeInterationLock;
. Then in InteractionNewTouchTask replacae the lock/unlock with PxAtomicIncrement(&mNphaseCore->getScene().getSimulationController()->__shapeInterationLock);
and PxAtomicDecrement(&mNphaseCore->getScene().getSimulationController()->__shapeInterationLock);
.
and instead of the tryLock() check in PxsSolverStartTask I only did
if(mContext.mSimulationController->__shapeInterationLock > 0) PxDebugBreak();
from physx.
Related Issues (20)
- Incorrect default for eDRIVE_LIMITS_ARE_FORCES HOT 2
- Generating project files doesn't succeed due to missing dependencies HOT 7
- Packman setup for 5.3.0 broken after 5.3.1 release HOT 8
- A large amount of memory reserved but unnecessary HOT 1
- Position Based Dynamics: Set Particle Position and Velocity HOT 4
- TGS instability with drives HOT 4
- crush in PxContactStreamIterator getFaceIndex0 when GPU enabled and contact with custom geometry or mesh HOT 2
- PxRigidBodyExt::setMassAndUpdateInertia of kinematic rigid actor with triangle mesh causes: Assertion failed: mG.isFinite() HOT 2
- setting driveForceLimit does not work HOT 2
- SDF cause CUDA error , even black screen (driver crash)
- SDF cause CUDA error , even black screen (driver crash?) HOT 4
- Increasing Damping ingnores ForceLimit of PxD6 Joint HOT 9
- PxCustomGeometryExt::BaseConvexCallbacks::raycast doesn't report back which fields are valid HOT 2
- Trigger emulation and character controller HOT 3
- Crash inside SAP Broad phase when there is too much collision pairs HOT 2
- issue with getting a center of mass
- Unable to compile with Clang - __m128 is not a structure or union HOT 3
- TGS solver does not support PxPairFlag::eNOTIFY_THRESHOLD_FORCE_... flags HOT 2
- Blast build for Visual Studio 2022
- I can not link physx 5.3.0 library from vcpkg into my project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physx.