NewtonTreeCollisionEndBuild crash

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonTreeCollisionEndBuild crash

Postby FSA » Sat Sep 13, 2014 3:09 pm

And also NewtonTreeCollisionEndBuild crashes...
It looks like no collisions can be build at the moment. Every one is crashing the application.

!Please fix this as soon as possible. No application using newton starts right now!

Callstack:
Code: Select all
    newton_d.dll!dgPolygonSoupDatabaseBuilder::FilterFace(int count, int * const pool)  Line 857 + 0xf bytes   C++
    newton_d.dll!dgPolygonSoupDatabaseBuilder::OptimizeByIndividualFaces()  Line 448 + 0x19 bytes   C++
    newton_d.dll!dgPolygonSoupDatabaseBuilder::Finalize()  Line 316   C++
    newton_d.dll!dgPolygonSoupDatabaseBuilder::FinalizeAndOptimize()  Line 323   C++
    newton_d.dll!dgPolygonSoupDatabaseBuilder::Optimize(int faceId, const dgPolygonSoupDatabaseBuilder::dgFaceBucket & faceBucket, const dgPolygonSoupDatabaseBuilder & source)  Line 668   C++
    newton_d.dll!dgPolygonSoupDatabaseBuilder::End(bool optimize)  Line 477   C++
    newton_d.dll!dgCollisionBVH::EndBuild(int optimize)  Line 94   C++
>   newton_d.dll!NewtonTreeCollisionEndBuild(const NewtonCollision * const treeCollision, int optimize)  Line 3444   C++
    NoxetEngineD.dll!NoxetEngine::TreeCollision::End(const bool & bOptimize)  Line 39 + 0x11 bytes   C++
    Editor.exe!RenderWindow::InitObjectHandler()  Line 387 + 0x19 bytes   C++
    Editor.exe!NXEApp::OnInit()  Line 142   C++
    Editor.exe!wxAppConsoleBase::CallOnInit()  Line 93 + 0x32 bytes   C++
    Editor.exe!wxEntryReal(int & argc, wchar_t * * argv)  Line 479 + 0x1d bytes   C++
    Editor.exe!wxEntry(int & argc, wchar_t * * argv)  Line 188 + 0xd bytes   C++
    Editor.exe!wxEntry(HINSTANCE__ * hInstance, HINSTANCE__ * __formal, HINSTANCE__ * __formal, int nCmdShow)  Line 415 + 0x10 bytes   C++
    Editor.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow)  Line 8 + 0x31 bytes   C++
    Editor.exe!__tmainCRTStartup()  Line 528 + 0x15 bytes   C
    Editor.exe!WinMainCRTStartup()  Line 377   C
    kernel32.dll!7606919f()    
    [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]   
    ntdll.dll!77aea22b()    
    ntdll.dll!77aea201()    
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: NewtonTreeCollisionEndBuild crash

Postby Julio Jerez » Sat Sep 13, 2014 3:58 pm

nothing has happened on those files in a long time.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonTreeCollisionEndBuild crash

Postby pHySiQuE » Sat Sep 13, 2014 4:14 pm

You can add a check. If a triangle has an area below a certain number, don't add it into the collision tree:
Code: Select all
                  float da = a.DistanceToPoint(b);
                  float db = b.DistanceToPoint(c);
                  float dc = c.DistanceToPoint(a);
                  p = (da + db + dc) / 2.0;
                  area = sqrt(p * (p - da)*(p - db)*(p - dc));


I personally do not use the optimize option because it is slower to load.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: NewtonTreeCollisionEndBuild crash

Postby manny » Sat Sep 13, 2014 6:26 pm

try to clean and rebuild your project and all newton librarys.
a change in the github repository regarding some method names might cause issues here.
http://www.instaLOD.io - InstaLOD - State of the art 3D optimization
manny
Site Admin
Site Admin
 
Posts: 131
Joined: Tue Feb 11, 2014 6:49 pm

Re: NewtonTreeCollisionEndBuild crash

Postby FSA » Sun Sep 14, 2014 8:15 am

Did it. No change at all, still not working.
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron