There is a reference pulled out of a vector type class at the top of the function:
PxTaskTableRow & tt = mTaskTable[ taskID ];
Next the task is sumbitted using:
mCpuDispatcher->submitTask( *tt.mTask );
In the case of using APEX cloth new tasks can be added to the task manager causing the vector to be resized. At the end of the PxTaskManager::dispatchTask() routine it uses the reference to set the type which stomps memory that was released by the vector class.
tt.mType = PxTaskType::TT_COMPLETED;
Simple fix is to change the line to:
mTaskTable[taskID].mType = PxTaskType::TT_COMPLETED;
There is a reference pulled out of a vector type class at the top of the function:
PxTaskTableRow & tt = mTaskTable[ taskID ];
Next the task is sumbitted using:
mCpuDispatcher->submitTask( *tt.mTask );
In the case of using APEX cloth new tasks can be added to the task manager causing the vector to be resized. At the end of the PxTaskManager::dispatchTask() routine it uses the reference to set the type which stomps memory that was released by the vector class.
tt.mType = PxTaskType::TT_COMPLETED;
Simple fix is to change the line to: mTaskTable[taskID].mType = PxTaskType::TT_COMPLETED;