Simple code crashes Newton in dgBroadPhase.cpp

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Simple code crashes Newton in dgBroadPhase.cpp

Postby pHySiQuE » Tue Aug 06, 2013 5:59 pm

Code will cause a crash on line 327 of dgBroadPhase.cpp. Apparently the boxCount variable equals 0:
Code: Select all
      float mat[16] = {1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0};
      NewtonWorld* newtonworld = NewtonCreate();
      NewtonCollision* newtoncollision = NewtonCreateNull(newtonworld);
      NewtonBody* newtonbody = NewtonCreateDynamicBody(newtonworld,newtoncollision,mat);
      NewtonUpdate(newtonworld,1.0/60.0);
      NewtonDestroyBody(newtonbody);
      NewtonUpdate(newtonworld,1.0/60.0);
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Simple code crashes Newton in dgBroadPhase.cpp

Postby Julio Jerez » Tue Aug 06, 2013 7:54 pm

Upps that's a big bug.
I fix it tonight, thanks
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Simple code crashes Newton in dgBroadPhase.cpp

Postby Julio Jerez » Wed Aug 07, 2013 9:55 am

Ok fixed
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 2 guests

cron