BoxShape Crashes in MultiThread mode

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

BoxShape Crashes in MultiThread mode

Post by sandeep_slash »

Hello,

I'm trying to make use of ThreadSupport in my application.... It is a simple object stack simulation.
It works fine with all objects except for BoxShape Objects. The application crashes in MultiThread mode, if I use BoxShape Objects. However if I disable MultiThread Support, it works fine.

My Callstack looks like this after the crash:

processCollisionTask()
handleCollisionPair()
ProcessConvexConcaveSpuCollision()
suWalkStaklessQuantizedTree()
spuNodeCallback::processNode()
ProcessConvexConcaveSpuCollision()
SpuGjkPairDetector::getClosestPoints()
SpuEpaPenetrationDepthSolver::calcPenDepth()
SpuGjkEpaSolver2::Penetration()
GJK::evaluate()
GJK::getsupport()
MinkowskiDiff::support()

Can someone help me please?

Thanks,
Sandeep.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: BoxShape Crashes in MultiThread mode

Post by Erwin Coumans »

The btGjkEpa2 implementation was ported to SPU, but on other platforms there might be symbol clashes, so the wrong implementation is called.

We will look into fixing this.

Please try this workaround, disabling EPA using

Code: Select all

world->getDispatchInfo().m_useEpa = false;
Hope this helps,
Erwin
sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

Re: BoxShape Crashes in MultiThread mode

Post by sandeep_slash »

It works...

Thanks.
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: BoxShape Crashes in MultiThread mode

Post by John McCutchan »

Hey sandeep_slash,

We believe the bug you reported is fixed. Would you be able to try using the latest Bullet SVN release with EPA turned on?

Thanks,
John