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

Interactive issue #153

Open
intBear opened this issue May 11, 2023 · 1 comment
Open

Interactive issue #153

intBear opened this issue May 11, 2023 · 1 comment
Labels
setup Issues with env installation, build or setup

Comments

@intBear
Copy link

intBear commented May 11, 2023

When I try to run main_nerf.py, I successfully loaded the data, but the interactive renderer was crushed due to the following errors:

2023-05-11 20:07:33,458|    INFO| [i] Running at 60 frames/second
Traceback (most recent call last):
  File "C:\Users\admin\PycharmProjects\kaolin-wisp-main\app\nerf\main_nerf.py", line 491, in <module>
    app.run()  # Run in interactive mode
  File "C:\Users\admin\PycharmProjects\kaolin-wisp-main\wisp\renderer\app\wisp_app.py", line 253, in run
    app.run()   # App clock should always run as frequently as possible (background tasks should not be limited)
  File "C:\Users\admin\.conda\envs\wisp\lib\site-packages\glumpy\app\__init__.py", line 317, in run
    clock = __init__(clock=clock, framerate=framerate, backend=__backend__)
  File "C:\Users\admin\.conda\envs\wisp\lib\site-packages\glumpy\app\__init__.py", line 277, in __init__
    window.dispatch_event('on_resize', window._width, window._height)
  File "C:\Users\admin\.conda\envs\wisp\lib\site-packages\glumpy\app\window\event.py", line 396, in dispatch_event
    if getattr(self, event_type)(*args):
  File "C:\Users\admin\PycharmProjects\kaolin-wisp-main\wisp\renderer\app\wisp_app.py", line 555, in on_resize
    self.cugl_rgb_handle = self._register_cugl_shared_texture(tex)
  File "C:\Users\admin\PycharmProjects\kaolin-wisp-main\wisp\renderer\app\wisp_app.py", line 331, in _register_cugl_shared_texture
    handle = cuda_register_gl_image(image=int(tex.handle), target=tex.target)
  File "C:\Users\admin\PycharmProjects\kaolin-wisp-main\wisp\renderer\core\cuda.py", line 57, in cuda_register_gl_image
    raise RuntimeError('Failed to register GL texture as a CUDA shared resource.')
RuntimeError: Failed to register GL texture as a CUDA shared resource.

Process finished with exit code 1

Although I tried to recreate conda env based on the tutorial, this issue still exists.

@orperel
Copy link
Collaborator

orperel commented May 11, 2023

  1. Are you connected to a display?
  2. Is cuda-python installed properly?
  3. You can also bypass GL texture registration by pulling this PR: VertexArrayObject fix for gl 3.3 #118
    There is a workaround in these lines for your error message.

@orperel orperel added the setup Issues with env installation, build or setup label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup Issues with env installation, build or setup
Projects
None yet
Development

No branches or pull requests

2 participants