This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

In my app I listen to key input's on a LineEdit and when the enter key is pressed a signal is emitted to inform the parent a new line edit needs to be added to the parent's VBoxContainer. This works perfectly on my desktop but on Android the App freezes and then crashes.

func _on_LineEdit_gui_input(event):
    if event is InputEventKey:
        if event.scancode == KEY_ENTER and event.pressed:
            if _can_add($InputContainer/LineEdit.text):
                print_debug("Can add")

The App freezes at emit_signal("enter_key_pressed") but only on my phone. On the desktop it works as expected, the signal is emitted and processed. Am I missing something?

I use remote debugging but the output window shows no error.

Godot version 3.3.3
in Engine by (24 points)

Try reading the logcat to see if there's any crash info:

$ adb logcat

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.