Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / plugin Import crash - FBXSDK20102
  RSS 2.0 ATOM  

plugin Import crash - FBXSDK20102
Rate this thread
 
52337
 
Permlink of this thread  
avatar
  • Location: Midvale, UT
  • Total Posts: 144
  • Joined: 25 March 2010 10:49 AM

Howdy,

Well, I’m still having a crash issue when trying to import an fbx file on PC (Windows 7) with my import plugin for Cinema 4D (Mac versions are working flawlessly). The crash happens more often in Cinema 4D R12 but it does also happen in R10 and R11 on PC.

I’ve recreated the crash in a simplified test plugin that simply loads an fbx file into memory and destroys it, then displays an alert dialog saying that the file was loaded and destroyed.

Here is the simplified test plugin project folder with the source code, a .fbx test file and the Cinema 4D crash bug report included:
http://www.cactus3d.com/FBXSDK2010_Test_R12.zip

The crash seems to happen more often after booting the computer, running Cinema 4D and then calling the command. It doesn’t crash the first time I call the command, but either the second or third time calling the command. If it makes it past the third time without crashing, I can then call the command 10+ times without crashing. The crash in the test plugin is happening in the same place as it is with my FBX import/export plugin. The bug report shows that the crash happens inside the fbx sdk library in a function in KFbxPropertyPage called FastFind:

FBXSDK2010_Test_R12.cdl: 0F25A5D3 fbxsdk_20102::KFbxPropertyPage::FastFind
FBXSDK2010_Test_R12.cdl: 0F25A6A3 fbxsdk_20102::KFbxPropertyPage::Find
FBXSDK2010_Test_R12.cdl: 0F25B59B fbxsdk_20102::KFbxPropertyHandle::Find
FBXSDK2010_Test_R12.cdl: 0F211D57 fbxsdk_20102::KFbxProperty::FindHierarchical
FBXSDK2010_Test_R12.cdl: 0F26F784 fbxsdk_20102::KFbxIOSettings::GetProperty
FBXSDK2010_Test_R12.cdl: 0F26F882 fbxsdk_20102::KFbxIOSettings::SetBoolProp
FBXSDK2010_Test_R12.cdl: 0F3A5E5D fbxsdk_20102::KFbxReaderFbx6::ReadOptionsInExtensionSection
FBXSDK2010_Test_R12.cdl: 0F3AA1CB fbxsdk_20102::KFbxReaderFbx6::GetReadOptions
FBXSDK2010_Test_R12.cdl: 0F399D3E fbxsdk_20102::KFbxReaderFbx7::GetReadOptions
FBXSDK2010_Test_R12.cdl: 0F20F90D fbxsdk_20102::KFbxImporter::GetImportOptions
FBXSDK2010_Test_R12.cdl: 0F20FEDB fbxsdk_20102::KFbxImporter::GetTakeCount
FBXSDK2010_Test_R12.cdl: 0F201215 TestCommand::LoadScene
FBXSDK2010_Test_R12.cdl: 0F2013F8 TestCommand::Execute

... so, I’m having a tough time trying to figure out what’s triggering the crash. Since it has so far never crashed the first time calling the command, I thought maybe I’m doing something wrong in my code, like overwriting some memory or something, but I can’t see anything wrong with even the simplified test plugin project.

Can anyone see anything wrong with the code of the test plugin project in the download link?

Adios,
Cactus Dan



Replies: 0
avatar

Where are you destroying the scene?

pScene KFbxScene::Create(pSdkManager,""); if(!pScene) return FALSE;


Replies: 0
avatar

Howdy,

Doesn’t the KFbxScene get destroyed when the KFbxSdkManager gets destroyed?

Adios,
Cactus Dan



Replies: 2
/userdata/avatar/3yvwf23us_doug100x100.png

It may, but I didn’t take that chance in my code.

Author: Doug Rogers

Replied: 14 February 2011 12:27 PM  
/userdata/avatar/vx3501hqr_small.jpg

Yes, everything will be destroyed when the KFbxSdkManger gets destroyed.

Author: Jiayang Xu

Replied: 14 February 2011 05:14 PM  
avatar

Howdy,

Hmmmm, so will the KFbxScene destroy the objects in the scene when the scene is destroyed?

Adios,
Cactus Dan



Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

Only the objects that are created on the KFbxScene will be destroyed when the scene is destroyed.
If you have some objects created on the KFbxSdkManager and then connected to the scene, they won’t be destroyed when the scene is destroyed.

Author: Jiayang Xu

Replied: 14 February 2011 05:16 PM