Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Bug when build a no-vr build with vive wave xr plugin package exists.


mobfish_cai
 Share

Recommended Posts

Unity 2019.4.8

I have a workflow that project change its setting and vr target itself during build or cloud build. Due to  very complicated reason, in local build, I have all the supported vr packages included whenever the my build target is, even for no-vr build.

In this case, I want to build a no vr version for android, with Vive Wave XR Plugin is included in the package. In Unity Setting, "Initialize XR on Startup" is disabled, and nothing in "plugin providers" are selected, I also make sure that xr loaders list is cleared in script. When the apk is built and installed, I noticed that the screen is totally black, and no errors in log, and the logs from app shows up properly, as if the app is running normally without issue. It's just an empty screen. 

At the same time, there is a log spam which should not exist:

2020-08-21 15:35:26.658 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:26.773 31419-31478 I/chatty: uid=10316(mob.fish.threesixty.player.develop.cai) UnityGfxDeviceW identical 7 lines
2020-08-21 15:35:26.789 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:26.806 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.255 31419-31478 I/chatty: uid=10316(mob.fish.threesixty.player.develop.cai) UnityGfxDeviceW identical 27 lines
2020-08-21 15:35:27.271 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.290 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.307 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.323 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.788 31419-31478 I/chatty: uid=10316(mob.fish.threesixty.player.develop.cai) UnityGfxDeviceW identical 28 lines
2020-08-21 15:35:27.805 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:27.821 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:28.303 31419-31478 I/chatty: uid=10316(mob.fish.threesixty.player.develop.cai) UnityGfxDeviceW identical 29 lines
2020-08-21 15:35:28.319 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:28.335 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4
2020-08-21 15:35:29.216 31419-31478 I/chatty: uid=10316(mob.fish.threesixty.player.develop.cai) UnityGfxDeviceW identical 53 lines
2020-08-21 15:35:29.234 31419-31478 I/XRPreInitPrvdr: GetPreInitFlags 4

I disabled the init xr on startup in setting, so this XRPreInitPrvdr should not run at all.

When I remove the vive wave xr plugin, this issue is gone and everything works fine, so I believe the source of the issue is in the vive wave xr package. And for further investigation, I made another script that removes unnecessary .so (library) files in this gradle build folder during build process (using IPostGenerateGradleAndroidProject), Temp\gradleOut\unityLibrary\src\main\jniLibs\arm64-v8a . Turns out, issue solved. In this case, 2 library files in the Wave XR are removed, libGfxWXRUnity.so and libwvrunityxr.so

Can you make these libraries not to load when xr is disabled? I also noticed that libGfxWXRUnity.so is set to "Load on startup", is this the cause?

Link to comment
Share on other sites

@Corvus
I'm talking about the new XR Management System, and this VIU is about the legacy Unity VR Support, which is not suitable for this case, besides, I have my own solution otherwise this report won't be this detailed. I'm not a fan for another unnecessary plugin.

I found a workaround, that remove these .so files when build it. It would be nice if you can fix it on your side.

Edited by mobfish_cai
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...