Convex hull causes crash [SOLVED]

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Convex hull causes crash [SOLVED]

Postby pHySiQuE » Fri Jun 16, 2017 3:15 pm

Arch primitives are crashing in Newton 3.14. The crash occurs on a call to NewtonBodySetMatrix. Arches are made of multiple convex hulls and can involve fairly long skinny pieces of geometry, but have always worked fine until now.

Image1.jpg
Image1.jpg (110.49 KiB) Viewed 4865 times


How to produce the error
  • Install Leadwerks and opt into the beta branch on Steam. https://www.leadwerks.com/community/top ... -in-steam/
  • Open the folder "C:\Program Files (x86)\Steam\steamapps\common\Leadwerks"
  • Rename "dNewton.dll" to "dNewton_r.dll"
  • Rename "dNewton_d.dll" to "dNewton.dll" (or add your own DLL)
  • Run Leadwerks
  • Select the Create > Compound > Arch menu item
  • Left-click and drag in any 2D viewport

Crash!
Last edited by pHySiQuE on Sat Jun 17, 2017 7:56 pm, edited 1 time in total.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Convex hull causes crash

Postby Julio Jerez » Sat Jun 17, 2017 9:42 am

I do no know how to download stuff from steam.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Convex hull causes crash

Postby AntonSynytsia » Sat Jun 17, 2017 1:15 pm

I think I know why it is crashing. I didn't want to bug Julio about it, but since the last update of the ConvexHull3d.cpp, some convex shapes were considered invalid, such as low 3D trapezoids.

What I did was make a hybrid version of the file that combined the features of previous and new versions. Here it is:
dgConvexHull3d.zip
(7.38 KiB) Downloaded 316 times
AntonSynytsia
 
Posts: 193
Joined: Sat Dec 28, 2013 6:36 pm

Re: Convex hull causes crash

Postby pHySiQuE » Sat Jun 17, 2017 1:51 pm

Julio Jerez wrote:I do no know how to download stuff from steam.

I sent you instructions on how to do it:
http://store.steampowered.com/about/
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Convex hull causes crash

Postby Julio Jerez » Sat Jun 17, 2017 2:13 pm

I am not installing Steam or any other of those software download website on my machine.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Convex hull causes crash

Postby Julio Jerez » Sat Jun 17, 2017 2:48 pm

AntonSynytsia,
wow that change was made back on February the second.

It was suppose to be an improvement of over the method to get the first tetrahedral for the Julio's hull algorithm, I can see how it may break if it gets a set of ill points that form an ill convex, but the way I see it, if the new method fail then changes that the old method fail is higher, but I could not really verify that.
since the old method is been working for so long, I am not argue with that an simply copied the version you sent my, thanks for that fix, it would take me long to figure it out what was wrong.

pHySiQuE, please sync an try again, it should be fine now.
AntonSynytsia, could you please try again?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Convex hull causes crash

Postby pHySiQuE » Sat Jun 17, 2017 4:33 pm

It works! THank you
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron