Skip to content
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

app always crashes on IOS when inputting to a TextInput the word 'near' (lowercase) #48206

Open
yinonby opened this issue Dec 10, 2024 · 5 comments
Labels

Comments

@yinonby
Copy link

yinonby commented Dec 10, 2024

Description

app always crashes on IOS when inputting to a TextInput the word 'near', see attached Snack.

It will happen every time you type slow enough so that the autocomplete feature of IOS will mark some letters.

If you type really fast, before the autocomplete is able to mark anything - you will be able to 'get through' (not carsh).

To make it more bizzare - it crashes for any combination of lowercase/uppercase, as long as the last letter ('r') is lowercase.

If you do enter it with a capital 'R', even when the autocorrect changes it to lowercase 'r', it will 'get through' (not carsh).

But when you delete and input it again with lowercase 'r' - it will crash again.

Steps to reproduce

Here is a snack to reproduce:

Snack link

React Native Version

0.76.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 14.2.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 305.55 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.3.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.1
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.10.07.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12071903
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.76.5 is now available (your project is running on v0.76.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.76.5
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.3&to=0.76.5
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Stacktrace or Logs

Using 'npx react-native log-ios', I didn't get any interesting logs:

info Tailing logs for device iPhone SE (3rd generation) (8A123318-1E64-47A1-8581-0ADE9F78E2A1)
NOTE:  Most system logs have moved to a new logging system.  See log(1) for more information.
Jul  5 03:00:46 ****** bootlog[0] <Notice>: BOOT_TIME 1720141246 903822

Reproducer

https://snack.expo.dev/uRdLAyV2e7gVfKBbGh4-x

Screenshots and Videos

No response

@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot react-native-bot added Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. labels Dec 10, 2024
@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@yinonby
Copy link
Author

yinonby commented Dec 10, 2024

Issue persists on newest 0.76.5 version

@NickGerleman
Copy link
Contributor

I can repro on the snack, but have been having a lot of trouble getting this to reproduce locally on a recent main branch build using RNTester playground (tried matching correction settings, simulator version, hw vs software keyboard, etc).

If you're able to share a callstack (like from attaching to debugger with XCode), that would be very helpful to root this down a bit.

Anyone else trying to repro would also be helpful. This seems like it should be very simple to, so not sure the environment difference.

@shubhamguptadream11
Copy link
Collaborator

shubhamguptadream11 commented Dec 11, 2024

I was able to reproduce this issue on Snack; however, I couldn't reproduce it locally. On Snack, the crash occurs simply by typing the letter 'r'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants