Anyone know what cause this crash : FbxGeometryConverter::Triangulate() ?

Anyone know what cause this crash : FbxGeometryConverter::Triangulate() ?

Anonymous
Not applicable
1,829 Views
8 Replies
Message 1 of 9

Anyone know what cause this crash : FbxGeometryConverter::Triangulate() ?

Anonymous
Not applicable

Hi there.

 

We are using FbxGeometryConverter::Triangulate() and it's causing a crash in

some kind of FBX files.

I couldn't attach examples for some reasons but it's sure that it doesn't include any NURBs.

 

Version:

Autodesk FBX SDK 2016.1.2 Release, September 10th 2015

 

Does anyone know of a way to solve a problem ?

Thanks,

 

 

0 Likes
1,830 Views
8 Replies
Replies (8)
Message 2 of 9

viviane.rochon
Alumni
Alumni

Hi kuzume7WAC6,

 

To attach files in this forum, you must zip them beforehand.

 

Please attach the file - it will help us investigate the issue.

 

Thanks!

 

Viviane



Viviane Rochon Montplaisir
Message 3 of 9

Anonymous
Not applicable

Hi Viviane

 

Here is triangulate.zip which contains a triangle.sln that always reproduces the problem.

 

> triangulate.exe!main(int argc, char * * argv) Line 49 C++
triangulate.exe!__tmainCRTStartup() Line 536 C
triangulate.exe!mainCRTStartup() Line 377 C
kernel32.dll!75c3338a() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!77e29a02() Unknown
ntdll.dll!77e299d5() Unknown

 

Required tools

  • VisualStudio 2012
  • Autodesk FBX SDK 2016.1.2 Release, September 10th 2015

Thanks

 

0 Likes
Message 4 of 9

Anonymous
Not applicable

Hi Viviane.

 

Could you reproduce the problem with our attached file ?

 

Please let me know if there's anything we can do.

 

Thanks

 

kuzume

 

0 Likes
Message 5 of 9

viviane.rochon
Alumni
Alumni

Hi Kuzume,

 

Yes, we could reproduce your issue using your file.

We logged it internally as FBXX-1145.

 

Thank you!

 

Viviane



Viviane Rochon Montplaisir
0 Likes
Message 6 of 9

Anonymous
Not applicable

Hi viviane,

 

Thanks a lot for your investigating and we're looking forward to fixing the issue FBXX-1145.

 

kuzume

 

0 Likes
Message 7 of 9

Anonymous
Not applicable

Hi Viviane.

 

Please let me know when does it fix if you can.

Thanks!

 

kuzume

 

0 Likes
Message 8 of 9

viviane.rochon
Alumni
Alumni

Hi Kuzume,

 

The crash is actually the consequence of an assert in debug mode. The file has bad data. An assert is raised because the line's start and end points are the same, and the FBX SDK cannot compute the direction of the line. The same program built in Release will complete the triangulation calls, but the result is going to be a mesh with some holes caused by the degenerated data that causes the assert to raise in the first place.

 

I hope this clears things up!

 

 



Viviane Rochon Montplaisir
0 Likes
Message 9 of 9

Anonymous
Not applicable

It was nice of you to take the time to solve this problem.

Thnaks a lot.

 

kuzume

0 Likes