Primitive convex cast demo problem

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Primitive convex cast demo problem

Postby Bird » Sat Nov 10, 2018 8:08 am

Hi Julio,

The "Primitive convex cast" demo crashes in Release mode while dragging the sphere off the ramp with the RMB. If you run this demo in Debug mode, an assert fails on line 205 of DgWorldDynamicUpdate.cpp

I'm using the very latest version on github.

-Bird
Bird
 
Posts: 435
Joined: Tue Nov 22, 2011 1:27 am

Re: Primitive convex cast demo problem

Postby Julio Jerez » Sat Nov 10, 2018 12:46 pm

oh another ripple from the last optimizations, is fixed now.

please try again
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Primitive convex cast demo problem

Postby Bird » Sat Nov 10, 2018 8:09 pm

That fixed the assert but the demo still crashes when you drag the sphere onto the convex shapes on the ground.

Crash is in line 3121 of Newton.cpp in NewtonUserMeshCollisionContinuousOverlapTest(). Looks like minAabb is coming in as a nullptr.
Bird
 
Posts: 435
Joined: Tue Nov 22, 2011 1:27 am

Re: Primitive convex cast demo problem

Postby Julio Jerez » Mon Nov 12, 2018 3:37 pm

oh yes it was a data aliment mismatch between NewtonUserMeshCollisionCollideDesc and dgPolygonMeshDesc, I added a member to the base class when I rewrote the broad phase
to use shape closest distance instead of obb test and that offset the other members.

It is fixed now, please sync and try again.
thanks for the bug report.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Primitive convex cast demo problem

Postby Bird » Mon Nov 12, 2018 5:00 pm

Fixed. Thanks!

I found another problem. The "Scaled mesh collision" demo crashes on startup. The crash is on line 1054 of PhysicsUtils.cpp because of a nullptr.
Bird
 
Posts: 435
Joined: Tue Nov 22, 2011 1:27 am

Re: Primitive convex cast demo problem

Postby Julio Jerez » Mon Nov 12, 2018 6:31 pm

fixed,
thanks
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 5 guests

cron