nanogui icon indicating copy to clipboard operation
nanogui copied to clipboard

Garbage collection issues

Open ainaerco opened this issue 2 years ago • 0 comments

Hello, I compiled nanogui from scratch using python3.8, gcc 9.4 on Ubuntu 20.04. Sadly I'm getting errors when trying to launch python examples: example1.py, example3.py... Binary examples and example2.py as well as render_test_*.py work fine. I'm getting such errors for example1.py:

Exception ignored in: 'garbage collection'
Traceback (most recent call last):
  File "~/nanogui/build/platform-linux/python-3.8/nanogui-prefix/src/nanogui/src/python/example1.py", line 88, in __init__
    popup_btn = PopupButton(popup, "Recursive popup", icons.FA_DNA)
SystemError: Objects/typeobject.c:3034: bad argument to internal function
Fatal Python error: unexpected exception during garbage collection
Python runtime state: initialized

I tried to use latest nanobind 1.0.0 too. After some pondering it looks like related to registering python callback functions for the widgets. If I remove callbacks it works. Any idea what could be wrong?

Thanks.

ainaerco avatar Mar 29 '23 14:03 ainaerco