kysucix / fusibile

Depthmap fusion with depth and normal consistency check
GNU General Public License v3.0
192 stars 94 forks source link

Something wrong with AlgorithmParameters #19

Closed AsDeadAsADodo closed 1 year ago

AsDeadAsADodo commented 1 year ago
int main(int argc, char **argv)
{

    AlgorithmParameters* algParameters = new AlgorithmParameters; // segmentation fault

    return 0;

}

gdb says : Program terminated with signal SIGSEGV,Segmentation fault.

I don't know much about c/c++ ,only took a course in college.

My gcc and g++ version are both 7.5.0. OS is Ubuntu 20.04 with CUDA 10.2 ,OpenCV 4.5.3.

Update 1 By adding following debug settings to CMakeList.txt , The error become clear

SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

Now the error is 图片 Saddly I still don't understand why this error occurs here , it looks good to me.

Update 2 I switched gcc and g++ to 5.4.0. OS still is Ubuntu 20.04 with CUDA 9.0 ,OpenCV 4.5.3. update 1 error occurs in this environment.

Update 3 After step to step debug,it looks somethings wrong with my CUDA memory 图片 Can't run NVIDIA-CUDA-SAMPLE/1_Utilities/UnifiedMemoryPerf 图片

Update 4 I'm running fusibile on vGPU according to this topic I found out that unified memory is not supported from inside a VM with vGPU (only via pass-through mode). It might be the culprit

Update 5 vGPU and Unified Memory 图片