Skip to content

UnrealCV crashes my game after playing it in the editor second time #272

Open
@LeoB159

Description

@LeoB159

Hello, I am using UE 5.2, and while launching the game in the editor window, everything works. I can use depth, normals, and object_mask without any issue. But after I stop the game and relaunch it in the editor, the editor will crash after requesting any camera data (depth,...). The error message from the pop-up window is as follows:

LoginId:2c308a2b41107e4c01de4fb1b5f363ea
EpicAccountId:41674b4ecca04126b192c495283cb118

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000050

UnrealEditor_UnrealCV!TSet<TTuple<FString,UMaterial *>,TDefaultMapHashableKeyFuncs<FString,UMaterial *,0>,FDefaultSetAllocator>::FindIndexByHash<FString>() [C:\Program Files\Epic Games\UE_5.5\Engine\Source\Runtime\Core\Public\Containers\Set.h:892]
UnrealEditor_UnrealCV!UPlayerViewMode::GetMaterial() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Controller\PlayerViewMode.cpp:47]
UnrealEditor_UnrealCV!UPlayerViewMode::ApplyPostProcess() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Controller\PlayerViewMode.cpp:157]
UnrealEditor_UnrealCV!UPlayerViewMode::Depth() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Controller\PlayerViewMode.cpp:110]
UnrealEditor_UnrealCV!TBaseUObjectMethodDelegateInstance<0,UPlayerViewMode,void __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [C:\Program Files\Epic Games\UE_5.5\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:651]
UnrealEditor_UnrealCV!UPlayerViewMode::SetMode() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Controller\PlayerViewMode.cpp:212]
UnrealEditor_UnrealCV!FCameraHandler::SetPlayerViewMode() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Commands\CameraHandler.cpp:389]
UnrealEditor_UnrealCV!TBaseRawMethodDelegateInstance<0,FCameraHandler,FExecStatus __cdecl(TArray<FString,TSizedDefaultAllocator<32> > const &),FDefaultDelegateUserPolicy>::Execute() [C:\Program Files\Epic Games\UE_5.5\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:519]
UnrealEditor_UnrealCV!FCommandDispatcher::Exec() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Server\CommandDispatcher.cpp:219]
UnrealEditor_UnrealCV!FConsoleHelper::VSet() [C:\Users\Me\Documents\Unreal Projects\MyProject\Plugins\unrealcv-5.2\Source\UnrealCV\Private\Server\ConsoleHelper.cpp:150]
UnrealEditor_UnrealCV!TBaseRawMethodDelegateInstance<0,FConsoleHelper,void __cdecl(TArray<FString,TSizedDefaultAllocator<32> > const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [C:\Program Files\Epic Games\UE_5.5\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:536]
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_OutputLog
UnrealEditor_OutputLog
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
user32
user32
UnrealEditor_ApplicationCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Has anyone encountered this issue, or have any idea how to solve this problem? I tried it on UE 5.2 and on 5.5, with the same issue occurring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions