NewtonCollisionIntersectionTest assert with compound shape

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

NewtonCollisionIntersectionTest assert with compound shape

Postby jamesm6162 » Wed Dec 07, 2016 7:33 am

Hi!

I have encountered a crash when doing an IntersectionTest with a compound collision and any other collision, i.e.:
Code: Select all
NewtonCollisionIntersectionTest(world, compoundCollision, callback, userData)


There is a debug assert in dgCollisionCompound.cpp line 2147 that gets hit, because the intersection test sets the contact buffer to NULL intentionally.
jamesm6162
 
Posts: 49
Joined: Wed Aug 12, 2015 8:50 am

Re: NewtonCollisionIntersectionTest assert with compound sha

Postby Julio Jerez » Wed Dec 07, 2016 9:05 am

ha thank you, yes setting the pointer to null is correct, the assert was not doing the proper test.
I added some compound to the kinematic demo, so that It test that function, and seem to work now.

I think it is fixed now,
you said it was a crash bug, please sync again and let me know if still crashes.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonCollisionIntersectionTest assert with compound sha

Postby jamesm6162 » Thu Dec 08, 2016 4:41 am

Hi Julio

Thanks. Sorry I meant assert instead of crash. Crash sounds a bit harsh :)

I should also have looked more thoroughly, as I found a few more lines with that assert in the same file that cause the same issue dgCollisionCompound.cpp:

Line 1772, 1930, 2042, 2253
jamesm6162
 
Posts: 49
Joined: Wed Aug 12, 2015 8:50 am

Re: NewtonCollisionIntersectionTest assert with compound sha

Postby Julio Jerez » Thu Dec 08, 2016 9:38 am

ha yes fixed now.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
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 4 guests

cron