Assert in debug mode after migrating to 2013.1

Assert in debug mode after migrating to 2013.1

Hi, I have just migrated to Havok 2013.1, and got an assert:

Y:\NightlyJobs\07-18-Thu-01\Source\Common/Base/Types/Geometry/Aabb/hkAabbUtil.inl(350): [0x366CA7B2] Assert: Invalid Radius. Did you make changes to a shape or change its center of mass while the owner was added to the world?
Stack trace is:
DBGHELP: SymSrv load failure: symsrv.dll
DBGHELP: .\avgdx.pdb - file not found
DBGHELP: .\exe\avgdx.pdb - file not found
DBGHELP: .\symbols\exe\avgdx.pdb - file not found
DBGHELP: avgdx - private symbols & lines
C:\dev\avgdx\Debug_x86\avgdx.pdb
y:\nightlyjobs\07-18-thu-01\source\common\base\system\error\hkdefaulterror.cpp(158):'hkDefaultError::message'
y:\nightlyjobs\07-18-thu-01\source\common\base\system\error\hkerror.cpp(56):'hkError::messageAssert'
y:\nightlyjobs\07-18-thu-01\source\common\base\types\geometry\aabb\hkaabbutil.inl(350):'hkAabbUtil::sweepAabb'
y:\nightlyjobs\07-18-thu-01\source\physics2012\dynamics\entity\util\hkpentityaabbutil.cpp(332):'hkpEntityAabbUtil::entityBatchRecalcAabb'
y:\nightlyjobs\07-18-thu-01\source\physics2012\dynamics\world\util\hkpworldoperationutil.cpp(162):'hkpWorldOperationUtil::addEntityBP'
y:\nightlyjobs\07-18-thu-01\source\physics2012\dynamics\world\hkpworld.cpp(884):'hkpWorld::addEntity'
c:\dev\avgdx\source\physics.cpp(162):'Physics::CreateHeightField'
c:\dev\avgdx\source\scene.cpp(108):'Scene::CreateTerrainPlane'
c:\dev\avgdx\source\scene.cpp(201):'Scene::Initialize'
c:\dev\avgdx\source\system.cpp(146):'System::Initialize'
c:\dev\avgdx\source\main.cpp(19):'WinMain'
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c(275):'__tmainCRTStartup'
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c(189):'WinMainCRTStartup'

When I run in release mode - everything fine, in debug mode - no other warnings, just this assert, the code is:

// Create heightmap
MySampledHeightFieldShape* heightFieldShape = new MySampledHeightFieldShape(ci, NULL);
hkpRigidBodyCinfo rci;
rci.m_motionType = hkpMotion::MOTION_FIXED;
rci.m_position.setMul4( -0.5f, heightFieldShape->m_extents ); // center the heightfield
rci.m_position.setComponent(1, 0);
rci.m_position.setAdd(rci.m_position, hkVector4(pos.x, pos.y, pos.z));
rci.m_shape = heightFieldShape;
rci.m_friction = friction;
hkpRigidBody* body = new hkpRigidBody( rci );
m_world->addEntity(body);
body->removeReference();
heightFieldShape->removeReference();

Please help.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Just found solution in another topic:

#define HK_PLATFORM_SIM

Leave a Comment

Please sign in to add a comment. Not a member? Join today