Skip to content

Gfx device initialization failed #54

Closed
@stein84

Description

@stein84

I'm using Firebase SDK 1.1.1 and Unity 5.3.6f1. Xcode 8.2.1 and iOS environment.
(device - 5 with iOS 9.2.3 , 6 plus with 10.1)
When libMessaging.a included in my project, the app crashes with 'gfx device initialization failed' message.
It's pretty odd that Firebase affects GL initialization but it happens. When building after removing libMessaging.a, this issue never occurs.
quickstart sample won't reproduce this issue, but there's no difference between my project settings and sample's one and it seems I'm not the only person who suffers from this, due to this link below
http://answers.unity3d.com/questions/1283609/gfx-device-intialization-failed-and-crash-on-ios-s.html#comment-1307040

followings are logs from both quickstart sample and my project.

  1. quickstart log

2017-02-02 14:24:26.297 top[261:81829] FCM: Loading UIApplication FIRFCM category
2017-02-02 14:24:26.328 top[261:81829] Firebase automatic screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO in the Info.plist

2017-02-02 14:24:26.440 top[261:81829] -> registered mono modules 0xdc5fc0
2017-02-02 14:24:27.291: <FIRMessaging/INFO> FIRMessaging library version 1.2.0
-> 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
Initialize engine version: 5.3.6f1 (29055738eb78)
UnloadTime: 5.622625 ms

  1. my project's log

2017-02-02 14:42:37.050 daut[266:84318] FCM: Loading UIApplication FIRFCM category
2017-02-02 14:42:37.086 daut[266:84318] Firebase automatic screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO in the Info.plist

2017-02-02 14:42:37.195 daut[266:84318] -> registered mono modules 0x16b7f20
2017-02-02 14:42:37.640: <FIRMessaging/INFO> FIRMessaging library version 1.2.0
-> applicationDidBecomeActive()
gfx device intialization failed

any advice on this ? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions