I've been playing around with the latest github version and keep getting crashing in the app I'm working on. Here's a video:
https://youtu.be/jZymxHB49FA
All the dynamic bodies in the scene are Convex Hull collision shapes. The crash doesn't happen as much when there's lower body counts.
My initiialization code looks like this
- Code: Select all
NewtonWorldSetUserData(world, this);
NewtonSetSolverModel(world, 1);
NewtonInvalidateCache(world);
NewtonSetThreadsCount(world, 1);
NewtonSelectBroadphaseAlgorithm(world, 0);
NewtonSetPerformanceClock(world, dGetTimeInMicrosenconds);
NewtonSetNumberOfSubsteps(world, 2);
And the stack dump is
---First crash stacktrace:
******* STACKDUMP *******
stack dump [0] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworlddynamicupdate.cpp L: 501 dgWorldDynamicUpdate::SortClusters
stack dump [1] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworlddynamicssimplesolver.cpp L: 40 dgWorldDynamicUpdate::ResolveClusterForces
stack dump [2] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworlddynamicupdate.cpp L: 638 dgWorldDynamicUpdate::CalculateClusterReactionForcesKernel
stack dump [3] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworlddynamicupdate.cpp L: 139 dgWorldDynamicUpdate::UpdateDynamics
stack dump [4] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworld.cpp L: 925 dgWorld::StepDynamics
stack dump [5] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgphysics\dgworld.cpp L: 996 dgWorld::RunStep
stack dump [6] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgcore\dgmutexthread.cpp L: 63 dgMutexThread::Execute
stack dump [7] e:\code5\opensource\frameworks\newton-dynamics\sdk\dgcore\dgthread.cpp L: 169 dgThread::dgThreadSystemCallback
stack dump [8] c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread L: 247 std::_LaunchPad<std::unique_ptr<std::tuple<void * __ptr64 (__cdecl*)(void * __ptr64),dgThread * __ptr64>,std::default_delete<std::tuple<void * __ptr64 (__cdecl*)(void * __ptr64),dgThread * __ptr64> > > >::_Run
stack dump [9] c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread L: 210 std::_Pad::_Call_func
stack dump [10] d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp L: 115 thread_start<unsigned int (__cdecl*)(void * __ptr64)>
stack dump [11] BaseThreadInitThunk
stack dump [12] RtlUserThreadStart
I know it's a long shot but do you have any idea what could be causing this.?
-Bird