8000 Crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', reason: 'Expected a valid text range.' · Issue #138464 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', 8000 reason: 'Expected a valid text range.' #138464

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

Open
2 tasks done
randomhuangpl opened this issue Nov 15, 2023 · 28 comments
Labels
a: text input Entering text in a text field or keyboard related problems c: crash Stack traces logged to the console e: OS-version specific Affects only some versions of the relevant operating system f: material design flutter/packages/flutter/material repository. P2 Important issues not at the top of the work list platform-ios iOS applications specifically team-design Owned by Design Languages team triaged-design Triaged by Design Languages team

Comments

@randomhuangpl
Copy link
randomhuangpl commented Nov 15, 2023

Is there an existing issue for this?

Steps to reproduce

  1. type "hdjdd"
  2. double click textfield
  3. crash

work in iOS 17.0.0 well. While update to 17.1.1 crash.

Expected results

no crash

Actual results

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected a valid text range.'
*** First throw call stack:
(0x1a277c870 0x19aa97c00 0x1a1ce6d18 0x10af72f54 0x1a5560928 0x1a555ec90 0x1a5557724 0x1a55573ec 0x1a55539ac 0x1a54d37e0 0x1a4bc3c2c 0x1a4bc3b10 0x1a551b738 0x1a54d34a0 0x10af71a78 0x10af79d04 0x10b4fe1c8 0x10af6b590 0x10a678f50 0x10a67ab34 0x10a68afec 0x10a68aba0 0x1a26c720c 0x1a26c3f18 0x1a26c3668 0x1e5a8e5ec 0x1a4ae02b4 0x1a4adf8f0 0x104ae49cc 0x1c5116dcc)

Code sample

Code sample
class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
 
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: TextField(),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
20231115-152259.mp4

Logs

Logs
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected a valid text range.'
*** First throw call stack:
(0x1a277c870 0x19aa97c00 0x1a1ce6d18 0x10af72f54 0x1a5560928 0x1a555ec90 0x1a5557724 0x1a55573ec 0x1a55539ac 0x1a54d37e0 0x1a4bc3c2c 0x1a4bc3b10 0x1a551b738 0x1a54d34a0 0x10af71a78 0x10af79d04 0x10b4fe1c8 0x10af6b590 0x10a678f50 0x10a67ab34 0x10a68afec 0x10a68aba0 0x1a26c720c 0x1a26c3f18 0x1a26c3668 0x1e5a8e5ec 0x1a4ae02b4 0x1a4adf8f0 0x104ae49cc 0x1c5116dcc)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.5.2 22G91 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (5 available)
[✓] Network resources
@dam-ease dam-ease added the in triage Presently being triaged by the triage team label Nov 15, 2023
@dam-ease
Copy link

Thanks for filing this @randomhuangpl.
I tried the steps you shared on both iOS 17.0 and iOS 17.1.1 and I can't reproduce the crash on either of them (see video on iOS 17.1.1 below).

RPReplay_Final1700038972.MP4

Can you please share your device information and the full output of your flutter run -v?

flutter doctor -v

[!] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale
    en-NG)
    • Flutter version 3.13.9 on channel stable at
      /Users/damilolaalimi/sdks/flutter
    ! Warning: `dart` on your path resolves to
      /opt/homebrew/Cellar/dart/3.1.5/libexec/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/damilolaalimi/sdks/flutter.
      Consider adding /Users/damilolaalimi/sdks/flutter/bin to the front of your
      path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (3 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)

[!] Android Studio (version unknown)
    • Android Studio at /Users/damilolaalimi/Downloads/Android Studio
      Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] VS Code (version 1.83.1)
    • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)        • emulator-5554
      • android-arm64  • Android 14 (API 34) (emulator)
    • Damilola’s iPhone (mobile)         • 00008110-001964480AE1801E
      • ios            • iOS 17.1.1 21B91
    • iPad Air (5th generation) (mobile) • B3716F7D-587E-4473-9F87-F1BA94E31B29
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)                    • macos
      • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)                       • chrome
      • web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

@dam-ease dam-ease added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 15, 2023
@randomhuangpl
Copy link
Author
randomhuangpl commented Nov 15, 2023

@dam-ease
my device is 13 PRO MAX.
I reorganized it and found that the issue seems to be like this
For example, input "hdjdd" and then wait for a moment to let the iOS keyboard generate predictive suggestions. At this point, the text inside the textfield will be automatically selected, and the suggestion below is "hdjk". Now, double-click the TextField and click "Select All."

I suspect that because the length of "hdjk" is smaller than "hdjdd," it causes a crash. So, the issue seems to be that when inputting certain characters, if the length of the suggested word is shorter than the original one, it leads to a crash.
type "fggjiy" ,the suggested is "fight",and it crash

20231115-181058.mp4

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 15, 2023
@dam-ease
Copy link

Thanks for your response. I tried these as well but can't reproduce the crash, maybe it could be device-specific, can you also try these steps on an emulator of a different device with the same OS?
Also, kindly help with the full output of your flutter run -v?

@dam-ease dam-ease added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 15, 2023
@AguinaldoAranda
Copy link

I have information from users of my app with the same problem, but I couldn't reproduce it because I don't have a device with iOS 17+, but I have videos recorded by customers and the same thing happens, when interacting with a textField the app freezes for a few moments and closes in followed.

@AguinaldoAranda
Copy link

I have information from users of my app with the same problem, but I couldn't reproduce it because I don't have a device with iOS 17+, but I have videos recorded by customers and the same thing happens, when interacting with a textField the app freezes for a few moments and closes in followed.

I managed to minimize the problem by setting the "autocorrect: false" attribute.

Although it's not the best of all worlds, at least the app stopped crashing.

@dam-ease
Copy link

Thanks for responding @AguinaldoAranda.
Can you help with the full output of your flutter run -v?

@AguinaldoAranda
Copy link
AguinaldoAranda commented Dec 11, 2023

Thanks for responding @AguinaldoAranda. Can you help with the full output of your flutter run -v?

Hello.

The problem was reported by a customer, iPhone 11 with iOS 17.1.2

The problem does not happen in my development environment, with an iPhone 11/14 simulator and iOS 16.2.

And although the problem is related to inputText, in my case, the app closes when the user presses to use a text suggestion.

I noticed that the attr "autocorrect: false," does not disable the suggestions if the attr TextInputType is text, I changed it to TextInputType = name, this way it worked, but very frustrating.

Sorry for English.

@dam-ease
Copy link

Thanks for your response.
I can't seem to reproduce this as well on my end.
I'll keep this open and label for more insights from the team.
Thank you!

@dam-ease dam-ease added a: text input Entering text in a text field or keyboard related problems c: crash Stack traces logged to the console platform-ios iOS applications specifically e: OS-version specific Affects only some versions of the relevant operating system team-ios Owned by iOS platform team f: material design flutter/packages/flutter/material repository. and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds in triage Presently being triaged by the triage team labels Dec 12, 2023
@AguinaldoAranda
Copy link

Thanks for your response. I can't seem to reproduce this as well on my end. I'll keep this open and label for more insights from the team. Thank you!

Hello, if I find any more concrete evidence I will return here, we have 2 apps showing this behavior, several reports from customers.

@LongCatIsLooong LongCatIsLooong added P2 Important issues not at the top of the work list team-design Owned by Design Languages team triaged-design Triaged by Design Languages team and removed team-ios Owned by iOS platform team labels Dec 14, 2023
@LongCatIsLooong
Copy link
Contributor
LongCatIsLooong commented Dec 16, 2023

instead of throwing it looks like our text(in:) implementation should return nil instead when the input range has NSNotFound.

@ghost
Copy link
ghost commented Dec 18, 2023
8000

Hey I am facing this issue on iOS 17+ device, when AutoCorrect is enabled. And as mention by @AguinaldoAranda the app is freezing and crashing 2 or 3 times initially. I added flags enabledSuggestions and autoCorrect to false but that seems to not working as expected

@AguinaldoAranda
Copy link

Hey I am facing this issue on iOS 17+ device, when AutoCorrect is enabled. And as mention by @AguinaldoAranda the app is freezing and crashing 2 or 3 times initially. I added flags enabledSuggestions and autoCorrect to false but that seems to not working as expected

I have had success with autocorrect:false when used in conjunction with attr keyboardType: TextInputType.name

@AguinaldoAranda
Copy link

Hey I am facing this issue on iOS 17+ device, when AutoCorrect is enabled. And as mention by @AguinaldoAranda the app is freezing and crashing 2 or 3 times initially. I added flags enabledSuggestions and autoCorrect to false but that seems to not working as expected

