Autodesk / Autodesk/maya-usd

[MAYA-126933] Maya crashes if USD instanceable is used together with varying visibility

Open
#2,804 6 comments 0 reactions 1 assignee Claimed by @santosd View on GitHub
bug regression reproduced
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
With Viewport 2.0 on, if USD instanceable is used together with varying visibility, Maya would crash when it is invisible.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Create USD stage using the file I provided
2. Change timecode to 10
3. Maya crashes
4. Crash report shows there is an access violation for module "usd_usdImaging.dll"

**Attachments**
[instance_visibility_bug.zip](https://github.com/Autodesk/maya-usd/files/10358505/instance_visibility_bug.zip)
```
#usda 1.0

def Xform "instance1" (
instanceable = true
prepend references =
)
{
token visibility.timeSamples = {
0: "inherited",
10: "invisible",
}
}

over "Prototypes"
{
def Cube "Cube1"
{
}
}
```

**Specs (if applicable):**
- OS & version: Windows 10
- Maya version: 2023.3
- Maya USD: 0.21 Release for Maya 2023.3

**Additional context**
This problem shows up when I upgrade maya-usd from 0.20 to 0.21.
Now the only workaround I can come up with is to unmark this prim as instanceable, then Maya would not crash.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.