Hey,
Your log indicates that OpenXR did not start up alright which caused a crash within Unity's OpenXR plugin.
Please make sure you have the Snapdragon Spaces Services installed and that the version of the services matches the version of the plugin you're using in your Unity project. If you haven't yet they come bundled together with the SDK download.
You should also check the firmware of your device to ensure it is up to date. Here are the latest versions:
In the past we had issues with developers upgrading Snapdragon Spaces Services from 0.10.x to 0.11.1. To avoid issues here we recommend the following update process for now:
I'm sure my devices is up to date. I have reinstalled this software according to your instructions, but it did not work... And there is an error:
04-10 15:13:21.462 28017 18113 E XrCompositor::ProcessEvent: XrCompositor is not initialized 04-10 15:13:21.462 28017 18113 E XrCompositor::ProcessEvent: XrCompositor is not initialized 04-10 15:13:21.462 28017 18113 E XrCompositor::ProcessEvent: XrCompositor is not initialized 04-10 15:13:21.462 28017 18113 I XrCompositor::ProcessEvent: Start 04-10 15:13:21.462 28017 18113 I XrCompositor::ProcessEvent: Start 04-10 15:13:21.462 28017 18113 I XrCompositor::ProcessEvent: Start 04-10 15:13:21.462 28017 18113 E XrCompositor::ProcessEvent: XrCompositor is not initialized 04-10 15:13:21.462 28017 18113 E XrCompositor::ProcessEvent: XrCompositor is not initialized
Do you get this error with the pre-built samples or an apk that you built yourself?
We are having an issue with plug-off behaviour with the A3 glasses that is causing some runtime instability. If you would not get the log the first time after restarting, it would indicate that the glasses were removed before gracefully shutting down your application. Do you get this log every time?
Not every time.When I restart my phone and connect to the AR device, then open the Unity Snapdragon Spaces Samples app installed from Snapdragon Spaces SDK for Unity, this error rdid not occur. But the app crashed and the AR glasses turned black. When I try to Force Stop the Unity Snapdragon Spaces Samples and open it again, this error occurs.
By the way, I have tried building the sample.When I open this application, I also get "XrCompositor is not initialized".
I think you are experiencing the instability issue when unplugging the glasses or not gracefully shutting down the samples application.
For now we recommend:
- Gracefully shut down your application by calling Application.Quit in Unity or QuitGame in Unreal
- For the samples you should be able to gracefully quit by holding down the menu button a couple of seconds
- Use adb wireless instead of a cable Android Debug Bridge (adb) | Android Studio | Android Developers to avoid unplugging your glasses
- Restart your phone if you accidentally closed your application with another method than beforementioned.
(- I have seen a force stop of your respective application and the Spaces Services working as well, though shutdown is recommended for now)
Please take these into consideration and see if there is some improvement with stability.
Lvssstty
I follow the tutorial to run Snapdragon Spaces applications on my Motorola edge+ and ThinkReality A3 glass.When I open the unity samples I can see the controller, but after a while, the application crashed. And I can't see anything on my AR glasses. I have tried reinstalling the application(tried 0.12.1 and 0.11.1) and restarting my phone, but it still not work.
here is the logcat:
Thank you!