Android crash on loading scene by script.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DriNeo
:warning: Old Version Published before Godot 3 was released.

My issue is explained here.

The phone was updated to Android 4.1 today, but the issue stills here.

I need a workaround. My project makes no sense without a touch screen and some scenes need to be loaded from script.

One finding: with “load” instead of “preload” the project runs but the scene is completely missing.

Can you give some logcat output?

Bojidar Marinov | 2016-03-24 13:09

I’m not accustomed to use adb sorry if it’s not as precise as intended.

Here some of the last lines copied from adb logcat output.

I/godot   ( 3836): ←[0;31m   At: core/io/resource_loader.cpp:218.←[0m
I/godot   ( 3836): ←[1;35mSCRIPT ERROR: GDScript::load_byte_code: ←[0m←[1mParse
Error: Can't preload resource at path: /PauseMenu/Menu.tscn
I/godot   ( 3836): ←[0;35m   At: res://Scene1/new_scene.gdc:5.←[0m
I/godot   ( 3836): ←[1;31mERROR: load_byte_code: ←[0m←[1mMethod/Function Failed,
 returning: ERR_PARSE_ERROR
I/godot   ( 3836): ←[0;31m   At: modules/gdscript/gd_script.cpp:2065.←[0m
I/godot   ( 3836): ←[1;31mERROR: load: ←[0m←[1mCondition ' err!=OK ' is true. re
turned: RES()
I/godot   ( 3836): ←[0;31m   At: modules/gdscript/gd_script.cpp:2800.←[0m
I/godot   ( 3836): ←[1;31mERROR: load: ←[0m←[1mMethod/Function Failed, returning
: RES()
I/godot   ( 3836): ←[0;31m   At: core/io/resource_loader.cpp:218.←[0m
I/godot   ( 3836): ←[1;31mERROR: poll: ←[0m←[1mMethod/Function Failed, returning
: error
I/godot   ( 3836): ←[0;31m   At: core/io/resource_format_binary.cpp:681.←[0m
I/godot   ( 3836): ←[1;31mERROR: load: ←[0m←[1mCondition ' err!=OK ' is true. re
turned: RES()
I/godot   ( 3836): ←[0;31m   At: core/io/resource_loader.cpp:142.←[0m
I/godot   ( 3836): ←[1;31mERROR: load: ←[0m←[1mMethod/Function Failed, returning
: RES()
I/godot   ( 3836): ←[0;31m   At: core/io/resource_loader.cpp:218.←[0m
I/godot   ( 3836): ←[1;31mERROR: start: ←[0m←[1mCondition ' !scene ' is true. re
turned: false

DriNeo | 2016-03-24 18:48

:bust_in_silhouette: Reply From: DriNeo

PC allows to use paths without " res:// " but not Android.

The corrected paths fixed the problem on my little example project, but not in my real project !

I changed the main scene for every scene of the project and run it on Android, to find the broken scene. And I threw it to fix the issue. I didn’t really understand the problem but I can work now.
Android needs to be more rigorous than on PC.