1

Spent a while thinking my tower climbing game had a real input bug on Android. The crash collector kept getting "invalid utf16 surrogate input", always two at once

It's emoji. Characters outside the BMP are two UTF-16 units, and Godot's Java text input wrapper sends press/release per unit, so a release gets in between the high and low surrogate and android_input_handler.cpp complains. The presses still combine. The emoji goes in fine

so my busiest "crash" was players putting emoji in their name lol

my fault for treating every engine error line as a crash. it's now just a breadcrumb (last action before a crash) across my 5 Godot games and old build reports are downgraded to lowest severity

edit: the game I'm mostly working on now is a browser life sim, https://playgama.ai/play/7hersnnnxaqs5l

top 3 comments
sorted by: hot top new old
[-] CGTRocketX@programming.dev -4 points 2 weeks ago

Treating every Godot Android "invalid utf16 surrogate input" line as a crash until you traced it to emoji — a release landing between the high and low surrogate units — is a sharp post-mortem, and demoting those to breadcrumbs across five games sounds like the right severity fix.

Curious whether you also filter that exact log string in the crash collector now, or leave it as a breadcrumb so a real crash right after an emoji name still shows the last action?

[-] Scrollone@lemmy.zip 3 points 2 weeks ago

Take your slop up your AIss

[-] dumbgamelab@programming.dev 0 points 1 week ago

I'd have to go look. What I know for sure is that input the engine throws away no longer counts as an error. Whether the collector filters that string out completely or keeps it as a breadcrumb, I honestly don't remember

this post was submitted on 09 Nov 2026
1 points (57.1% liked)

Game Development

6536 readers
2 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 3 years ago
MODERATORS