-
Notifications
You must be signed in to change notification settings - Fork 201
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
[MAYA-127101] VP2 crashes when rendering pointInstancer with unused prototypes since maya-usd 0.21 #2812
Comments
Hi @jufrantz, thank you for logging this, I am also able to reproduce this on our side on Mac. it's logged internally as MAYA-127101 |
after a bit of investigating on this, this seems to be specific to the first item on the index array. if i have the same setup - but with only the sphere as my prototype, i don't get a crash. it might be an issue with indexing needing to have 0 on the array in order to find the beginning of the index for the prototypes. |
Thank you @santosg87 for the clarification. --- a/lib/mayaUsd/render/vp2RenderDelegate/mayaPrimCommon.cpp
+++ b/lib/mayaUsd/render/vp2RenderDelegate/mayaPrimCommon.cpp
@@ -836,7 +836,8 @@ void MayaUsdRPrim::_SyncSharedData(
// If instancer is dirty, update instancing map
if (HdChangeTracker::IsInstancerDirty(*dirtyBits, id)) {
- bool instanced = !refThis.GetInstancerId().IsEmpty();
+ bool instanced = !refThis.GetInstancerId().IsEmpty()
+ && !delegate->GetInstanceIndices(refThis.GetInstancerId(), id).empty());
// UpdateInstancingMapEntry is not multithread-safe, so enqueue the call
_delegate->GetVP2ResourceRegistry().EnqueueCommit([this, id, instanced]() { |
@jufrantz awesome, good to know! from more info on other issues, this might be something on the pixar USD code. #2804 has a very similar crash to yours, although hitting it from a different code path. someone pointed out they logged a bug with pixar already PixarAnimationStudios/OpenUSD#2149 |
@jufrantz given that you have a workaround for the crash - would that be something you would want to contribute the code base? feel free to push a PR for it if you'd like :) |
We are still hitting this in:
Works fine in usdview. What is the status of this bug? It says in MAYA-126933 that this is fixed too but seems like it is not. |
We tested it with maya-usd 0.25 and this is fixed on our side. |
Describe the bug
Using maya-usd 0.21.0, we are experiencing maya crashes when VP2 rendering USD pointInstancers.
They occur when the pointInstancer has at least an invisible prototype, such as when it does not appear in
protoIndices
attrib.This is a very typical case in our production scenes.
Steps to reproduce
Sphere
)Expected behavior
VP2 should render the 5 instanced cubes without crash.
Specs (if applicable):
Additional context
The text was updated successfully, but these errors were encountered: