Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use glew "locally"? #375

Open
hvkwak opened this issue Nov 17, 2022 · 1 comment
Open

Use glew "locally"? #375

hvkwak opened this issue Nov 17, 2022 · 1 comment

Comments

@hvkwak
Copy link

hvkwak commented Nov 17, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants