Workaroud for UE-65983

Ran into this bug (UE-65983) while trying to package a project for use with google-vr. Below is info that might be useful for anyone else running into it.

In an attempt to work around it I was trying to get the quick start guide project to run correctly on my android phone.

Possible workarounds:

  1. Use old version of engine. I had 4.18 installed and trying that everything is fine.
  2. Replace google-vr plugin folder. Unforuntaly I had already created the project I wanted to package and unreal isn’t able to migrate assets to older versions of editor. I found that if you just replace the plugin folder "C:\Program Files\Epic Games\UE_4.21\Engine\Source\ThirdParty\GoogleVR" with the corresponding one in 4.18 everything works ok too.

You did rebuild 4.21 with the 4.18 GoogleVR source correct? I am having this issue too, but I’m getting build failures when trying to replace the 4.21 GoogleVR source with the 4.18 Source.

I’m not quite sure I understand what you mean. If you mean did I build engine from source when I was working round this issue then nope.

I was using the launcher version of 4.21 and simply replaced the folders I described above in explorer and then when packaging my project the errors went away.

And you’re sure you replaced the GoogleVR folder under Engine/Source and not the Plugins folder? Doesn’t seem to make much sense, but I’m pretty desperate for a solution, I’m giving it another try.

Yep I only replaced the folder in the Source directory. As in the directory I listed in my original post is correct. I guess it is a bit surprising it worked when I’d left the one in the plugins folder alone. Two people have up-voted the question so I’d assumed it worked for them too. Sorry I can’t help!

Yeah, this didn’t work for me. I ultimately just had to recreate my project in 4.18; a bit of a hassle, but took me 2 days instead of waiting any more. So for now it seems like GoogleVR development for 4.20 onward is a bad idea.

OMG IT WORKS! IT ACTUALLY WORKS!!
Install UE 4.22 from launcher, then 4.18 from launcher, delete GoogleVR folder from 4.22 Engine\Source\ThirdParty and copy GoogleVR folder from 4.18 directory! Thank you so much dude!

You are welcome!

Does it also workaround: Unreal Engine Issues and Bug Tracker (UE-70092) ?
will have to try this soon :slight_smile:

I’ve seen this one fixed by commenting out few lines of code at the plugin, they also used googleVR source to fix UE-65983.

Just tested it and unfortunately Unreal Engine Issues and Bug Tracker (UE-70092) still occurs :frowning: You mentioned comment out a few lines of code - you don’t mean this do you:
https://github.com/googlevr-unreal/UnrealEngine/issues/38#issuecomment-457787297
because that is not fixing 70092. It only fixes this one: Unreal Engine Issues and Bug Tracker (UE-46640)

google vr plugin in old 4.18 vrsion can’t work at 26 target api. 26 level - minimum for uploading app to google play… In newest version of google vr plugin this was fixed, but the app crashes immediately on startup if smartphone don’t support daydream vr. This happens even if the application is configured only for cardboard VR.

I used the solution that was offered here (https://github.com/googlevr-unreal/UnrealEngine/issues/38). This worked, but only on version of 4.20 (I found the “if” block at line 160 - not at 198). But I need the engine version not lower 4.21. On version 4.21, I could not apply this fix… today I decided to try to replace googleVR folder with the engine version 4.21 folder from the old version 4.20, which I managed to fix it. And so I got 4.21 version of the engine with a working plugin from version 4.20! I did not have to rebuild the engine - I just immediately compiled the game and it worked! Maybe this fix work with version 4.22 as well…

Steps:

  1. download 4.20.2 branch googleVR from here (https://github.com/googlevr-unreal/UnrealEngine/releases)
  2. comment out a few lines as indicated here (https://github.com/googlevr-unreal/UnrealEngine/issues/38)
  3. build the engine
  4. download 4.21 Unreal Engine source code
  5. apply step “2” to 4.21 engine
  6. build the engine
  7. replace google vr folder of ue 4.21 by google vr folder from ue 4.20
  8. run 4.21 engine and compile the game

(sorry, i bad speak english - I’m still learning this language)

Unreal Engine Issues and Bug Tracker (UE-70092) will still occur - but if you’re only interested in cardboard and not Daydream then it’s a good workaround :wink:

I can build my app in 4.22.1 engine version with 4.18 GoogleVR plugin and 26 target api. Works ok, haven’t tried to upload it to the store though.