mega-nerf-viewer icon indicating copy to clipboard operation
mega-nerf-viewer copied to clipboard

Cuda_assert: unknown error

Open h8c2 opened this issue 3 years ago • 9 comments

Loading model from: "/home/DISCOVER_summer2022/houc/mega-nerf/Datasets/building-pixsfm/building-pixsfm-8.pt" Model loaded cuda_assert: unknown error /home/DISCOVER_summer2022/houc/mega-nerf-viewer/src/renderer/cuda_renderer.cpp 444 Segmentation fault

h8c2 avatar Jul 05 '22 15:07 h8c2

line 442-449 in cuda_render.cpp cuda_assert(cudaGraphicsGLRegisterImage(&cgr[index * 2], rb[index], GL_RENDERBUFFER, cudaGraphicsRegisterFlagsSurfaceLoadStore | cudaGraphicsRegisterFlagsWriteDiscard), __FILE__, __LINE__); cuda_assert(cudaGraphicsGLRegisterImage(&cgr[index * 2 + 1], depth_rb[index], GL_RENDERBUFFER, cudaGraphicsRegisterFlagsSurfaceLoadStore | cudaGraphicsRegisterFlagsWriteDiscard), __FILE__, __LINE__);

h8c2 avatar Jul 05 '22 15:07 h8c2

Have you solved this question?I meet the same problem with you

alan355 avatar Aug 04 '22 03:08 alan355

I got the same error.

pengzhao-life avatar Aug 05 '22 17:08 pengzhao-life

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

h8c2 avatar Aug 06 '22 02:08 h8c2

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

Thank you a lot. I have got your idea.

alan355 avatar Aug 06 '22 03:08 alan355

I got the same error. How to save as obj or video format?

chl2 avatar Sep 21 '22 11:09 chl2

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

image Maybe I got the same problem with yours, and this GPU is 3090, which is not Integrated though it's still on the remote server. How can I work it out? Thanks~

abovzv avatar Oct 10 '22 17:10 abovzv

I had the same problem and asked a question at https://github.com/nigels-com/glew/issues/375 to see if there's a solution. Anyone found a solution?

hvkwak avatar Nov 17 '22 13:11 hvkwak

I had the same issue, and fixed it by adding __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia before the command; the second one absolutely necessary for it to start. (Inspired by this thread: https://forums.developer.nvidia.com/t/running-sample-gives-code-999-cudaerrorunknown-how-can-this-be-solved/128947)

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./mega-nerf-viewer ~/data/rubble/output/rubble_octree.npz --model_path ~/data/rubble/rubble-pixsfm-8.pt

annkri avatar Aug 18 '23 10:08 annkri