Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Crash after initialising GPG Services with 2018.2.12f1

Discussion in 'Android' started by bajeo88, Oct 17, 2018.

  1. bajeo88

    bajeo88

    Joined:
    Jul 4, 2012
    Posts:
    64
    Hi,

    During the startup of my App I connect to the GPG services, my app then crashes.

    I am using the package from the following location: https://github.com/playgameservices/play-games-plugin-for-unity

    Any help in resolving the crash would be of great help as I have had this for a few days now.

    If i run the build as Arm64 i get the following error when trying to connect to the GPGs
    "Failed to login: Unable to load DLL 'gpg': The specified module could not be found."
    My guess is the plugin does not support 64 bit?

    If i build as Armv7 I get a crash (Code and logs below).

    Code (CSharp):
    1. // Use this for initialization
    2.     public void Init()
    3.     {
    4.         try
    5.         {
    6.             Debug.Log("Creating GPG config");
    7.             PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
    8.             Debug.Log("Initialising GPG");
    9.             PlayGamesPlatform.InitializeInstance(config);
    10.             Debug.Log("Activating GPG");
    11.             PlayGamesPlatform.Activate();
    12.  
    13.             LogIn();
    14.  
    15.             Core.Score.OnHighScoreAchieved += OnHighScoreAchieved;
    16.         }
    17.         catch(System.Exception e)
    18.         {
    19.             Debug.LogError("Failed to login: " + e.Message);
    20.         }
    21.     }
    22.  
    23.     private void LogIn()
    24.     {
    25.         Debug.Log("Logging into GPG");
    26.         Social.localUser.Authenticate(success => { Debug.Log("User Login: " + success); });
    27.     }
    Code (CSharp):
    1. --------- beginning of crash
    2. --------- beginning of system
    3. --------- beginning of main
    4. 10-17 13:26:17.211 28635 28661 I Unity   : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 1562mb
    5. 10-17 13:26:17.212 28635 28661 I Unity   : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
    6. 10-17 13:26:17.212 28635 28661 I Unity   : ApplicationInfo com.xxxxxx.xxxxxxxxx version 0.1 build 40feb0b2-f87d-4f14-bfaa-138351480fd4
    7. 10-17 13:26:17.212 28635 28661 I Unity   : Built from '2018.2/release' branch, Version '2018.2.12f1 (0a46ddfcfad4)', Build type 'Release', Scripting Backend 'il2cpp'
    8. 10-17 13:26:17.361 28635 28661 D Unity   :  GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_render_to_texture GL_EXT_mul
    9. 10-17 13:26:17.361 28635 28661 D Unity   : tisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance
    10. 10-17 13:26:17.361 28635 28661 D Unity   :  GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation GL_KHR_robust_buffer_access_behavior
    11. 10-17 13:26:19.810 28635 28661 I Unity   : Creating GPG config
    12. 10-17 13:26:19.810 28635 28661 I Unity   : Initialising GPG
    13. 10-17 13:26:19.811 28635 28661 I Unity   : Activating GPG
    14. 10-17 13:26:19.811 28635 28661 I Unity   : Logging into GPG
    15. 10-17 13:26:19.848 28635 28661 I Unity   : Building GPG services, implicitly attempts silent auth
    16. 10-17 13:26:20.205 28635 28661 W Unity   : !!! [Play Games Plugin DLL] 10/17/18 13:26:20 +01:00 WARNING: Creating new PlayGamesPlatform
    17. 10-17 13:26:20.205 28635 28661 W Unity   :
    18. 10-17 13:26:20.205 28635 28661 W Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    19. 10-17 13:26:20.205 28635 28661 W Unity   :
    20. 10-17 13:26:20.205 28635 28661 I Unity   : Environment loaded: Default
     
  2. andrew_2992

    andrew_2992

    Joined:
    Jun 27, 2015
    Posts:
    6
    Did you ever find a resolution to this problem?
     
  3. bajeo88

    bajeo88

    Joined:
    Jul 4, 2012
    Posts:
    64
    It was a while ago, I did get it sorted in the end but cant remember specifically what fixed it. It was something super small that fixed it if i remember correctly (manually editing a manifest file or something like that). If i suddenly remember ill post another reply or edit this one.

    Sorry cant be more help!!
     
    tmendez likes this.