ProjectAcoustics icon indicating copy to clipboard operation
ProjectAcoustics copied to clipboard

Unreal Editor crashes whilst attempting to calculate probe settings

Open ImGreenWolf opened this issue 2 years ago • 1 comments

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

ImGreenWolf avatar Jun 10 '23 08:06 ImGreenWolf

@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); } }

NoelCross avatar Jun 10 '23 17:06 NoelCross