Skip to content

Comments

HYDRA-2099 : Handle invalid primitives from MRenderItems#378

Merged
debloip-adsk merged 3 commits intodevfrom
lanierd/HYDRA-2099
Feb 9, 2026
Merged

HYDRA-2099 : Handle invalid primitives from MRenderItems#378
debloip-adsk merged 3 commits intodevfrom
lanierd/HYDRA-2099

Conversation

@lanierd-adsk
Copy link
Collaborator

No description provided.

@lanierd-adsk lanierd-adsk self-assigned this Feb 6, 2026
@lanierd-adsk lanierd-adsk requested a review from Copilot February 6, 2026 09:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces assertions with runtime error messages when encountering unsupported primitive types from MRenderItems. Instead of crashing in debug builds, the code now logs descriptive error messages and continues execution.

Changes:

  • Replaced assert(false) with TF_RUNTIME_ERROR macro calls in two locations
  • Added detailed error messages including primitive type, item name, DAG path, and prim ID

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

lanierd-adsk and others added 2 commits February 6, 2026 10:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lanierd-adsk lanierd-adsk requested a review from Copilot February 6, 2026 09:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +130 to +135
TF_RUNTIME_ERROR(
"Unsupported render item primitive %d for item '%s' (prim '%s', id '%s').",
static_cast<int>(GetPrimitive()),
_name.asChar(),
_dagPath.fullPathName().asChar(),
GetID().GetText());
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message construction is duplicated in two locations. Consider extracting this error reporting logic into a private helper method to improve maintainability and ensure consistency.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the root cause of these unsupported primitive types? Do we have a ticket to investigate this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lanierd-adsk This conversation was marked resolved previously, do we have an answer to this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logged as HYDRA-2100.

Comment on lines +130 to +135
TF_RUNTIME_ERROR(
"Unsupported render item primitive %d for item '%s' (prim '%s', id '%s').",
static_cast<int>(GetPrimitive()),
_name.asChar(),
_dagPath.fullPathName().asChar(),
GetID().GetText());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the root cause of these unsupported primitive types? Do we have a ticket to investigate this?

@lanierd-adsk lanierd-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Feb 6, 2026
@debloip-adsk debloip-adsk merged commit 8be73b5 into dev Feb 9, 2026
10 checks passed
@debloip-adsk debloip-adsk deleted the lanierd/HYDRA-2099 branch February 9, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants