niessner / VoxelHashing

[Siggraph Asia 2013] Large-Scale, Real-Time 3D Reconstruction
Other
670 stars 201 forks source link

illegal memory access error with DepthSenseCUDA #3

Open ahsan-abdullah opened 8 years ago

ahsan-abdullah commented 8 years ago

Hi,

I am getting a cudaSafeCall() Runtime API error 77: an illegal memory access was encountered error after like 4 5 seconds of scan in the CUDA project. Do you have any ideas why it might be?

I am using KinectOne (the new Kinect) with NVIDIA Quadro K4200 GPU on Visual Studio 2012, Windows 10.

Thanks, Ahsan

jorgearroyop commented 8 years ago

Hi, I'm experiencing a similar problem: error is thrown after 45 seconds (aprox) of scanning in the CUDA project: Source\CUDAScan.cpp(36) : cudaSafeCall() Runtime API error 4: unspecified launch failure

The line of code where the error is pointing is: cutilSafeCall(cudaMemcpy(&sum, &d_output[numElements - 1], sizeof(int), cudaMemcpyDeviceToHost));

Thanks Jorge

jorgearroyop commented 8 years ago

Hi, It seems that the error involved the cudaMemcpy from device to Host. One simple solution I found was increasing the voxel size in the zParametersDefault.txt.

s_SDFVoxelSize = 0.006f

Jorge

Ivy147 commented 6 years ago

I got this error too. And change a better video card with bigger memory is a solution.