{"action":"opened","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/10845","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/10845/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/10845/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/10845/events","html_url":"https://github.com/godotengine/godot/issues/10845","id":254544634,"number":10845,"title":"Adding custom input make Javascript and Android builds crash (Godot 3)","user":{"login":"Alexia-AT-Digitecnology","id":18708610,"avatar_url":"https://avatars1.githubusercontent.com/u/18708610?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexia-AT-Digitecnology","html_url":"https://github.com/Alexia-AT-Digitecnology","followers_url":"https://api.github.com/users/Alexia-AT-Digitecnology/followers","following_url":"https://api.github.com/users/Alexia-AT-Digitecnology/following{/other_user}","gists_url":"https://api.github.com/users/Alexia-AT-Digitecnology/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexia-AT-Digitecnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexia-AT-Digitecnology/subscriptions","organizations_url":"https://api.github.com/users/Alexia-AT-Digitecnology/orgs","repos_url":"https://api.github.com/users/Alexia-AT-Digitecnology/repos","events_url":"https://api.github.com/users/Alexia-AT-Digitecnology/events{/privacy}","received_events_url":"https://api.github.com/users/Alexia-AT-Digitecnology/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T06:06:39Z","updated_at":"2017-09-01T06:06:39Z","closed_at":null,"author_association":"NONE","body":"**Operating system or device, Godot version, GPU Model and driver (if graphics related):**\r\n\r\nAndroid 6.0 (Xiaomi Redmi 3s Pro)\r\nFirefox 55.0.3.1 (ArchLinux)\r\nGodot 3.0 commit id a1d7c496b from [Godot3 BuildServer](http://godot3builds.digitecnology.com/index.php\r\n)\r\n\r\n**Issue description:**\r\n<!-- What happened, and what was expected. -->\r\n\r\nWhen you add a custom input action in a Godot 3 project, and you export to Android and Javascript versions it crash.\r\n\r\nAndroid crash with this message:\r\n\r\n```\r\n09-01 03:01:38.271: A/DEBUG(637): pid: 19620, tid: 19647, name: GLThread 6778  >>> org.godotengine.testone <<<\r\n09-01 03:01:38.332: A/DEBUG(637):     #00 pc 00ddbb80  /data/app/org.godotengine.testone-1/lib/arm/libgodot_android.so (_ZN15ProjectSettings21_load_settings_binaryE6String+1268)\r\n09-01 03:01:38.333: A/DEBUG(637):     #01 pc 00dda230  /data/app/org.godotengine.testone-1/lib/arm/libgodot_android.so (_ZN15ProjectSettings5setupERK6StringS2_+1596)\r\n09-01 03:01:38.333: A/DEBUG(637):     #02 pc 00088c74  /data/app/org.godotengine.testone-1/lib/arm/libgodot_android.so (_ZN4Main5setupEPKciPPcb+3804)\r\n09-01 03:01:38.333: A/DEBUG(637):     #03 pc 00073ef0  /data/app/org.godotengine.testone-1/lib/arm/libgodot_android.so (Java_org_godotengine_godot_GodotLib_setup+348)\r\n09-01 03:01:38.333: A/DEBUG(637):     #04 pc 00343b11  /data/app/org.godotengine.testone-1/oat/arm/base.odex (offset 0x221000) (void org.godotengine.godot.GodotLib.setup(java.lang.String[])+92)\r\n09-01 03:01:38.333: A/DEBUG(637):     #05 pc 0033beab  /data/app/org.godotengine.testone-1/oat/arm/base.odex (offset 0x221000) (void org.godotengine.godot.Godot$1.run()+94)\r\n09-01 03:01:38.989: E/InputDispatcher(1326): channel '75418fe org.godotengine.testone/org.godotengine.godot.Godot (server)' ~ Channel is unrecoverably broken and will be disposed!\r\n```\r\n\r\nJavascript crashes with this message:\r\n\r\n```\r\n**ERROR**: still waiting on run dependencies:\r\n**ERROR**: dependency: wasm-instantiate\r\n**ERROR**: (end of list)\r\n**ERROR**: pre-main prep time: 11213 ms\r\nlet it go dude!\r\n**ERROR**: Calling stub instead of sigaction()\r\n**ERROR**: At: core/io/marshalls.cpp:65:_decode_string() - Condition ' (int)strlen > len ' is true. returned: ERR_FILE_EOF\r\n**ERROR**: At: core/io/marshalls.cpp:542:decode_variant() - Condition ' err ' is true. returned: err\r\n**ERROR**: Error decoding property: input/test_one_two\r\n **ERROR**: At: core/project_settings.cpp:409:_load_settings_binary() - Condition ' err != OK ' is true. Continuing..:\r\n**ERROR**: At: core/os/memory.cpp:64:alloc_static() - Condition ' !mem ' is true. returned: 0L\r\n**ERROR**: At: core/vector.h:287:resize() - Condition ' !ptr ' is true. returned: ERR_OUT_OF_MEMORY\r\n**ERROR**: At: core/vector.h:137:operator[]() - FATAL: Index p_index out of size (size()).\r\ntrap!\r\n**ERROR**: trap!\r\n**ERROR**: warning: build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling\r\n**ERROR**: exception thrown: abort(\"trap!\") at jsStackTrace@file:///home/alexiarc/ww3/TestOne.js:1:18997\r\nstackTrace@file:///home/alexiarc/ww3/TestOne.js:1:19168\r\nabort@file:///home/alexiarc/ww3/TestOne.js:1:409631\r\n_llvm_trap@file:///home/alexiarc/ww3/TestOne.js:1:220769\r\n__ZN15ProjectSettings21_load_settings_binaryE6String@file:///home/alexiarc/ww3/TestOne.js:13550108:1\r\n__ZN15ProjectSettings5setupERK6StringS2_@file:///home/alexiarc/ww3/TestOne.js:13543816:1\r\n__ZN4Main5setupEPKciPPcb@file:///home/alexiarc/ww3/TestOne.js:239881:1\r\n_main@file:///home/alexiarc/ww3/TestOne.js:190471:1\r\nModule._main@file:///home/alexiarc/ww3/TestOne.js:1:385175\r\ncallMain@file:///home/alexiarc/ww3/TestOne.js:1:407481\r\ndoRun@file:///home/alexiarc/ww3/TestOne.js:1:408364\r\nrun/<@file:///home/alexiarc/ww3/TestOne.js:1:408532\r\nSuccessfully populated IDB file system\r\n**ERROR**: At: main/main.cpp:1063:start() - Condition ' !_start_success ' is true. returned: false\r\n\r\n```\r\n**Steps to reproduce:**\r\n\r\n* Create a basic project\r\n* Add a custom input action (like action_custom_one) and assign it a key\r\n* Export the project to Android and Javascript\r\n* Run in both platforms\r\n\r\n**Link to minimal example project:**\r\n<!-- Optional but very welcome. You can drag and drop a zip archive to upload it. -->\r\n\r\n[TestOne.zip](https://github.com/godotengine/godot/files/1269285/TestOne.zip)\r\n"}}
{"actor":{"display_login":"Alexia-AT-Digitecnology"}}