|
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
|