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

Fix BRDF initialization in rhi-null use case #12

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

michalpelka
Copy link

What does this PR do?

This PR fixes null pointer dereferencing that can be caused by running -rhi=null scenario.
It was experienced here : o3de#18649 (comment).

This PR does not require fix in development, since code in BootstrapSystemComponent.cpp is heavily modified in dev comparing to 2409.1

How was this PR tested?

Run game launcher with and test against issue o3de/o3de-extras#792.

  • -rhi=null -console-mode - starts without assertions and crashes (produce some warnings regarding ROS 2 Gem)
  • -rhi=vulkan -console-mode- works, does not reintroduce issue

Copy link

@jhanca-robotecai jhanca-robotecai left a comment

Choose a reason for hiding this comment

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

Tested on Ros2ProjectTemplate;
jh/cherries_24092 on o3de-extras (2d55ec84)
before and after for o3de (b21b699 vs aab497f)

The code looks valid and I can confirm no crashes on my side after the patch is applied (neither with -rhi=null nor -rhi=vulkan for this project).

@jhanca-robotecai jhanca-robotecai merged commit 14ef290 into jh/simulation-cherries Feb 5, 2025
1 check passed
@jhanca-robotecai jhanca-robotecai deleted the mp/fix_boostrap_2409 branch February 5, 2025 15:53
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

Successfully merging this pull request may close these issues.

2 participants