【发布时间】:2021-09-26 14:09:48
【问题描述】:
Azure SpatialAnchors NDK 在插入/查找 AppProperties 时崩溃。 在我的自定义应用程序中尝试修复它失败后,我将代码添加到 Microsoft 官方教程中,该教程构建并运行良好。
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