Creating Spatial Anchors crashes application (iOS Swift)

Yu Yang Tan 106 Reputation points
2021-07-29T09:51:10.497+00:00

When calling cloudSession!.createAnchor based on this document: https://learn.microsoft.com/en-us/azure/spatial-anchors/how-tos/create-locate-anchors-swift , my application crashes and the following logs appear. The error log is quite vague, if possible I would like assistance on this.

----------

Assertion failed: (([NSString stringWithFormat: @"%@", [props objectForKey: key]].length < 125)), function LogTelemetryEvent, file /Users/runner/work/1/s/SpatialServices/Core/Telemetry/src/ios/Telemetry.mm, line 580.
(lldb)

----------

Adding more information here regarding the logs and session before the crash

----------

AzureSpatialAnchors - Session Identifier: bf8b055d-361c-431e-af23-44c3a91d8ca5
AzureSpatialAnchors - AnchorServiceUrl: https://manage.sa.southeastasia.mixedreality.azure.com/
AzureSpatialAnchors - AuthServiceUrl: https://sts.southeastasia.mixedreality.azure.com/
AzureSpatialAnchors - AccountId: f53c5ff1-b3ed-41bb-8a75-61d8214c33d2
AzureSpatialAnchors - DeviceOsVersion: 14.6
AzureSpatialAnchors - SdkPackageType:
AzureSpatialAnchors - SdkVersion: 2.10.2
AzureSpatialAnchors - ArPlatformVersion: 14.6
AzureSpatialAnchors - MiddlewareVersions:
[MobileNeighborhoodManager::OnArFrameAvailable] CalculateSpeeds failed; skipping the frame since speed data cannot be calculated.
PoseQueryProcessorStream - ReqCV: x4m3KLOvTOi8KdvjTRELbA
simd_float4x4([[1.1634637, 0.0, -0.021492505, 0.0], [0.0, 1.1636622, 0.0, 0.0], [0.021492505, 0.0, 1.1634637, 0.0], [0.055397995, -1.0279655, -0.9663658, 1.0]])
renderer:nodeForAnchor with local anchor <ARAnchor: 0x2815b4d10 identifier="BDF5DCCE-DF89-49C3-BA93-7A86498FEE92" sessionIdentifier="EE40EE91-FDC1-A169-11BF-116E023E5E96" transform=<translation=(0.055398 -1.027966 -0.966366) rotation=(-0.00° 1.06° 0.00°)>> at [[1.163 0.000 0.021 0.055] [0.000 1.164 0.000 -1.028] [-0.021 0.000 1.163 -0.966] [0.000 0.000 0.000 1.000]]
[MobileNeighborhoodManager::OnArFrameAvailable] Frames Processed: 1800. Frames Promoted to Candidates: 24. Frames excluded by sampling: 0.
[MobileNeighborhoodManager::OnArFrameAvailable] Frames Processed: 3600. Frames Promoted to Candidates: 24. Frames excluded by sampling: 0.

----------

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.
88 questions
{count} vote

Accepted answer
  1. Yu Yang Tan 106 Reputation points
    2021-08-03T04:21:44.597+00:00

    @Oladapo Afolabi I have found the issue, it seems like ASACloudSpatialAnchor() does not like the simd_float4x4 local
    anchorLocation that I provided. Thanks for the help!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful