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

Garbage collection issues #143

Open
ainaerco opened this issue Mar 29, 2023 · 0 comments
Open

Garbage collection issues #143

ainaerco opened this issue Mar 29, 2023 · 0 comments

Comments

@ainaerco
Copy link

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.

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

No branches or pull requests

1 participant