Topic: Compile and run Maratis on OS X Lion, Xcode 4.3.1 / 4.5, crashes
I am trying to compile and run Maratis from sources (Mac, 64 bit, Lion, Xcode 4.3.1 / 4.5).
I want to debug Publish Project with my scene to see what is wrong.
I can compile Maratis
When I run it from Xcode on my Mac, program crashes (EXC_BAD_ACCESS) at Maratis::start()
engine->getBehaviorManager()->addBehavior(MBLookAt::getStaticName(), M_OBJECT3D, MBLookAt::getNew);
in
m_behaviors.push_back(newBCreator);
I cannot understand where is a problem.
As I can see, newBCreator is a valid object, and m_behaviors is instance variable, so it must be initialized automatically while creating MBehaviorManager.
If I comment
engine->getBehaviorManager()->addBehavior(MBLookAt::getStaticName(), M_OBJECT3D, MBLookAt::getNew);
, program crashes again in
engine->getMeshLoader()->addLoader(M_loadBinMesh);
in
m_loaders.push_back( loadFunction );
.
I understand that it is a C++ question.
I want to solve this problem to achieve proper publishing of my big scene from editor, so I ask it here.
Can you help me with it?
Sometimes, during launch program crashes at
m_packageManager = new MPackageManagerNPK();
in Maratis::Maratis with message
Maratis(5116,0x7fff72cbe960) malloc: *** error for object 0x100e8fb38: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
If I Enable Guard Malloc for project, then project crashes in MLevel::MLevel MDataManager::MDataManager while constructing instance of
vector <MDataRef *> m_refs;
Last edited by Petr (2012-09-19 08:18:42)