NewtonCreate crash

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 10:52 am

I'm updating my 1.53 code to work with 2.0. However, I'm stumbling at the first hurdle. The call to NewtonCreate crashes. I'm doing NewtonCreate(NULL,NULL). Do I now need to specify memory routines?

Thanks, Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: NewtonCreate crash

Postby Julio Jerez » Tue Dec 23, 2008 10:54 am

I thought you had 2, it should not crash
make sure you have the get the last version.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 12:30 pm

I've been looking at the source code of 2 but haven't yet run it.

I re-downloaded 2 but it hasn't made any difference. I've tried different library combos. The crash is happening at dgWorld::InitConvexCollision() + 0x4fb bytes when called from NewtonCreate(NULL,NULL).

I'm using VS 2005 along with teh lib_vs7_mt version of the library (although I have tried the other statics). Could it be because my computer is old (Athlon 800)? Otherwise I'm thinking library conflicts. I'm compiling with Multi-threaded Debug DLL

Thanks, Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: NewtonCreate crash

Postby Eltran » Tue Dec 23, 2008 12:33 pm

I use the latest, lib_vs8_mt or 9, it works fine... weird :/
Eltran
 
Posts: 16
Joined: Sun Nov 18, 2007 5:32 am

Re: NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 12:46 pm

Hmmm, I don't have lib_vs8_mt in my folder list. I did try the 9 version but the result was the same.

Hang on. I'm getting a 0xC000001D illegal instruction error. I'm thinking there must be some SSE type code in there and my old processor is not up to it. I will be upgrading on the 25th to the modern world so hopefully that will cure it.

Thanks, Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: NewtonCreate crash

Postby Julio Jerez » Tue Dec 23, 2008 1:31 pm

It may be because the libraries are made with VS2008 an dyou are using vs2005,
can you try the 2003 libraries?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 1:38 pm

I think I am. The 2003 one is in lib_vs7_mt right?

Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 3:07 pm

I just tried with the dll, same problem.

Actually, I've just tried to run NewtonDemos.exe and that crashed as well so I think my machine's to old spec to run Newton.

Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: NewtonCreate crash

Postby Julio Jerez » Tue Dec 23, 2008 4:25 pm

JoeWright wrote:Hmmm, I don't have lib_vs8_mt in my folder list. I did try the 9 version but the result was the same.

Hang on. I'm getting a 0xC000001D illegal instruction error. I'm thinking there must be some SSE type code in there and my old processor is not up to it. I will be upgrading on the 25th to the modern world so hopefully that will cure it.

Thanks, Joe


upps I found the bug, in funtion void dgWorld::InitConvexCollision ()

th funtion initilize some contact fo rteh convex hull collision test, it initilized ateh constant using float and also SSE,
that is a mistake


teh code use to be all x87 but I forghot an dmade it see, her eit si

// dgInt32* ptr;
// ptr = (dgInt32*) &dgConvexCollision::m_signMask.m_x;
// ptr[0] = 0x7fffffff;
// ptr[1] = 0x7fffffff;
// ptr[2] = 0x7fffffff;
// ptr[3] = 0x7fffffff;

a.m_integer.m_iVal = 0x7fffffff;
dgConvexCollision::m_signMask = simd_set(a.m_fVal, a.m_fVal, a.m_fVal, a.m_fVal);

// ptr = (dgInt32*) &dgConvexCollision::m_triplexMask.m_x;
// ptr[0] = 0xffffffff;
// ptr[1] = 0xffffffff;
// ptr[2] = 0xffffffff;
// ptr[3] = 0x0;
a.m_integer.m_iVal = 0xffffffff;
dgConvexCollision::m_triplexMask = simd_set(a.m_fVal, a.m_fVal, a.m_fVal, dgFloat32 (0.0f));

I am fix in it and I will upload teh new SDK, standby
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonCreate crash

Postby Julio Jerez » Tue Dec 23, 2008 4:54 pm

Ok the bug was fixed, please download teh SDK again. It is beta 18
if also has many, bug fixes.
starting with beta18 now Newton do not requiere the Visual studio redistribution packages, therefor it shoul work with any version of visual studio, and with any compiler compatible with VS obj code generation.

Please can you tyry again in you attlon to see if it work?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonCreate crash

Postby JoeWright » Tue Dec 23, 2008 7:59 pm

Version 18 is working fine, thanks.

Joe
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 5 guests