[GEAR VR] Blackscreen when switching from 4.10 to 4.11

Hi,

I’m trying to build my game with the 4.11 for testing fix of Oculus Audio plugin and new Oculus SDK (which is necessary for submission to Oculus)

The build works fine since 4.7 to 4.10 (also when it was 4.10 preview) but when trying to build for 4.11 (any preview) we have a black screen.

Is there any solution for this? (temporary fix, workaround? etc…)

this is the log:

thanks!

--------- beginning of system

--------- beginning of main

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 9, 0, tid = 21893

D/UE4 (21869): ==================================> Inside onStart function in GameActivity

D/UE4 (21869): Case APP_CMD_RESUME

D/UE4 (21869): App is running in Landscape

D/UE4 (21869): ==============> Resuming main init

D/UE4 (21869): ==============> GameActive.onResume complete!

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 7, 0, tid = 21893

D/UE4 (21869): Case APP_CMD_PAUSE

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 6, 0, tid = 21893

D/UE4 (21869): ==============> GameActive.onPause complete!

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 10, 0, tid = 21893

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 12, 0, tid = 21893

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 8, 0, tid = 21893

D/UE4 (21869): ==============> GameActive.onStop complete!

D/UE4 (21869): Case APP_CMD_TERM_WINDOW, tid = 21893

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 3, 0, tid = 21893

D/UE4 (21869): LogAndroidEvents: EnqueueAppEvent : 5, 0, tid = 21893

D/UE4 (24538): In the JNI_OnLoad function

D/UE4 (24538): Path found as ‘/storage/emulated/0’

D/UE4 (24538): Font Path found as ‘/system/fonts/’

D/UE4 (24538): In the JNI_OnLoad function 5

D/UE4 (24538): Entering native app glue main function

D/UE4 (24538): Created event thread

D/UE4 (24538): Entering event processing thread engine entry point

D/UE4 (24538): Entered AndroidMain()

D/UE4 (24538): Prepared looper for event thread

D/UE4 (24538): Passed callback initialization

D/UE4 (24538): Controller interface supported

D/UE4 (24538): Passed sensor initialization

D/UE4 (24538): Found DepthBufferPreference = 16

D/UE4 (24538): Found bPackageDataInsideApk = 1

D/UE4 (24538): Found ProjectName = MOTEL

D/UE4 (24538): Found bHasOBBFiles = 1

D/UE4 (24538): Found bVerifyOBBOnStartUp = false

D/UE4 (24538): UI hiding set to false

D/UE4 (24538): Found GearVR mode = vr_only

D/UE4 (24538): Asking if osOBBInAPK? true

D/UE4 (24538): ExternalFilePath found as ‘/storage/emulated/0/Android/data/com.ParallelStudio.MOTEL/files’

D/UE4 (24538): App is running in Landscape

D/UE4 (24538): Android version is 5.1.1

D/UE4 (24538): Android manufacturer is samsung

D/UE4 (24538): Android model is SM-G920F

D/UE4 (24538): OS language is set to fr_FR

D/UE4 (24538): ==============> GameActive.onCreate complete!

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 9, 0, tid = 24557

D/UE4 (24538): ==================================> Inside onStart function in GameActivity

D/UE4 (24538): Case APP_CMD_RESUME

D/UE4 (24538): App is running in Landscape

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 7, 0, tid = 24557

D/UE4 (24538): ==============> Resuming main init

D/UE4 (24538): Final commandline:

D/UE4 (24538): Created sync event

D/UE4 (24538): Mounted OBB ‘main.obb.png’

D/UE4 (24538): ==============> GameActive.onResume complete!

D/UE4 (24538): Case APP_CMD_INIT_WINDOW

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 0, 4106934280, tid = 24557

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 11, 0, tid = 24557

D/UE4 (24538): EGL Extensions:

D/UE4 (24538): EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable

D/UE4 (24538): ***** RequestedContentScaleFactor different 0.000000 != -1.000000, not using res cache

D/UE4 (24538): ***** Window different, not using res cache

D/UE4 (24538): ***** WindowWidth is -1, not using res cache

D/UE4 (24538): FAndroidGPUInfo

D/UE4 (24538): AndroidEGL::InitSurface 0, 0

D/UE4 (24538): ***** RequestedContentScaleFactor different 0.000000 != -1.000000, not using res cache

D/UE4 (24538): ***** Window different, not using res cache

D/UE4 (24538): ***** WindowWidth is -1, not using res cache

D/UE4 (24538): Case APP_CMD_PAUSE

D/UE4 (24538): ==============> GameActive.onPause complete!

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 6, 0, tid = 24557

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 12, 0, tid = 24557

D/UE4 (24538): LogAndroidEvents: EnqueueAppEvent : 8, 0, tid = 24557

D/UE4 (24538): ==============> GameActive.onStop complete!

It seems working “better” when removing MOBILE HDR (I said better because some things doesn’t work like on the 4.10 (some broken inputs, broken camera position (height on 0), etc…)

Still have the same problem with the last 4.11 release.

I also have the same issue moving a project from 4.10 to 4.11. I have to disable Mobile HDR or I get a black screen.

I also have a black screen but going from 4.9.2 to 4.11 on my android game build. All that shows up on my S6 phone is a circular small icon with three dots, ,much like the android menu button but nothing else. It works fine in the editor and ran fine on my phone in the 4.9.2 version.

Have you tried to disable the mobile HDR flag in the rendering settings?
It works for me, but it’s not the solution I’ve needed ^^

I managed to fix it. Here’s how:

  • Deleted the android folders within the project/build folder.
  • Within project settings I regenerated the android platform files.
  • Also worth mentioning is to ensure the minimum and target SDK’s are set to 19 (for Gear VR).
  • Within the Android SDK screen set the NDK API level to android-19.

Is still doesn’t work with me :frowning:
Have you mobile HDR activated in your case?

I tried TutorJay’s instructions and they didn’t work for me. I also updated the android sdk using the defaults and I still get a black screen with mobile hdr enabled. Also, when I run the app in gear developer mode, the console won’t open.

Idem with 4.11.1

Hey Rooan,

Mobiel HDR is not supported by Gear VR at the current point in time. In order for you to get your project to successfully run on Gear VR you will need to disable Mobiel HDR. If your project previously worked with Mobiel HDR enable this was a fluke as Gear VR was never intended to work with Mobiel HDR enabled.

Cheers-

Sam

Hi Sam,

Thanks for your answer!
Yes, our project works well with mobile HDR enabled since 4.8 version^^
So ok we will work without that. Maybe it could be great to fail the build or add a tooltip in the mobile HDR setting if this flag is set.

Have a great day!

Hey Roonan,

I will put in a Jira to make sure this comes up as a tool tip somewhere.

Cheers-

Sam