I have had success with autocorrect:false when used in conjunction with attr keyboardType: TextInputType.name

@ankittale , did this solve it?

@ghost
Copy link
ghost commented Dec 22, 2023

Hey I am facing this issue on iOS 17+ device, when AutoCorrect is enabled. And as mention by @AguinaldoAranda the app is freezing and crashing 2 or 3 times initially. I added flags enabledSuggestions and autoCorrect to false but that seems to not working as expected

I have had success with autocorrect:false when used in conjunction with attr keyboardType: TextInputType.name

@ankittale , did this solve it?

Yes Indeed. Thanks

@jmagman
Copy link
Member
jmagman commented Jan 26, 2024

instead of throwing it looks like our text(in:) implementation should return nil instead when the input range has NSNotFound.

That behavior was introduced to fix a a11y bug flutter/engine#16496

@jmagman jmagman changed the title iOS 17.1.1 crash while type some characters and double click in textfield iOS 17.1.1 crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', reason: 'Expected a valid text range.' Jan 26, 2024
@jmagman jmagman changed the title iOS 17.1.1 crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', reason: 'Expected a valid text range.' Crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', reason: 'Expected a valid text range.' Jan 26, 2024
@hig-dev
Copy link
hig-dev commented Jan 30, 2024

Here is a symbolicated crash log from my app.

Flutter version: 3.16.7

Crash log:
Full log:
9c1a627eb0a544d5b52420ba6890478f-symbolicated.log
Device: iPhone15,4 (iOS 17.2.1)

NSInternalInconsistencyException: Expected a valid text range.

CoreFoundation 0x1b148a69c __exceptionPreprocess
Flutter 0x10690b7b4 -[FlutterTextInputView textInRange:] (FlutterTextInputPlugin.mm:1238)
UIKitCore 0x1b427a9bc -[UIKBRTIPartner _queryUIKitDocumentRequest:completion:]
Flutter 0x10690a2c4 -[FlutterTextInputView setTextInputState:] (FlutterTextInputPlugin.mm:1001)
Flutter 0x1069128ac -[FlutterTextInputPlugin handleMethodCall:result:] (FlutterTextInputPlugin.mm)
Flutter 0x106ea1a34 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke (FlutterChannels.mm:313)
Flutter 0x106903bfc flutter::PlatformMessageHandlerIos::HandlePlatformMessage (platform_message_handler_ios.mm:73)
libdispatch 0x1b93936a4 _dispatch_call_block_and_release
Runner 0x104320774 main (AppDelegate.swift:9)

Originally posted by @hig-dev in #100891 (comment)

@SdxCoder
Copy link
SdxCoder commented Feb 7, 2024

Here is crash log from our app in production. While using app on iOS, whenever tapped on textfield, app freezes for some time.

Flutter Doctor

[✓] Flutter (Channel stable, 3.16.9, on macOS 14.1.1 23B81 darwin-arm64, locale
    en-CA)
    • Flutter version 3.16.9 on channel stable at /Users/saadahmed/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (13 days ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/saadahmed/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.86.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.82.0

[✓] Connected device (3 available)            
    • macOS (desktop)          • macos                     • darwin-arm64   •
      macOS 14.1.1 23B81 darwin-arm64
    • Chrome (web)             • chrome                    • web-javascript •
      Google Chrome 121.0.6167.160

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Crash log
# Crashlytics - Stack trace
# Application: hmg.mep.pharmacy
# Platform: apple
# Version: 1.29.0 (29)
# Issue: e28b6421c54b9f83bc22ec09f2d32b81
# Session: 72657e9052104cd2b484430250113eb8_DNE_0_v2
# Date: Sun Feb 04 2024 14:29:51 GMT-0700 (Mountain Standard Time)

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0xec678 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
1  libobjc.A.dylib                0x2bc80 objc_exception_throw
2  Foundation                     0x6b0d38 (Missing UUID 5623831d571933a99691759f47d714d1)
3  Flutter                        0x4b7b8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  UIKitCore                      0xcb23b8 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
5  UIKitCore                      0xcb07b0 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
6  UIKitCore                      0xca90b4 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
7  UIKitCore                      0xca8d44 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
8  UIKitCore                      0xca5304 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
9  UIKitCore                      0xc2468c (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
10 UIKitCore                      0x3103e0 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
11 UIKitCore                      0x3102c4 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
12 UIKitCore                      0xc6caa4 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
13 UIKitCore                      0xc2434c (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
14 Flutter                        0x4a2c8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
15 Flutter                        0x528b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
16 Flutter                        0x5e1a38 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
17 Flutter                        0x43c00 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
18 libdispatch.dylib              0x26a8 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
19 libdispatch.dylib              0x4300 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
20 libdispatch.dylib              0x12998 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
21 libdispatch.dylib              0x125b0 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
22 CoreFoundation                 0x36f9c (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
23 CoreFoundation                 0x33ca8 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
24 CoreFoundation                 0x333f8 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
25 GraphicsServices               0x34f8 (Missing UUID ac07ebbed8bc3e55a13a07bb548734d1)
26 UIKitCore                      0x22c8a0 (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
27 UIKitCore                      0x22bedc (Missing UUID 6398ddd4ea3631cdb8492f6217205bed)
28 Runner                         0x99c8 main + 9 (AppDelegate.swift:9)
29 ???                            0x1ca3b6dcc (Missing)

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x214f4 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x218d4 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x18a04 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x13728 __FIRCLSExceptionRecord_block_invoke + 92
4  libdispatch.dylib              0x4300 <redacted> + 20
5  libdispatch.dylib              0x136b4 <redacted> + 56
6  FirebaseCrashlytics            0x12734 FIRCLSExceptionRecord + 204
7  FirebaseCrashlytics            0x13248 FIRCLSExceptionRecordNSException + 452
8  FirebaseCrashlytics            0x1238c FIRCLSTerminateHandler() + 404
9  libc++abi.dylib                0x143bc std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x14360 std::terminate() + 108
11 libobjc.A.dylib                0x3ccd4 objc_terminate + 16
12 libdispatch.dylib              0x4314 <redacted> + 40
13 libdispatch.dylib              0x12998 <redacted> + 984
14 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF + 44
15 CoreFoundation                 0x36f9c <redacted> + 16
16 CoreFoundation                 0x33ca8 <redacted> + 1996
17 CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
18 GraphicsServices               0x34f8 GSEventRunModal + 164
19 UIKitCore                      0x22c8a0 <redacted> + 888
20 UIKitCore                      0x22bedc UIApplicationMain + 340
21 Runner                         0x99c8 main + 9 (AppDelegate.swift:9)
22 ???                            0x1ca3b6dcc (Missing)

Thread
0  libsystem_kernel.dylib         0x96d0 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  CoreFoundation                 0x35a9c <redacted> + 160
5  CoreFoundation                 0x33994 <redacted> + 1208
6  CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
7  Foundation                     0x2c3ec <redacted> + 212
8  Foundation                     0x596ac <redacted> + 64
9  UIKitCore                      0x18e710 <redacted> + 420
10 Foundation                     0xafd40 <redacted> + 732
11 libsystem_pthread.dylib        0x24d4 _pthread_start + 136
12 libsystem_pthread.dylib        0x1a10 thread_start + 8

io.flutter.1.ui
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  CoreFoundation                 0x35a9c <redacted> + 160
5  CoreFoundation                 0x33994 <redacted> + 1208
6  CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
7  Flutter                        0x2e95e8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
8  Flutter                        0x2e8c5c (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
9  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
10 libsystem_pthread.dylib        0x1a10 thread_start + 8

io.flutter.1.raster
0  libsystem_kernel.dylib         0x110c semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x4918 <redacted> + 64
2  libdispatch.dylib              0x4f14 <redacted> + 76
3  QuartzCore                     0x110bcc <redacted> + 968
4  QuartzCore              
6D40
       0x110798 <redacted> + 128
5  Flutter                        0x5ea4e0 InternalFlutterGpuTestClass_Method + 41436
6  Flutter                        0x3ebc30 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
7  Flutter                        0x3ec2c4 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
8  Flutter                        0x2e7734 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
9  Flutter                        0x3eb958 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
10 Flutter                        0x3eccbc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
11 Flutter                        0x3ec4fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
12 Flutter                        0x404838 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
13 Flutter                        0x2e5d68 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
14 Flutter                        0x2e94fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
15 CoreFoundation                 0xad3c8 <redacted> + 32
16 CoreFoundation                 0xad070 <redacted> + 1004
17 CoreFoundation                 0x36c04 <redacted> + 288
18 CoreFoundation                 0x33c1c <redacted> + 1856
19 CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
20 Flutter                        0x2e95e8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
21 Flutter                        0x2e8c5c (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
22 libsystem_pthread.dylib        0x24d4 _pthread_start + 136
23 libsystem_pthread.dylib        0x1a10 thread_start + 8

io.flutter.1.io
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  CoreFoundation                 0x35a9c <redacted> + 160
5  CoreFoundation                 0x33994 <redacted> + 1208
6  CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
7  Flutter                        0x2e95e8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
8  Flutter                        0x2e8c5c (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
9  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
10 libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.1
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.2
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.3
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.4
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.5
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.6
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

dart:io EventHandler
0  libsystem_kernel.dylib         0xef0c kevent + 8
1  Flutter                        0x5a1ed4 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
2  Flutter                        0x5cf9c8 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
4  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.1
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.2
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.3
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

io.worker.4
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 <redacted> + 1228
2  Flutter                        0x570fc (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
3  Flutter                        0x2e28b0 (Missing UUID 4c4c44da55553144a1f7c3e66c77eeff)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x96d0 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  FirebaseCrashlytics            0x1b040 FIRCLSMachExceptionServer + 104
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x96d0 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  CoreFoundation                 0x35a9c <redacted> + 160
5  CoreFoundation                 0x33994 <redacted> + 1208
6  CoreFoundation                 0x333f8 CFRunLoopRunSpecific + 608
7  CFNetwork                      0x25a050 estimatedPropertyListSize + 38188
8  Foundation                     0xafd40 <redacted> + 732
9  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
10 libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x96d0 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x62eef0 InternalFlutterGpuTestClass_Method + 322540
4  Flutter                        0x6d209c InternalFlutterGpuTestClass_Method + 990616
5  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
6  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
7  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x96d0 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x19fc _pthread_wqthread + 438

DartWorker
0  libsystem_kernel.dylib         0x1b1c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1000 <redacted> + 1272
2  Flutter                        0x697558 InternalFlutterGpuTestClass_Method + 750164
3  Flutter                        0x6d2068 InternalFlutterGpuTestClass_Method + 990564
4  Flutter                        0x696f24 InternalFlutterGpuTestClass_Method + 748576
5  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
6  libsystem_pthread.dylib        0x1a10 thread_start + 8

@HappyMakadiyaS
Copy link

Facing same issue here is the video recording and logs...

Incident Identifier: A90B007B-8E4C-413B-B287-D51C32B8DD3E
Hardware Model:      iPhone15,3
Process:             Runner [1661]
Path:                /private/var/containers/Bundle/Application/73F511BA-44A5-4607-A14B-11AB3C8CC0F3/Runner.app/Runner
Identifier:          com.*****.***
Version:             1.0.0 (138)
AppStoreTools:       15C5500a
AppVariant:          1:iPhone15,3:17
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.*****.*** [717]

Date/Time:           2024-02-23 12:33:14.2173 +0530
Launch Time:         2
9E88
024-02-23 12:07:10.4756 +0530
OS Version:          iPhone OS 17.3.1 (21D61)
Release Type:        User
Baseband Version:    2.20.06
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Runner [1661]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x1adc7e678 __exceptionPreprocess + 164 (NSException.m:249)
1   libobjc.A.dylib               	0x1a5f07c80 objc_exception_throw + 60 (objc-exception.mm:356)
2   Foundation                    	0x1ad1dcd38 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 188 (NSException.m:252)
3   Flutter                       	0x10bd1ef54 -[FlutterTextInputView textInRange:] + 628 (FlutterTextInputPlugin.mm:1203)
4   UIKitCore                     	0x1b0a713b8 -[UIKBRTIPartner _queryUIKitDocumentRequest:completion:] + 1996 (UIKBRTIPartner.m:3879)
5   UIKitCore                     	0x1b0a6f7b0 -[UIKBRTIPartner _queryDocumentRequest:completion:] + 120 (UIKBRTIPartner.m:3534)
6   UIKitCore                     	0x1b0a680b4 -[UIKBRTIPartner _updateRTIStateWithCompletion:] + 576 (UIKBRTIPartner.m:1948)
7   UIKitCore                     	0x1b0a67d44 -[UIKBRTIPartner updateStateWithCompletion:updateTraits:] + 144 (UIKBRTIPartner.m:1716)
8   UIKitCore                     	0x1b0a64304 -[UIKBRTIPartner documentStateChanged:] + 176 (UIKBRTIPartner.m:941)
9   UIKitCore                     	0x1b09e368c __37-[UIKeyboardImpl selectionDidChange:]_block_invoke_3 + 52 (UIKeyboardImpl.m:11881)
10  UIKitCore                     	0x1b00cf3e0 -[UIKeyboardTaskEntry execute:] + 208 (UIKeyboardTaskQueue.m:869)
11  UIKitCore                     	0x1b00cf2c4 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 324 (UIKeyboardTaskQueue.m:447)
12  UIKitCore                     	0x1b0a2baa4 -[UIKeyboardTaskQueue addTask:] + 96 (UIKeyboardTaskQueue.m:572)
13  UIKitCore                     	0x1b09e334c -[UIKeyboardImpl selectionDidChange:] + 728 (UIKeyboardImpl.m:11880)
14  Flutter                       	0x10bd1da78 -[FlutterTextInputView setTextInputState:] + 1236 (FlutterTextInputPlugin.mm:968)
15  Flutter                       	0x10bd25d04 -[FlutterTextInputPlugin handleMethodCall:result:] + 500 (FlutterTextInputPlugin.mm:0)
16  Flutter                       	0x10c2aa1c8 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 172 (FlutterChannels.mm:268)
17  Flutter                       	0x10bd17590 invocation function for block in flutter::PlatformMessageHandlerIos::HandlePlatformMessage(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::PlatformMessage, std::_LIBCPP_ABI_NAMESPACE::default_delet... + 116 (platform_message_handler_ios.mm:73)
18  libdispatch.dylib             	0x1b5b906a8 _dispatch_call_block_and_release + 32 (init.c:1530)
19  libdispatch.dylib             	0x1b5b92300 _dispatch_client_callout + 20 (object.m:561)
20  libdispatch.dylib             	0x1b5ba0998 _dispatch_main_queue_drain + 984 (queue.c:7813)
21  libdispatch.dylib             	0x1b5ba05b0 _dispatch_main_queue_callback_4CF + 44 (queue.c:7973)
22  CoreFoundation                	0x1adbc8f9c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
23  CoreFoundation                	0x1adbc5ca8 __CFRunLoopRun + 1996 (CFRunLoop.c:3149)
24  CoreFoundation                	0x1adbc53f8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
25  GraphicsServices              	0x1f117b4f8 GSEventRunModal + 164 (GSEvent.c:2196)
26  UIKitCore                     	0x1affeb8a0 -[UIApplication _run] + 888 (UIApplication.m:3685)
27  UIKitCore                     	0x1affeaedc UIApplicationMain + 340 (UIApplication.m:5270)
28  Runner                        	0x102b87e94 main + 64 (AppDelegate.swift:12)
29  dyld                          	0x1d092edcc start + 2240 (dyldMain.cpp:1269)
ios_textfield_crash_issue.mp4

@wuwenwei5566
Copy link

A similar crash occurred on my side. When I was typing, I clicked on the input box and it flashed back.

[!] Flutter (Channel [user-branch], 3.16.3, on macOS 13.5.1 22G90 darwin-arm64, locale zh-Hans-CN)
! Flutter version 3.16.3 on channel [user-branch] at /Users/wuwenwei/development/flutter
Currently on an unknown channel. Run flutter channel to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
• Framework revision b0366e0 (3 months ago), 2023-12-05 19:46:39 -0800
• Engine revision 54a7145303
• Dart version 3.2.3
• DevTools version 2.28.4
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/wuwenwei/Library/Android/sdk
• Platform android-34, build-tools 32.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.84.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.84.0

[✓] Connected device (4 available)
• iPhone15 (mobile) • 00008130-00114C983620001C • ios • iOS 17.2 21C5029g

飞书20240308-161830

27_1709885582.mp4

@GabrielAraujo
Copy link

Is this fixed on the latest flutter version or still an issue?

@derekpitts28
Copy link

Still seeing this on Flutter 3.24.2

@importRyan

This comment was marked as duplicate.

@fabienbranchel
Copy link
fabienbranchel commented Nov 20, 2024

Flutter 3.24.5

Reproduce on iOS 17.7.2, iPhone 12 mini.
Not reproduce on iOS 18.1, iPhone SE (3rd generation).

@Tom3652
Copy link
Tom3652 commented Dec 11, 2024

I have got a live crash on iOS 18 for this issue :

Capture d’écran 2024-12-11 à 13 08 31

@gvozditskiy
Copy link

We regularly receive complaints from users. People are requesting refunds due to a crash that we are unable to fix on our own and an issue that has been open for many months =(

github-merge-queue bot pushed a commit that referenced this issue Jan 27, 2025
[Previously approved](flutter/engine#55909) in
/engine before monorepo shift.

Reverts an unnecessary assertion introduced by
[#16496](flutter/engine#16496) that crashes upon
valid user text field interactions. Follow-on work can resolve the
underlying discrepancy between iOS and Flutter range finding (see
#160100). For crash reports, see issue
[#138464](#138464).

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md

Co-authored-by: Chris Bracken <chris@bracken.jp>
@importRyan
Copy link
Contributor

Looks like 3.30.0 will remove the crashing assertion.

@hasanmhallak
Copy link
Contributor

we have the same issue too.

Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.0.1 24A348 darwin-arm64, locale en-EG)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.98.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!
Crash Report
# Crashlytics - Stack trace
# Application: com.hmh.gulfinsurance
# Platform: apple
# Version: 29.8.0 (62)
# Issue: fe741015e1cc320abea6275cd5f79a02
# Session: 2ca81f47a1e8445aaece385e5a52d241_DNE_0_v2
# Date: Mon Mar 10 2025 08:16:20 GMT+0200 (Eastern European Standard Time)

Fatal Exception: NSInternalInconsistencyException
Expected a valid text range.

0  CoreFoundation                 0x83f20 __exceptionPreprocess
1  libobjc.A.dylib                0x16018 objc_exception_throw
2  Foundation                     0x6de868 _userInfoForFileAndLine
3  Flutter                        0x44430 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  UIKitCore                      0x4f8dc0 -[UIKBRTIPartner _queryUIKitDocumentRequest:completion:]
5  UIKitCore                      0x5006e0 -[UIKBRTIPartner _queryDocumentRequest:completion:]
6  UIKitCore                      0x5005dc -[UIKBRTIPartner _updateRTIStateWithCompletion:]
7  UIKitCore                      0x4ffe2c -[UIKBRTIPartner updateStateWithCompletion:updateTraits:]
8  UIKitCore                      0x3a02ac -[UIKBRTIPartner documentStateChanged:]
9  UIKitCore                      0xcf7b80 __37-[UIKeyboardImpl selectionDidChange:]_block_invoke_3
10 UIKitCore                      0x4e1348 -[UIKeyboardTaskEntry execute:]
11 UIKitCore                      0x4e11dc -[UIKeyboardTaskQueue continueExecutionOnMainThread]
12 UIKitCore                      0x4e0e48 -[UIKeyboardTaskQueue addTask:]
13 UIKitCore                      0xcf7840 -[UIKeyboardImpl selectionDidChange:]
14 Flutter                        0x42f08 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
15 Flutter                        0x4b580 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
16 Flutter                        0x5d4b50 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
17 Flutter                        0x5f2e8 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
18 libdispatch.dylib              0x213c _dispatch_call_block_and_release
19 libdispatch.dylib              0x3dd4 _dispatch_client_callout
20 libdispatch.dylib              0x125a4 _dispatch_main_queue_drain
21 libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF
22 CoreFoundation                 0x56710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
23 CoreFoundation                 0x53914 __CFRunLoopRun
24 CoreFoundation                 0x52cd8 CFRunLoopRunSpecific
25 GraphicsServices               0x11a8 GSEventRunModal
26 UIKitCore                      0x40a90c -[UIApplication _run]
27 UIKitCore                      0x4be9d0 UIApplicationMain
28 UIKitCore                      0x638384 keypath_get_selector_hoverStyle
29 Runner                         0x85a0 main (AppDelegate.swift)
30 ???                            0x1bc911e4c (Missing)

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x21104 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x214e8 FIRCLSProcessRecordAllThreads + 1180
2  FirebaseCrashlytics            0x18e34 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x13a40 __FIRCLSExceptionRecord_block_invoke + 96
4  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
5  libdispatch.dylib              0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  FirebaseCrashlytics            0x1299c FIRCLSExceptionRecord + 220
7  FirebaseCrashlytics            0x134f8 FIRCLSExceptionRecordNSException + 456
8  FirebaseCrashlytics            0x125a4 FIRCLSTerminateHandler() + 404
9  libc++abi.dylib                0x14068 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x1400c std::terminate() + 108
11 libobjc.A.dylib                0x3cafc objc_terminate + 16
12 libdispatch.dylib              0x3de8 _dispatch_client_callout + 40
13 libdispatch.dylib              0x125a4 _dispatch_main_queue_drain + 988
14 libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
15 CoreFoundation                 0x56710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
16 CoreFoundation                 0x53914 __CFRunLoopRun + 1996
17 CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
18 GraphicsServices               0x11a8 GSEventRunModal + 164
19 UIKitCore                      0x40a90c -[UIApplication _run] + 888
20 UIKitCore                      0x4be9d0 UIApplicationMain + 340
21 UIKitCore                      0x638384 keypath_get_selector_hoverStyle + 11024
22 Runner                         0x85a0 main + 4335519136 (AppDelegate.swift:4335519136)
23 ???                            0x1bc911e4c (Missing)

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Foundation                     0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0xc7c9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x41e640 -[UIEventFetcher threadMain] + 420
10 Foundation                     0xde718 __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x606c _pthread_start + 136
12 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.ui
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.raster
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.flutter.1.io
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  Flutter                        0x81f48 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
8  Flutter                        0x81b90 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
9  Flutter                        0x81820 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
10 libsystem_pthread.dylib        0x606c _pthread_start + 136
11 libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.1
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.2
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

io.worker.3
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  Flutter                        0x60800 (Missing UUID 4c4c444f55553144a1340141eeacf94a)
3  Flutter                        0x7b0dc (Missing UUID 4c4c444f55553144a1340141eeacf94a)
4  libsystem_pthread.dylib        0x606c _pthread_start + 136
5  libsystem_pthread.dylib        0x10d8 thread_start + 8

dart:io EventHandler
0  libsystem_kernel.dylib         0x8608 kevent + 8
1  Flutter                        0x56da6c InternalFlutterGpu_Texture_AsImage + 4654952
2  Flutter                        0x59926c InternalFlutterGpu_Texture_AsImage + 4833128
3  libsystem_pthread.dylib        0x606c _pthread_start + 136
4  libsystem_pthread.dylib        0x10d8 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  FirebaseCrashlytics            0x1b580 FIRCLSMachExceptionServer + 104
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x1808 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x5008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4f20 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4d60 mach_msg + 24
4  CoreFoundation                 0x53f5c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x53600 __CFRunLoopRun + 1208
6  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
7  CFNetwork                      0xfdc90 _CFHostIsDomainTopLevel + 108176
8  Foundation                     0xde718 __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x606c _pthread_start + 136
10 libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x10c4 start_wqthread + 8423096514

JavaScriptCore libpas scavenger
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x36e4 _pthread_cond_wait + 1228
2  JavaScriptCore                 0x155b0a4 scavenger_thread_main + 1512
3  libsystem_pthread.dylib        0x606c _pthread_start + 136
4  libsystem_pthread.dylib        0x10d8 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1590 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x4980 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x10cc start_wqthread + 8

DartWorker
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x71cc __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x3710 _pthread_cond_wait + 1272
2  Flutter                        0x696ff0 InternalFlutterGpu_Texture_AsImage + 5872876
3  Flutter                        0x6d29f4 InternalFlutterGpu_Texture_AsImage + 6117104
4  Flutter                        0x6969bc InternalFlutterGpu_Texture_AsImage + 5871288
5  libsystem_pthread.dylib        0x606c _pthread_start + 136
6  libsystem_pthread.dylib        0x10d8 thread_start + 8

@DieGlueckswurst
Copy link

stilll having this issue. any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: text input Entering text in a text field or keyboard related problems c: crash Stack traces logged to the console e: OS-version specific Affects only some versions of the relevant operating system f: material design flutter/packages/flutter/material repository. P2 Important issues not at the top of the work list platform-ios iOS applications specifically team-design Owned by Design Languages team triaged-design Triaged by Design Languages team
Projects
None yet
Development

No branches or pull requests

0