godotengine / godotengine/godot

Android build crashes when typing in LineEdit and TextEdit

Open
#93,535 2 comments 0 reactions 0 assignees View on GitHub
bug crash needs testing platform:android topic:gui topic:input
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in: 4.2.2 stable (possible regression)

### System information

Android 7.1.1 (ColorOS v3.2) - OPPO F5 (CPH1723)

### Issue description

Both LineEdit and TextEdit cause the Android app to crash when you try to type. Mostly when type second symbol.

### Steps to reproduce

- Add a LineEdit or TextEdit to the scene;
- Export to Android;
- Run the app and try to type something in LineEdit/TextEdit;

### Minimal reproduction project (MRP)

[LineEditAndroidBug-godot4.2.zip](https://github.com/user-attachments/files/15950749/LineEditAndroidBug-godot4.2.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached LineEditAndroidBug-godot4.2.zip minimal reproduction project, export it to Android 7.1.1, and reproduce typing in both LineEdit and TextEdit. Trace the crash that occurs around the second character and verify that typing no longer crashes the exported app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.