question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IndexOutOfBoundsException when using Google Indic Keyboard with RN 0.53.0

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS High Sierra 10.13.2 Node: 8.4.0 Yarn: 0.27.5 npm: 5.3.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed) react: 16.2.0 => 16.2.0 react-native: 0.53.0 => 0.53.0

Target Platform: Android (6.0.1)

Steps to Reproduce

  1. Create and run a new project with RN 0.53.0, using react-native init. (Most likely exists for projects created using other methods as well, didn’t check.)
  2. Switch the keyboard to Google Indic Keyboard from phone’s input settings
  3. Steps for reproducing the crash with emojis: a. Create a TextInput with no additional props (or switch to the master branch of the provided repo). a. Type an emoji and press the backspace twice.
  4. Steps for reproducing the crash with any character: a. Create a TextInput with autoCorrect={false} (or switch to the auto-correct branch of the provided repo). a. Type any character and press the backspace once.

Expected Behavior

The emojis and characters get cleared with no crashes

Actual Behavior

screenshot_2018-02-14-10-04-04-422_com android settings

The app crashes on clearing the emojis, with no additional props set on the TextInput 2018-02-14 10_37_49 The app crashes on clearing the last character in case autoCorrect={false} is set 2018-02-14 10_38_17

Reproducible Demo

https://github.com/SuhairZain/react-native-gindic-keyboard-crash The master branch crashes when deleting an emoji character The auto-correct branch crashes when deleting the last character in the input

The reason that I’ve created this issue here rather than on the Google Indic keyboard repo is that I can confirm that this bug does not exist with 0.47.1, which is the version our app was on before we upgraded. This is a bug that was introduced in one of the versions from then to 0.53.0.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:39 (29 by maintainers)

github_iconTop GitHub Comments

2reactions
ccdwyercommented, Feb 20, 2018

@joshyhargreaves Thanks! I built an APK with it and sent it over to my team.

2reactions
joshjhargreavescommented, Feb 19, 2018

@ccdwyer no problem, I will do this evening as currently AFK!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found