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

Vec3fArray memorybuffer.tobytes() crash #533

Open
zhuowei opened this issue Jun 16, 2018 · 4 comments
Open

Vec3fArray memorybuffer.tobytes() crash #533

zhuowei opened this issue Jun 16, 2018 · 4 comments

Comments

@zhuowei
Copy link

zhuowei commented Jun 16, 2018

Description of Issue

Vec3fArray is supposed to conform to the Buffer interface, but calling tobytes() on a memorybuffer object constructed with the Vec3fArray causes the Python interpreter to crash.

Steps to Reproduce

  1. run this:
from pxr import Vt

a = Vt.Vec3fArray([(1,1,1)])
b = memoryview(a)
print "calling tobytes"
c = b.tobytes()
print "out of tobytes"
  1. Expected result: Python interpreter cleanly exits
  2. Actual result: Python interpreter crashes with a segmentation fault

System Information (OS, Hardware)

Ubuntu 16.04, --no-imaging, build script modified to use system Boost (I can try compiling with the bundled copy of Boost if needed)

@spiffmon
Copy link
Member

spiffmon commented Jun 24, 2018 via email

@zhuowei
Copy link
Author

zhuowei commented Jun 25, 2018

@spiffmon Thanks. I suspect it's the system Boost version that's causing the issue, so I'll try recompiling with the build script's boost.

@jtran56
Copy link

jtran56 commented Jun 25, 2018

Filed as internal issue #162209.

@superfunc
Copy link
Contributor

FWIW, I was able to recreate this on macOS High Sierra with a build generated from build_usd.py

AdamFelt pushed a commit to autodesk-forks/USD that referenced this issue Apr 16, 2024
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

4 participants