Skip to content

Vispy example throws "RuntimeError: Cannot FRAMEBUFFER object X because it does not exist" #151

@gselzer

Description

@gselzer

Here's a MCVE reproducing the error, running within a local copy of jupyter_rfb:

uv venv
uv pip install -e "."
uv pip install "vispy @ git+https://github.com/vispy/vispy" glfw jupyter
uv run --no-sync jupyter notebook examples/vispy1.ipynb

Running the single cell yields

Traceback (most recent call last):
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\jupyter_rfb\widget.py", line 288, in _rfb_maybe_draw
    array = self.get_frame()
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\app\backends\_jupyter_rfb.py", line 205, in get_frame
    self._vispy_canvas.context.flush_commands()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\gloo\context.py", line 172, in flush_commands
    self.glir.flush(self.shared.parser)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\gloo\glir.py", line 584, in flush
    self._shared.flush(parser)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\gloo\glir.py", line 506, in flush
    parser.parse(self._filter(self.clear(), parser))
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\gloo\glir.py", line 824, in parse
    self._parse(command)
    ~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\gjselzer\code\vispy\jupyter_rfb\.venv\Lib\site-packages\vispy\gloo\glir.py", line 780, in _parse
    raise RuntimeError('Cannot %s object %i because it '
                       'does not exist' % (cmd, id_))
RuntimeError: Cannot FRAMEBUFFER object 23 because it does not exist

I'm not a GL expert, so I don't really know where to start debugging this, however the issue maybe should be transferred to the vispy repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions