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

Crash saving USD file on Windows to removable volume mounted as NTFS folder #3414

Open
marktucker opened this issue Nov 7, 2024 · 1 comment

Comments

@marktucker
Copy link
Contributor

Description of Issue

Tf_HasAttribute on Window has the potential to dive into an infinite recursion when faced with a directory on an NTFS volume that has been used as the mount point for a removable volume (USB drive, for example).

Steps to Reproduce

  1. On Windows, plug in a USB drive that is safe to reformat/delete all contents.
  2. From the Start Menu Choose "Create and Format Hard Disk Partitions".
  3. Find the USB Drive, RMB on it, and Choose "Delete Volume". Confirm the deletion.
  4. RMB on the unallocated USB volume and choose "New Simple Volume".
  5. On the "Assign Drive Letter or Path" page, set the USB volume to mount on "C:\UsbDrive" (C: has to be NTFS formatted to allow this).
  6. Accept the rest of the dialogs to reformat the USB drive, and verify that C:\UsbDrive exists and can be written to.
  7. Run python in a USD-capable environment and run the following code:
from pxr import Usd
s = Usd.Stage.CreateInMemory()
s.Export("C:/UsbDrive/output.usda")
  1. Python will run for a long time, and eventually crash with a stack overflow.

System Information (OS, Hardware)

Windows only.

Package Versions

USD 24.03 and 24.08 have both been tested and fail the same way.

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10418

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

2 participants