【问题标题】:Azure SpatialAnchors AppProperties crash in Android NDKAndroid NDK 中的 Azure SpatialAnchors AppProperties 崩溃
【发布时间】:2021-09-26 14:09:48
【问题描述】:

Azure SpatialAnchors NDK 在插入/查找 AppProperties 时崩溃。 在我的自定义应用程序中尝试修复它失败后,我将代码添加到 Microsoft 官方教程中,该教程构建并运行良好。

https://github.com/Azure/azure-spatial-anchors-samples/blob/master/Android/NDK/app/src/main/cpp/AzureSpatialAnchorsApplication.cpp#L570

visual.cloudAnchor = std::make_shared<CloudSpatialAnchor>();
visual.cloudAnchor->LocalAnchor(visual.localAnchor);
std::shared_ptr<IMap<std::string, std::string>> properties = visual.cloudAnchor->AppProperties(); // new code
// verified properties is not null
properties->Insert(R"(model-type)", R"(frame)");       // crash!
ERROR: A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 22056

这里是显示如何设置应用程序属性的文档https://docs.microsoft.com/en-us/azure/spatial-anchors/how-tos/create-locate-anchors-cpp-ndk

【问题讨论】:

    标签: android android-ndk azure-spatial-anchors


    【解决方案1】:

    感谢您与我们联系!

    这是this GitHub issue 的副本 团队将在那里跟进

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-16
      相关资源
      最近更新 更多