Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 139 forks source link

Saving the Anchor in the Cloud throws Error #177

Closed Bimod closed 4 years ago

Bimod commented 4 years ago

Hello, im using the sample Scene for Android. Unfortunatly the apps throws some errors and does not save the Anchor into the cloud. I can place the anchor but after scanning it and reaching the 100% the app shows an error. Attached some of the errors that are shown. Screenshot_20200527_213406_com microsoft azure spatialanchors examples unity helloar

darax commented 4 years ago

It might be useful to get the logging messages from the Unity Console. You can switch to the android player after starting the app.

image

BTW, your screen shot is interesting... did you scrub your camera output for privacy or is it actually not there?

Bimod commented 4 years ago

Attached the log from the Console. I just block the camera for privacy reasons (my room is a mess). the camera output works. log_AzureAnchorDemo

darax commented 4 years ago

Thanks @Bimod,

It looks like Unity isn't finding the DLL, so there's some sort of issue building. Since you are on 2020, you might try the instructions for 2019.3 here: https://github.com/Azure/azure-spatial-anchors-samples/issues/149.

Bimod commented 4 years ago

Since I am using th ARFoundation and ARCore 4.0.0 Packages, the scripts got updated and replaced already. Also the Android gradle script is updated with the correct Version number

darax commented 4 years ago

I got 2020.1 installed. I let Unity update the sample project from 2019.3 to 2020.1. I was surprised, but it mostly just worked. I do need to figure out how to get arfoundation 4.0 to show up as an option in the package manager so I can be closer to your environment. You might try arfoundation 3.1, in case arfoundation 4.0 has broken a dependency our library relied upon.

Bimod commented 4 years ago

Sorry for the late reply. So i tried it again with Unity Version 2020.1. and ARFoundation 3.1.3 as well as ARCore 3.1.3 and still get shown an error message in the application and editor. Please find attached. log_AzureAnchorDemo2

darax commented 4 years ago

are you using Unity Remote?

Bimod commented 4 years ago

yes i tried also the Unity Remote. But since the error comes directly after pressing play, Unity Remote never starts the actual game. The editor stops the playmode directly after pressing play. With the error message shown in the previous comment

darax commented 4 years ago

The next step might be to export the project to android studio and build from android studio.

darax commented 4 years ago

do you see a message like this: i>AndroidPlayer(ADB@127.0.0.1:34999)</i Failed to load native plugin: Unable to load library /lib/arm/libazurespatialanchorsndk.so', error 'java.lang.UnsatisfiedLinkError: dlopen failed: library "libarcore_sdk_c.so" not found'?

I just hit this. My phone has updated and I just updated android studio.

darax commented 4 years ago

Can you check to see if you have the ARCore plugin provider enabled? I'm not sure what might have unchecked that box in my project, but it was unchecked.

image

Also, if you dir /s *.so from the 'temp' folder in the unity project, you should see that libarcore_sdk_c.so is sitting next to libazurespatialanchorsndk.so image

Bimod commented 4 years ago

Hey, i build the app withAndroid Studio and it worked actually. I could save the anchor and reload it. I also check the temp folder and i see the libarcore_sdk_c.so. libarcore_sdk

craigktreasure commented 4 years ago

@Bimod, is this issue resolved with @darax's suggestion?

no-response[bot] commented 4 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.