using azure spatial anchors makes project crashed in unreal engine4 with hololens2

혜진 서 91 Reputation points
2022-10-04T02:40:08.91+00:00

using device is hololens2 and doing in unreal engine 4

when playing, project is always crashed after creating azure spatial anchors code according to this tutorial below.

https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-azure-spatial-anchors

Assertion failed: Impls.Num() <= 1 [File:D:\Build++UE4\Sync\Engine\Plugins\Runtime\AR\AzureSpatialAnchors\Source\AzureSpatialAnchors\Public\IAzureSpatialAnchors.h] [Line: 61]

UE4Editor_Core
UE4Editor_Core
UE4Editor_AzureSpatialAnchors
UE4Editor_AzureSpatialAnchors
UE4Editor_AzureSpatialAnchors
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

247218-%E1%84%8C%E1%85%A6%E1%84%86%E1%85%A9%E1%86%A8-%E1%84%8B%E1%85%A5%E1%86%B9%E1%84%8B%E1%85%B3%E1%86%B7.png

after uncheking Azure Spatial Anchor for WMR plugins, Crashing disapears..
But according to the tutorial, I may have to enable that plugins again for deploying app on hololens
How can i handle with this?

Azure Spatial Anchors
Azure Spatial Anchors
An Azure service that is used to build immersive three-dimensional applications and experiences that map, persist, and restore content or points of interest at real-world scale.
87 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
385 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Fields 186 Reputation points
    2022-10-04T22:51:58.56+00:00

    When using ASA for Unreal, there is an Azure Spatial Anchors plugin, which contains the common interface for all supported platforms (WMR, ARKit, ARCore, OpenXR), then each supported platform has its own plugin.

    The way ASA is written in the engine, it only supports having a single active implementation:
    https://github.com/EpicGames/UnrealEngine/blob/1e5926084bbf386041103735ed6c2ab27bc1c1ee/Engine/Plugins/Runtime/AR/AzureSpatialAnchors/Source/AzureSpatialAnchors/Public/IAzureSpatialAnchors.h#L61

    // There can be only one! Or zero. The implementations are platform specific and we are not currently supporting 'overlapping' platforms.
    check(Impls.Num() <= 1);

    This error means that you have more than one enabled. Try unchecking any ASA plugins you are not currently building for.

    1 person found this answer helpful.