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

Unreal Editor crashes whilst attempting to calculate probe settings #176

Open
ImGreenWolf opened this issue Jun 10, 2023 · 1 comment
Open

Comments

@ImGreenWolf
Copy link

Whenever I try to calculate the probe settings, the editor crashes. This is the error I get

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000030

UnrealEditor_ProjectAcousticsBakeUI!AAcousticsDebugRenderer::Tick() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\ProjectAcoustics\Source\ProjectAcousticsBakeUI\Private\AcousticsDebugRenderer.cpp:74]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll
@NoelCross
Copy link
Contributor

@ImGreenWolf thanks for reporting this issue. To avoid this issue, please update the following code in the ProjectAcousticsBakeUI plugin to match the following. Sorry for the inconvenience.

void AAcousticsDebugRenderer::Tick(float deltaSeconds)
{
auto viewport = GEditor->GetActiveViewport();
if (viewport == nullptr)
{
return;
}
auto* client = static_cast<FEditorViewportClient*>(viewport->GetClient());
if (client)
{
auto cameraDir = client->GetViewRotation().Vector();
auto cameraPosition = client->GetViewLocation();
auto cameraFOV = client->ViewFOV;
UpdateCacheAndRender(cameraPosition, cameraDir, cameraFOV);
}
}

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