nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.58k stars 608 forks source link

Use glew "locally"? #375

Open hvkwak opened 1 year ago

hvkwak commented 1 year ago

Hi, I'm beginner to this party and I'm not even sure if my question is correct.

I'm trying to run a dynamic viewer from https://github.com/cmusatyalab/mega-nerf-viewer. My computer is connected to a remote server with GPU over ssh -X. I've got no admin rights i.e. files in /usr which includes OpenGL are read-only.

After compilation and run, it opens up a gui but this line of code throws me an error which terminates the whole program:

cuda_assert(cudaGraphicsGLRegisterImage(&cgr[index * 2], rb[index], GL_RENDERBUFFER,
                                                        cudaGraphicsRegisterFlagsSurfaceLoadStore |
                                                        cudaGraphicsRegisterFlagsWriteDiscard), __FILE__, __LINE__);

with the error of

./mega-nerf-viewer /home/hyo26751/Dokumente/Masterarbeit/mega-nerf/building_octree.npz --model_path /home/hyo26751/Dokumente/Masterarbeit/mega-nerf/building-pixsfm-8.pt
Data format RGBA
Scale: 5.26749 0.8607 0.514119
Offset: -0.226583 0.5 0.5
Center: [0.137937, 0, 0]
Radius: [0.0949219, 0.580922, 0.972537]
Range: [0.0430153, -0.580922, -0.972537], [0.232859, 0.580922, 0.972537]
Data size: 11449614
Loading model from: "/home/hyo26751/Dokumente/Masterarbeit/mega-nerf/building-pixsfm-8.pt"
Model loaded
cuda_assert: unknown error /home/hyo26751/Dokumente/Masterarbeit/mega-nerf-viewer/src/renderer/cuda_renderer.cpp 450
Speicherzugriffsfehler

where I guess that Speicherzugriffsfehler possibly denotes that it is non-writable. That global variable GL_RENDERBUFFER from glew.h looks very suspicious because it may also be read-only.

After searching for solutions on my own, the matter looks more complicated because it may have started with setting up OpenGL. Would you have suggestions or possible solutions for those who without admin rights?

nigels-com commented 1 year ago

Not likely a GLEW issue, on the face of it.