godot: Mono 3.2 Game on Android crash with custom export template

Godot version: Godot Mono 3.2 Stable

OS/device including version: macOS high sierra

Issue description: To reduce APK size of the game, I created android custom template on Ubuntu 18.04. I could not create it on Mac and I already raised bug for it: https://github.com/godotengine/godot/issues/36508

Steps to reproduce: 1 - Open Godot Mono 3.2 Stable on Mac 2 - Use Android export template which is created in Ubuntu 18.04 3 - Export the game for Android (Debug or Release) 4 - Use adb install to install game into the phone.

When i open the game, It crashes.

Logcat output with Debug apk:

2020-03-01 01:37:01.314 652-1260/system_process I/ActivityManager: Start proc 21558:game.package/u0a128 for activity game.package/com.godot.game.GodotApp
2020-03-01 01:37:02.406 21558-21598/game.package I/godot: Loading Android module: org/godotengine/godot/Firebase
2020-03-01 01:37:02.426 21558-21598/game.package I/godot: Loading Android module: org/godotengine/godot/SQLBridge
2020-03-01 01:37:02.441 21558-21598/game.package D/godot: SQLBridge:Initialized
2020-03-01 01:37:02.441 21558-21598/game.package I/godot: Loading Android module: org/godotengine/godot/GodotPaymentV3
2020-03-01 01:37:02.452 21558-21598/game.package I/godot: Loading Android module: org/godotengine/godot/GodotShare
2020-03-01 01:37:02.527 21558-21598/game.package I/godot: Godot Engine v3.2.stable.mono.custom_build.4e7d75ccd - https://godotengine.org
2020-03-01 01:37:02.551 21558-21598/game.package I/godot: OpenGL ES 2.0 Renderer: Adreno (TM) 330
2020-03-01 01:37:02.652 21558-21598/game.package I/godot:  
2020-03-01 01:37:02.919 21558-21598/game.package E/godot: **ERROR**: Mono: Core API hash mismatch.
2020-03-01 01:37:02.920 21558-21598/game.package E/godot:    At: modules/mono/mono_gd/gd_mono.cpp:465:_init_godot_api_hashes() - Mono: Core API hash mismatch.
2020-03-01 01:37:02.922 21558-21598/game.package I/godot: Mono: Logfile is: /data/data/game.package/files/mono/mono_logs/2020_03_01 01.37.02 (21558).txt
2020-03-01 01:37:03.063 21558-21598/game.package E/godot: **ERROR**: The assembly 'GodotSharp' is out of sync.
2020-03-01 01:37:03.063 21558-21598/game.package E/godot:    At: modules/mono/mono_gd/gd_mono.cpp:926:_load_api_assemblies() - The assembly 'GodotSharp' is out of sync.
2020-03-01 01:37:03.063 21558-21598/game.package E/godot: **ERROR**: FATAL: Method failed.
2020-03-01 01:37:03.063 21558-21598/game.package E/godot:    At: modules/mono/mono_gd/gd_mono.cpp:937:_load_api_assemblies() - FATAL: Method failed.
2020-03-01 01:37:03.135 652-2189/system_process W/InputDispatcher: channel '468d499 game.package/com.godot.game.GodotApp (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2020-03-01 01:37:03.135 652-2189/system_process E/InputDispatcher: channel '468d499 game.package/com.godot.game.GodotApp (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-03-01 01:37:03.139 652-4407/system_process I/WindowManager: WIN DEATH: Window{468d499 u0 game.package/com.godot.game.GodotApp}
2020-03-01 01:37:03.139 652-4407/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '468d499 game.package/com.godot.game.GodotApp (server)'
2020-03-01 01:37:03.140 652-13070/system_process W/ActivityManager: Force removing ActivityRecord{8230fac u0 game.package/com.godot.game.GodotApp t192}: app died, no saved state
2020-03-01 01:37:03.223 652-1257/system_process I/ActivityManager: Displayed game.package/com.godot.game.GodotApp: +1s930ms

Logcat output with Release apk:

2020-03-01 01:14:45.356 19881-19922/? I/godot: Loading Android module: org/godotengine/godot/Firebase
2020-03-01 01:14:45.366 19881-19922/? I/godot: Loading Android module: org/godotengine/godot/SQLBridge
2020-03-01 01:14:45.367 19881-19922/? D/godot: SQLBridge:Initialized
2020-03-01 01:14:45.367 19881-19922/? I/godot: Loading Android module: org/godotengine/godot/GodotPaymentV3
2020-03-01 01:14:45.369 19881-19922/? I/godot: Loading Android module: org/godotengine/godot/GodotShare
2020-03-01 01:14:45.422 19881-19922/? I/godot: Godot Engine v3.2.stable.mono.custom_build.4e7d75ccd - https://godotengine.org
2020-03-01 01:14:45.435 19881-19922/? I/godot: OpenGL ES 2.0 Renderer: Adreno (TM) 330
2020-03-01 01:14:45.552 19881-19922/? I/godot:  
2020-03-01 01:14:45.734 19881-19922/? I/godot: Mono: Logfile is: /data/data/game.package/files/mono/mono_logs/2020_03_01 01.14.45 (19881).txt
2020-03-01 01:14:45.867 19881-19922/? E/godot: **ERROR**: The assembly 'GodotSharp' is out of sync.
2020-03-01 01:14:45.867 19881-19922/? E/godot:    At: modules/mono/mono_gd/gd_mono.cpp:926:_load_api_assemblies() - The assembly 'GodotSharp' is out of sync.
2020-03-01 01:14:45.867 19881-19922/? E/godot: **ERROR**: FATAL: Method failed.
2020-03-01 01:14:45.867 19881-19922/? E/godot:    At: modules/mono/mono_gd/gd_mono.cpp:937:_load_api_assemblies() - FATAL: Method failed.
2020-03-01 01:14:45.921 652-3426/system_process I/WindowManager: WIN DEATH: Window{a95de55 u0 game.package/com.godot.game.GodotApp}
2020-03-01 01:14:45.923 652-3667/system_process W/ActivityManager: Force removing ActivityRecord{3557d6 u0 game.package/com.godot.game.GodotApp t189}: app died, no saved state
2020-03-01 01:14:45.942 310-5913/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{1ffd944 token=Token{cfdca57 ActivityRecord{3557d6 u0 game.package/com.godot.game.GodotApp t189}}}#0
2020-03-01 01:14:46.008 652-1257/system_process I/ActivityManager: Displayed game.package/com.godot.game.GodotApp: +991ms

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments