ethz-asl / ethzasl_ptam

Modified version of Parallel Tracking and Mapping (PTAM)
http://wiki.ros.org/ethzasl_ptam
235 stars 184 forks source link

Uninitialized mpMap pointer leads ptam to crash in System::keyframesservice #64

Closed meuchel closed 9 years ago

meuchel commented 9 years ago

I'm using ptam with ros indigo on odroid. Since a few days suddenly ptam crashes always during start up. I figured out that it crashes due to an uninitialized mpMap pointer in System::keyframesservice function at:
if(!(mpMap->vpKeyFrames.size()>0) | !mpMap->bGood) return false; mpMap will be initialized in System::init(const CVD::ImageRef & size) but this happens only first time in System::imageCallback. In some circumstances this seems to happen to late that mpMap is undefined and leads ptam to crash in System::keyframesservice.