godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.59k stars 21.27k forks source link

Crash when exporting to Android #14343

Closed jonglae closed 6 years ago

jonglae commented 6 years ago

Operating system or device, Godot version, GPU Model and driver (if graphics related):

ubuntu 16.04 studio

GPU : nvidia GT630

Issue description:

does not export Android Error

Steps to reproduce:

Link to minimal example project:

t_edited_scene=-1 out of size (edited_scene.size()=0)
   At: editor/editor_data.cpp:607.
WARNING: not found: gdnative/singletons
ERROR: _load: DynamicFont uninitialized
   At: scene/resources/dynamic_font.cpp:169.
fragment uses function: zero_if_equal
tf varying: 0 out_color
tf varying: 1 out_velocity_active
tf varying: 2 out_custom
tf varying: 3 out_xform_1
tf varying: 4 out_xform_2
tf varying: 5 out_xform_3
WARNING: not found: gdnative/singletons
WARNING: not found: gdnative/singletons
WARNING: not found: gdnative/singletons
FOUND versionCode
FOUND versionName
FOUND package
version number: 131072
ADDING: AndroidManifest.xml
ADDING: classes.dex
ADDING: lib/x86/libgodot_android.so
ADDING: res/drawable-hdpi-v4/notify_panel_notification_icon_bg.png
ADDING: res/drawable-mdpi-v4/notify_panel_notification_icon_bg.png
ADDING: res/drawable/icon.png
ADDING: res/layout/downloading_expansion.xml
ADDING: res/layout/status_bar_ongoing_event_progress_bar.xml
*******************GORRRGLE***********************
unicode error: invalid skip
unicode error: invalid skip
unicode error: invalid skip
unicode error: invalid skip
unicode error: invalid skip
ADDING: resources.arsc
0 param: --use_apk_expansion
1 param: --apk_expansion_md5
2 param: 9bfb5041dc2c7aad682199bf25908726
3 param: --apk_expansion_key
ERROR: operator[]: FATAL: Index p_index=113 out of size (size()=113)
   At: core/vector.h:137.
handle_crash: Program crashed with signal 4
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7fe1081644b0] (??:0)
[2] Vector<unsigned char>::operator[](int) (/home/buster/go_com/godot3_beta1/core/vector.h:137 (discriminator 7))
[3] EditorExportAndroid::export_project(Ref<EditorExportPreset> const&, bool, String const&, int) (/home/buster/go_com/godot3_beta1/platform/android/export/export.cpp:1564 (discriminator 2))
[4] EditorExportAndroid::run(Ref<EditorExportPreset> const&, int, int) (/home/buster/go_com/godot3_beta1/platform/android/export/export.cpp:1130 (discriminator 4))
[5] EditorRunNative::_run_native(int, int) (/home/buster/go_com/godot3_beta1/editor/editor_run_native.cpp:137)
[6] MethodBind2<int, int>::call(Object*, Variant const**, int, Variant::CallError&) (/home/buster/go_com/godot3_beta1/core/method_bind.gen.inc:1428 (discriminator 19))
[7] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/buster/go_com/godot3_beta1/core/object.cpp:913 (discriminator 1))
[8] Object::emit_signal(StringName const&, Variant const**, int) (/home/buster/go_com/godot3_beta1/core/object.cpp:1194 (discriminator 1))
[9] Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/buster/go_com/godot3_beta1/core/object.cpp:1240)
[10] PopupMenu::activate_item(int) (/home/buster/go_com/godot3_beta1/scene/gui/popup_menu.cpp:889 (discriminator 4))
[11] PopupMenu::_gui_input(Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/scene/gui/popup_menu.cpp:333)
[12] MethodBind1<Ref<InputEvent> const&>::call(Object*, Variant const**, int, Variant::CallError&) (/home/buster/go_com/godot3_beta1/core/method_bind.gen.inc:729 (discriminator 12))
[13] Object::call_multilevel(StringName const&, Variant const**, int) (/home/buster/go_com/godot3_beta1/core/object.cpp:747 (discriminator 1))
[14] Object::call_multilevel(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/buster/go_com/godot3_beta1/core/object.cpp:854)
[15] Viewport::_gui_call_input(Control*, Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/scene/main/viewport.cpp:1466 (discriminator 2))
[16] Viewport::_gui_input_event(Ref<InputEvent>) (/home/buster/go_com/godot3_beta1/scene/main/viewport.cpp:1800 (discriminator 3))
[17] Viewport::input(Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/scene/main/viewport.cpp:2408 (discriminator 2))
[18] Viewport::_vp_input(Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/scene/main/viewport.cpp:1310)
[19] MethodBind1<Ref<InputEvent> const&>::call(Object*, Variant const**, int, Variant::CallError&) (/home/buster/go_com/godot3_beta1/core/method_bind.gen.inc:729 (discriminator 12))
[20] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/buster/go_com/godot3_beta1/core/object.cpp:913 (discriminator 1))
[21] Object::call(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/buster/go_com/godot3_beta1/core/object.cpp:838)
[22] SceneTree::call_group_flags(unsigned int, StringName const&, StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/buster/go_com/godot3_beta1/scene/main/scene_tree.cpp:246)
[23] SceneTree::input_event(Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/scene/main/scene_tree.cpp:403 (discriminator 6))
[24] InputDefault::parse_input_event(Ref<InputEvent> const&) (/home/buster/go_com/godot3_beta1/main/input_default.cpp:322)
[25] OS_X11::process_xevents() (/home/buster/go_com/godot3_beta1/platform/x11/os_x11.cpp:1545 (discriminator 3))
[26] OS_X11::run() (/home/buster/go_com/godot3_beta1/platform/x11/os_x11.cpp:2124)
[27] /home/buster/go_com/godot3_beta1/bin/godot.x11.tools.64(main+0xd3) [0xe346b9] (/home/buster/go_com/godot3_beta1/platform/x11/godot_x11.cpp:55)
[28] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fe10814f830] (??:0)
[29] /home/buster/go_com/godot3_beta1/bin/godot.x11.tools.64(_start+0x29) [0xe34519] (??:?)
-- END OF BACKTRACE --
akien-mga commented 6 years ago

Might be related to the use of APK expansion:

0 param: --use_apk_expansion
1 param: --apk_expansion_md5
2 param: 9bfb5041dc2c7aad682199bf25908726
3 param: --apk_expansion_key
jonglae commented 6 years ago

really fixed ?

akien-mga commented 6 years ago

Well, according to the fix's author yes.