puzzlepaint / surfelmeshing

Real-time surfel-based mesh reconstruction from RGB-D video.
BSD 3-Clause "New" or "Revised" License
420 stars 83 forks source link

No error, but 0 surfels and 0 triangles #15

Open zsustc opened 4 years ago

zsustc commented 4 years ago

Hi, Thanks very much for your code sharing!

I have successfully complied the project in my ubuntu16.04. First, we tested the tum-data, the program ran well and output dense mesh. Then, run my own data, there is a problem about cuda " Cuda Error: an illegal memory access was encountered", my system is ubuntu16.04 with GeForce GTX 1080, cuda8.0. I check the GPU memory used is 2760M.

Any idea of why there's such a problem? Thanks in advance!

puzzlepaint commented 4 years ago

Hi, sorry for the slow reply, I have been busy. The error message alone does not allow to localize the problem, since this error could happen in variety of places.

To localize the problem, you could uncomment the preprocessor definitions "CUDA_SEQUENTIAL_CHECKS" here:

Then, after recompiling, running the program should abort after the CUDA kernel call which was responsible for the failure.

Also, since it works with the TUM data, here is a guess for the reason of the problem: Does your own data have depth values directly at the edges of the depth images? I think the TUM data does not, and if your data has depth values there, perhaps the program tries to do out-of-bounds accesses there.