niessner / BundleFusion

[Siggraph 2017] BundleFusion: Real-time Globally Consistent 3D Reconstruction using Online Surface Re-integration
http://graphics.stanford.edu/projects/bundlefusion/
Other
1.51k stars 355 forks source link

Assertion failure m_SIFTImagesGPU.size() < m_maxNumImages #21

Closed zc08 closed 6 years ago

zc08 commented 6 years ago

I'm running the code on Windows 10 + GTX 1080 + VS 2013 + CUDA 8.0. However I get assertion failure after the program has succesfully run for several frames (using the apt0.sens file downloaded from the authors' website):

In file \SiftGPU\SIFTImageManager.cpp, Line 44: In function SIFTImageGPU& SIFTImageManager::createSIFTImageGPU( ) assert(m_SIFTImagesGPU.size() < m_maxNumImages) fails.

It seems the problem could happen on random frames so it may be related to some multi-threading issue? Has anyone encountered similar problem? Thanks!

zc08 commented 6 years ago

Modifying the s_maxFrameFixes parameter in zParametersDefault from 10 to 20 solves this.