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 when unmuting layer #883

Closed
marktucker opened this issue Jun 20, 2019 · 1 comment
Closed

Crash when unmuting layer #883

marktucker opened this issue Jun 20, 2019 · 1 comment

Comments

@marktucker
Copy link
Contributor

Description of Issue

It is possible to cause a crash when unmuting a layer on a stage, generating the error message "attempted member lookup on NULL TfWeakPtr".

Steps to Reproduce

  1. Unzip the attached set of simple usda files. The content is not important, but the composition hierarchy does seem relevant (root layer with a sublayer that payloads a layer with a sublayer).
    unmute_crash.zip
  2. Run python in the directory containing the unzipped usda files. Run the following python code:
    from pxr import Usd
    import os
    s = Usd.Stage.CreateInMemory()
    r = s.GetRootLayer()
    r.subLayerPaths.append('d.usda')
    s2 = Usd.Stage.CreateInMemory()
    r2 = s2.GetRootLayer()
    r2.subLayerPaths.append('d.usda')
    s.MuteAndUnmuteLayers([os.getcwd() + '/c.usda'], [])
    s2.MuteAndUnmuteLayers([os.getcwd() + '/c.usda'], [])
    r.subLayerPaths.clear()
    r.subLayerPaths.append('e.usda')
    s.MuteAndUnmuteLayers([], [os.getcwd() + '/c.usda'])
  3. Executing the last line should generate the message: "attempted member lookup on NULL TfWeakPtr", followed by a crash.

Package Versions

19.07

@jilliene
Copy link

Filed as internal issue #USD-5386

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

3 participants