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 in UsdImaging when "moving" an instanced primitive to a different scene graph location #1245

Closed
marktucker opened this issue Jun 15, 2020 · 2 comments

Comments

@marktucker
Copy link
Contributor

Description of Issue

After loading a particular USD file with a payload that contains an instanceable reference, updating the scene to load the same payload to a different scene graph location leads to a crash in the instancerAdapter.cpp in UsdImaging.

Steps to Reproduce

  1. Load testA.usda into usdview from the attached zip file:
    instanceableCrash.zip
  2. In the Interpreter window, run the following commands:
    l = Sdf.Layer.FindOrOpen("./testB.usda")
    usdviewApi.stage.GetRootLayer().TransferContent(l)
  3. usdview will crash in UsdImagingInstanceAdapter::_Populate calling _GetPrim(instancerPath).IsInMaster() (because the _GetPrim call returns a null UsdPrim).

Package Versions

Approximately USD 20.05 (https://github.com/sideeffects/USD/tree/dev_houdini18.5.197, which is 20.05 plus a few additional changes, most or all of which I believe are in the USD dev branch already).

@c64kernal
Copy link
Contributor

Filed as internal issue #USD-6146

marktucker added a commit to sideeffects/USD that referenced this issue Jun 20, 2020
this time addressing the root cause that led to the bad state that leads to
the crash. Change provided by @c64kernal.
@c64kernal
Copy link
Contributor

We have a fix for this checked in and should be included in the 20.08 release.

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