irajsb / UE_CaptureSubsystem

Runtime video and screenshot capture system for Unreal Engine
MIT License
81 stars 14 forks source link

Crash when starting capture on UE 5.2 #1

Closed JasonShaojiesun closed 1 year ago

JasonShaojiesun commented 1 year ago

Whenever I try to start capture, it crashes the editor. The following is the crash log, is there any way to fix this problem? Thanks a lot!!

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000001a6000005c5

UnrealEditor_Engine UnrealEditor_CaptureSubsystem!UCaptureSubsystemDirector::OnBackBufferReady_RenderThread() [D:\UE5Projects\RecordingTest\Plugins\CaptureSubsystem\Source\CaptureSubsystem\Private\CaptureSubsystemDirector.cpp:193] UnrealEditor_CaptureSubsystem!TBaseUObjectMethodDelegateInstance<0,UCaptureSubsystemDirector,void __cdecl(SWindow &,TRefCountPtr const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Program Files\UE_5.2\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:552] UnrealEditor_SlateRHIRenderer UnrealEditor_SlateRHIRenderer UnrealEditor_SlateRHIRenderer UnrealEditor_Core UnrealEditor_Core UnrealEditor_RenderCore UnrealEditor_RenderCore UnrealEditor_Core UnrealEditor_Core kernel32 ntdll

JasonShaojiesun commented 1 year ago

Crashes on 5.03 as well

irajsb commented 1 year ago

in project settings set viewport client to CaptureGameViewportClient

irajsb commented 1 year ago

image

JasonShaojiesun commented 1 year ago

Problem solved! Lots of thanks!