arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

Render delegate crashes when changing a variant of a shader

Open sirpalee opened this issue 3 years ago • 3 comments

Describe the bug Changing a variant on a shader causes the render delegate to crash.

To Reproduce Steps to reproduce the behavior:

  1. Open the attached arnold_vari_hang.usda.zip file in usdview and switch to Arnold.
  2. Change the color variant on /root/looks/material/shader from blue to red.

Used Software Versions

  • Arnold: 6.2.0.1
  • USD: 21.02
  • Compiler: GCC 6.3.1
  • OS: CentOS 7

sirpalee avatar Mar 22 '21 04:03 sirpalee

This is very likely because of PixarAnimationStudios/USD#978 .

When the variant is on the shader, changing the variant will destroy the existing material hydra primitive, but Hydra won't create a new one and assign it to the shader. If the variant is on the material, everything works as expected.

sirpalee avatar Mar 22 '21 09:03 sirpalee

I'm moving this back to ticket triage, as we are depending on an upstream fix.

sirpalee avatar Apr 13 '21 03:04 sirpalee

Issue synced internally to ARNOLD-13268