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

Segfault on addSelectionListener() and addVisibilityListener() #186

Open
dyhl opened this issue Oct 20, 2016 · 1 comment
Open

Segfault on addSelectionListener() and addVisibilityListener() #186

dyhl opened this issue Oct 20, 2016 · 1 comment

Comments

@dyhl
Copy link

dyhl commented Oct 20, 2016

Example code from addSelectionListener() and addVisibilityListener() segfaults.

Looks like it's because of code in src/omega/omegaPythonApi.cpp:

SceneNode* node = (SceneNode*)PyCapsule_GetPointer(pyNode, "node"); This evaluates to NULL regardless of pyNode type.

This then causes node->addListener(listener); to segfault

@febret
Copy link
Member

febret commented Oct 21, 2016

Thank you for the report

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