Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants