Skip to content

Plugin crashes during startup when -RHIValidation is enabled #17

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

Open
TBBle opened this issue May 9, 2025 · 2 comments
Open

Plugin crashes during startup when -RHIValidation is enabled #17

TBBle opened this issue May 9, 2025 · 2 comments

Comments

@TBBle
Copy link

TBBle commented May 9, 2025

Observed in Unreal Engine 5.4 and 5.5; I haven't tested older versions to see how they differ.

When -RHIValidation is passed to the engine, the GDynamicRHI global variable points at a proxy RHI implementation.

However, the XeSS Unreal Plugin in several places tries to static_cast<...>(GDynamicRHI), which produces an invalid result and crashes when -RHIValidation is in-use.

Instead, I believe it is safe all the way back to 4.27 to use static_cast<...>(GDynamicRHI->GetNonValidationRHI()).

@xessgamedev
Copy link
Collaborator

Thank you for reporting, we'll investigate the issue, and fix it in the next release.

@xessgamedev
Copy link
Collaborator

GDynamicRHI->GetNonValidationRHI() should be introduced in Unreal 5.0, but we still need to support Unreal 4.26 and 4.27.

To make it simple, we can disable XeSS when -RHIValidation is used, another reason is that we don't do plugin tests with -RHIValidation.
does it work for you? @TBBle

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

No branches or pull requests

2 participants