dgCollisionConvexPolygon::BeamClipping crash

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

dgCollisionConvexPolygon::BeamClipping crash

Postby arkeon » Fri May 29, 2015 4:52 pm

Hello,

I just ran into a crash in dgCollisionConvexPolygon::BeamClipping
at line 206

the collision object is a subdivised plane 4x4 set as a collision tree

it ran into an indexCount = 6 pointing to an uninitialized pointer into points[].

Code: Select all
} else {
            if (test1 > dgFloat32 (0.0f)) {
               newFirst = ptr->m_next;

               const dgVector& p0 = points[ptr->m_incidentVertex];
               const dgVector& p1 = points[ptr->m_next->m_incidentVertex];
               dgVector dp (p1 - p0);
               points[indexCount] = p0 - dp.Scale3 (test0  / (dp % plane));
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: dgCollisionConvexPolygon::BeamClipping crash

Postby Julio Jerez » Fri May 29, 2015 5:00 pm

I just saw this morning. I have it fixed I will check it in over the weekend.
I have to do with broad phase optimization that I am adding to 3.13
I am expecting 3.13 to about 50% faster with these changes.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dgCollisionConvexPolygon::BeamClipping crash

Postby arkeon » Fri May 29, 2015 5:05 pm

Ok great ^^
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: dgCollisionConvexPolygon::BeamClipping crash

Postby Julio Jerez » Sat May 30, 2015 7:57 pm

the bug is now fixed
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dgCollisionConvexPolygon::BeamClipping crash

Postby arkeon » Sat May 30, 2015 7:57 pm

Cool thanks.
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 5 guests