signalapp / Signal-iOS

A private messenger for iOS.
https://signal.org
GNU Affero General Public License v3.0
10.62k stars 2.96k forks source link

iOS app keeps crashing with Japanese input #5622

Closed u00101010 closed 1 year ago

u00101010 commented 1 year ago

Bug description

Recently the app started crashing when using the default Apple Japanese keyboard. If I type and send a message, then attempt to start typing another message, the app crashes the second I press any key on my keyboard, preventing me form typing in a second message. I tested and it doesn't happen with the English keyboard.

Steps to reproduce

Actual result: The app crashes

Expected result: I should be able to type in a message as normal.

Screenshots

Device info

Device: iPhone 7

iOS version: 15.7.7 (also happened in 15.7.6)

Signal version: 6.31

Link to debug log

https://debuglogs.org/ios/6.31.0/05527f291a01bb89ef24bf8ce9d1a5f3f78238012e0845da79c28c70b9b0cfd0.zip

u00101010 commented 1 year ago

UPDATE: I figured out an other important detail

When typing with the Japanese keyboard, the text first enters into "compose mode", meaning the currently typed text appears "selected" and the keyboard offers a number of suggestions to replace the text with. This is how the keyboard invokes and embeds the Chinese characters, for instance.

If I Send a message while currently in this "compose mode", and then attempt to type in my second message, the crash happens.

If I press Enter to confirm my typed letters and turn the composed text into normal text, the app doesn't crash.

pete-signal commented 1 year ago

Thanks for reporting this! We've fixed the issue and released a 6.31.1 hotfix with the change.