jcm01 Posted April 14, 2023 Share Posted April 14, 2023 So, I just received an xr elite device and I am trying to test out some of the features and all but for some reason If I build even the simplest scene with a simple XRRig using WaveXR, the build does not even launch at all but if I build that same scene by using openxr instead it works fine. The same thing happens if I try to run sample scenes. This is what I got in the logs: 04-14 12:38:15.232 10067 23768 23768 E AndroidRuntime: FATAL EXCEPTION: main 04-14 12:38:15.232 10067 23768 23768 E AndroidRuntime: Process: com.UnityTechnologies.com.unity.template.urpblank, PID: 23768 04-14 12:38:15.232 10067 23768 23768 E AndroidRuntime: java.lang.NoSuchMethodError: No direct method <init>(Landroid/app/Activity;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in base.apk) 04-14 12:38:15.232 10067 23768 23768 E AndroidRuntime: at com.htc.vr.unity.WVRUnityVRActivity.onCreate(WVRUnityVRActivity.java:297) I am more interested with what waveXR has to offer especially Scene Understanding as my team is mainly doing Mixed reality stuff and openXR does not seem to have any sort of spatial mapping features unless we do it ourselves from scratch. Is waveXR even supported for this new XR elite device? Link to comment Share on other sites More sharing options...
Alex_HTC Posted April 17, 2023 Share Posted April 17, 2023 @jcm01 wave sdk is definitely supported on the new devices!https://github.com/ViveDeveloperRelations/ScenePerceptionDemo is an example of a project that works out of the box Make sure that in the project settings->xr settings menu "wavexr" is enabled and that other options are disabled The error posted indicates that the wavexr plugin didn't run it's code to hook this up, which happens when this option is not enabled Link to comment Share on other sites More sharing options...
jcm01 Posted April 18, 2023 Author Share Posted April 18, 2023 (edited) Hi @Alex_HTC This is not the issue as I have everything checked properly. I found the issue. Somehow build won't work when building in Unity 2022 where as when I build with Unity 2021 it works fine. Is it known that unity 2022 is not supported or there are other settings required not mentioned in any tutorial? Edited April 18, 2023 by jcm01 Link to comment Share on other sites More sharing options...
Alex_HTC Posted April 18, 2023 Share Posted April 18, 2023 @jcm01We build apps with 2022 as well Does the problem happen in the sample project linked? I'll re-run the example to be sure but we have not had a problem with wave in 2022 except for some older and non-lts unity builds. Link to comment Share on other sites More sharing options...
jcm01 Posted April 19, 2023 Author Share Posted April 19, 2023 @Alex_HTC Thanks for checking. Yer even the very basic scene with a simple XRRig builds will crash as well as the sample provided called ScenePerceptionDemo(MeshAnchor). But note this seem to be when using waveXR and the version I encounter this is Unity 2022.2.3f1 Link to comment Share on other sites More sharing options...
Alex_HTC Posted April 19, 2023 Share Posted April 19, 2023 @jcm01 Can you try with a more recent 2022, there may be bugs in an early version like that. Also try the planeanchor scene as the scenemesh work is due to be released shortly, so there may be issues with that scene Link to comment Share on other sites More sharing options...
Lacota Posted April 19, 2023 Share Posted April 19, 2023 I have the same issue with Unity 2022.2.15, WaveXR & Vive XR Elite. Build is fine. App shows up in my library. When I try to launch it, it brings up the loading screen for a second then falls back to the library. Don't know how to get a detailed log from here. Link to comment Share on other sites More sharing options...
Lacota Posted April 20, 2023 Share Posted April 20, 2023 I tried a second project and have the same issue. I also tried the ScenePerceptionDemo mentioned above but get a gradle error and can't build no matter which version of Unity I use. I suspect the root cause of the Viveport launch problem is Android but am unable to isolate it at this time. Link to comment Share on other sites More sharing options...
psychicvrlab Posted April 20, 2023 Share Posted April 20, 2023 @Alex_HTC I also have difficulty to use WaveXR Plugin SDK with Unity 2022.2.10, tested with VIVE Flow. I found that the same SDK actually works with Unity 2022.1.24. So, it may be like that Unity 2022.1.x is OK but Unity 2022.2.x is NG. This is just my guessing, but Unity 2022.1.x and Unity 2022.2.x are different in JDK version (8 vs 11) and the result may be affected by this change. Link to comment Share on other sites More sharing options...
Alex_HTC Posted April 24, 2023 Share Posted April 24, 2023 @psychicvrlabIt looks like there is an issue in 2022, it's been reported at this point@Tony PH Lin may have more information Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now