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

Possible to SegFault SoPerspectiveCamera.getMatrix #104

Open
morganrallen opened this issue Mar 11, 2023 · 0 comments
Open

Possible to SegFault SoPerspectiveCamera.getMatrix #104

morganrallen opened this issue Mar 11, 2023 · 0 comments

Comments

@morganrallen
Copy link

Firstly, I don't really understand the functionality here, I just discovered this segfault while trying to figure it out.

Calling SoPerspectiveCamera.getMatrix(action=None) will cause a SegFault, from what appears to be an invalid pointer.

Minimal example....

import sys

from pivy.coin import *
from pivy.sogui import *

myWindow = SoGui.init(sys.argv[0])

root = SoSeparator()
myCamera = SoPerspectiveCamera()
myCamera.getMatrix(action=None)

This was tested against a local build of 0.6.8. Hopefully this is helpful to implement some checking to prevent similar issues going forward.

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