-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter iOS 12.0 textfield crash with CJK input method #22201
Comments
I got similar crashes:
|
I meet this similar crash too:
|
I had the same problem, is any way to solve this issue? |
You can dismiss the keyboard when you type in other TextField. But, it is so stupid. I hope flutter or iOS 12 can fix this bug. It is big problem because I need to put my app to App Store. |
Problem crashing with Japanese, CJK input to TextField, TextFormField. |
same crash here, received so much crash report when we switch some page to flutter recently. `
` |
This should be fixed by flutter/engine#6989. Please update/open a new bug if you're still seeing this crash. |
This is still happening to me, but is it merged to the stable branch yet? |
同样问题, |
The cause of this crash: if let selectedRange = textField.markedTextRange {
let position = textField.position(from: selectedRange.start, offset: 0)
if position != nil { // means Chinese Pinyin(or Japanese) is inputting
return //stop doing calculating which will cause the crash
}
}
// maxLength calculating here |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
Create two textfields
Select some characters in Chinese( Chinese(Traditional) - Cangjie) keyboard in the first textfield, then select the second textfield without choosing a Chinese character from the prediction.
Here is the example image:
https://www.dropbox.com/s/gt540b5188egfvp/1.png?dl=0
the app will crash (only in iOS 12.0, it would not crash in iOS 11.4)
Flutter console show:
Xcode console show:
Logs
The text was updated successfully, but these errors were encountered: