googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.1k forks source link

iOS Black screen on start #1023

Open sonostrano opened 5 years ago

sonostrano commented 5 years ago

Hello! When I start my app I can only see a black screen. Unity splash screen is not displayed and I can't do anything. The app doesn't crash, but I can only see black. Unity 2018.2.5f1 Iphone 5 iOS 9.3

EDIT: this is xcode log

Apr 18 10:53:09  testapp[479] <Info>:  - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
CrashReporter: initialized
2019-04-18 10:53:09.714 testapp[479:186605] Built from '2018.2/release' branch, Version '2018.2.5f1 (3071d1717b71)', Build type 'Release', Scripting Backend 'il2cpp'
2019-04-18 10:53:09.727 testapp[479:186605] -> registered mono modules 0x1aeeb50
-> applicationDidFinishLaunching()
-> applicationDidBecomeActive()
Renderer: PowerVR SGX 543
Vendor:   Imagination Technologies
Version:  OpenGL ES 2.0 IMGSGX543-124.1
GLES:     2
GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_comp

ression_pvrtc 
OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level  <OpenGL ES 2.0> ; Context handle 392932848
Initialize engine version: 2018.2.5f1 (3071d1717b71)
2019-04-18 10:53:12.136 testapp[479:186605] INFO [vr/gvr/capi/src/gvr.cc:116] Initialized GVR version 1.120.0
2019-04-18 10:53:12.280 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:451] Creating swap chain with id: [1]
2019-04-18 10:53:12.280 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:455]   BufferSpec 0: Size=V[771, 858], ColorFormat=Rgba8888, DepthFormat=<UNKNOWN>, Samples=0, Views=1
2019-04-18 10:53:12.280 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:455]   BufferSpec 1: Size=V[771, 858], ColorFormat=Rgba8888, DepthFormat=<UNKNOWN>, Samples=0, Views=1
Created eye textures with a "separate" layout.  The "multi-pass" stereo mode will be used.

(Filename:  Line: 2182)

2019-04-18 10:53:12.460 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:451] Creating swap chain with id: [4]
2019-04-18 10:53:12.460 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:455]   BufferSpec 0: Size=V[540, 601], ColorFormat=Rgba8888, DepthFormat=<UNKNOWN>, Samples=0, Views=1
2019-04-18 10:53:12.460 testapp[479:186605] INFO [vr/gvr/hmd/cardboard/cardboard_api_impl.cc:455]   BufferSpec 1: Size=V[540, 601], ColorFormat=Rgba8888, DepthFormat=<UNKNOWN>, Samples=0, Views=1
testapp was compiled with optimization - stepping may behave oddly; variables may not be available.
(lldb) 

If build the app as hybrid with xr support set on None and Cardboard, it starts, but when I switch to Cardboard the app freezes and I can't do anything and Xcode displays this log

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
AppManager:SetupBtnVR()
<SwitchToVR>c__Iterator0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)

It is also happening if I build the HelloVR scene

Please anybody help me :)

TheFishInABowl commented 5 years ago

This happens on my Mirage solo as well. The projects work's fine in unity 2018.3.10f, (i bet all versions of 2018.3) But in 2019.1 the screen's just black.

dermarder commented 5 years ago

I have the same problem on my iPhone 5S with the new unity 2018.4 LTS. Hope we can find a solution to fix this.

ScottS2017 commented 4 years ago

UPDATE - SOLVED (at least for me): The issue was because Vulcan was enabled under Other Settings -> Graphics APIs

I removed Vulcan from the list and now everything's fine.


It's not just iOS.

This issue is also happening on my Galaxy S9 in Android, even with the VideoDemo sample scene.

Again, not even the splash screen appears. I do know the app is running because I get the X, the settings gear and the alignment mark at the bottom. Everything else is just black.

j-funk commented 4 years ago

This is happening with my Pixel 3 and Unity 2019.1. Not just iOS, someone should change the title.