Skip to content

[iOS 17] Switching between Chinese and English input on the keyboard freezes #134716

Closed

Description

@zhangyanzhu88

Is there an existing issue for this?

Steps to reproduce

flutter版本:3.13.4
iOS版本:ios17 Developer Beta

the steps:
Step 1 Switch the Chinese keyboard and click the keyboard "I".
Step 2 Switch the English keyboard and enter the character "'" and enter the character "m".
Step 3 Enter the character "."
Then it gets stuck, then it crashes, then it goes back.

Expected results

Normal input "i'm."

Actual results

The process is stuck and crashed

Code sample

Sample code
import 'dart:convert';
import 'dart:core';

import 'package:flutter/material.dart';
// import 'package:lottie/lottie.dart';
// import 'package:shared_preferences/shared_preferences.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  String _mess = '';
  Map<String, dynamic>? jj;
  // late final SharedPreferences _pers ;
  String mData = '{"main_car_series":0,"birthday":931968000,"s_id":0,"real_person":1,"gender":2,"nick_name":"111","cash":1302.62,"flags":"1,2,5","id":27,"head":482,"tencent_appid":14006193}';

  late TextEditingController _txtCtr;
  late FocusNode _focus;

  @override
  void initState() {
    super.initState();
    _txtCtr = TextEditingController();
    _focus = FocusNode();
    _initData();
  }

  _initData() async {
    // _pers = await SharedPreferences.getInstance();
   
    // jj = mess;
    _mess = jj == null? "null" : jj!['s_id'].toString();

    // List<String> dd = bb.split(':');
    // if(dd.length > 1){
    //    _counter = int.parse(dd[1]);
    // }
   
    setState(() {
      
    });
  }


  // Map<String, dynamic>? get mess{
  //   String? str;
  //   str = _pers.getString("MESS_DATA");
  //   Map<String, dynamic>? json;
  //   if(str == null || str.isEmpty){
  //     str = mData;
  //   }
  //   json = jsonDecode(str);
  //   // ignore: avoid_print
  //   print('messdata====='+str);
  //   return json;
  // }

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
      _focus.unfocus();
      _mess = '计数:'+_counter.toString();
      jj!['s_id'] = _counter;
      // _pers.setString("MESS_DATA", _mess).then((p){
      //   // ignore: avoid_print
      //   print('add====='+mess!);
      // });
      // saveData();
    });
  }

  // Future<void> saveData() async {
  //   await _pers.setString("MESS_DATA", jsonEncode(jj));
  // }
  // Future<void> removeData() async {
  //   await _pers.remove("MESS_DATA");
  // }

  void clearData(){
    // _pers.remove("MESS_DATA").then((p){
      
    // });
    // removeData();
    // setState(() {
      
    // });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have clicked hhhh the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
            Text(
              _mess,
              style: Theme.of(context).textTheme.headline4,
            ),
            FloatingActionButton(
              onPressed: _incrementCounter, 
              child: const Icon(Icons.add),
            ),
            // Lottie.asset("assets/pot.json",width: 500,height: 500,repeat: true),
            TextField(controller: _txtCtr,onTap: () {
              // // _focus.requestFocus();
              // await Future.delayed(const Duration(milliseconds: 500));
              // _focus.unfocus();
              // Future.delayed(const Duration(milliseconds: 1000),(){
              //   _focus.unfocus();
              // });
              // Future.delayed(const Duration(milliseconds: 1000),(){
              //   _focus.requestFocus();
              // });
              // if(_txtCtr.text.isEmpty){
              //   _txtCtr.text = "1";
              // }
              // if(_txtCtr.text == "1"){
              //   _txtCtr.text = '';
              // }
            },onChanged: (value) {
              // if(_txtCtr.text.isEmpty){
              //   _txtCtr.text = "m";
              // }
              _mess = _txtCtr.text;
              setState(() {
                
              });
            },focusNode: _focus,),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: clearData,
        tooltip: 'Increment',
        child: const Icon(Icons.remove),
      ), // This trailing comma makes auto-formatting nicer for build methods.
      
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Uploading 1694679470.mp4…

Logs

Logs
[Paste your logs here]

Flutter Doctor output

The app “Runner” has been killed by the operating system because it is using too much memory.
Domain: IDEDebugSessionErrorDomain
Code: 11
Recovery Suggestion: Use a memory profiling tool to track the process memory usage.
User Info: {
    DVTErrorCreationDateKey = "2023-09-14 07:57:40 +0000";
    IDERunOperationFailingWorker = DBGLLDBLauncher;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone14,2";
    "device_osBuild" = "17.0 (21A329)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "348.1";
    "dvt_mobiledevice_version" = "1643.2.4";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 2;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 180352;
    "operation_errorCode" = 11;
    "operation_errorDomain" = IDEDebugSessionErrorDomain;
    "operation_errorWorker" = DBGLLDBLauncher;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphoneos";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 8192;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos17.0";
    "sdk_osVersion" = "17.0";
    "sdk_variant" = iphoneos;
}
--

System Information

macOS Version 13.5.2 (Build 22G91)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2023-09-14T15:57:40+08:00

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Sep 14, 2023
  2. huycozy commented on Sep 14, 2023

    @huycozy
    Member

    Hi @zhangyanzhu88
    I checked this issue on iPhone 14 Pro, iOS 17.0 but can't see any crash. I'm using the same XCode Build 15A240d as yours.

    Can you try with minimal sample code below? If the crash still occurs, please provide entire stack trace and output of flutter run -v.

    And please provide the output of flutter doctor -v as well. Thank you!

    Minimal sample code
    import 'package:flutter/material.dart';
    
    void main() {
      runApp(const MyApp());
    }
    
    class MyApp extends StatelessWidget {
      const MyApp({Key? key}) : super(key: key);
    
      @override
      Widget build(BuildContext context) {
        return const MaterialApp(
          home: Scaffold(
            body: Center(
              child: TextField(),
            ),
          ),
        );
      }
    }
    
  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 14, 2023
  4. zhangyanzhu88 commented on Sep 15, 2023

    @zhangyanzhu88
    Author

    flutter doctor -v

    [!] Flutter (Channel [user-branch], 3.13.4, on macOS 13.5.2 22G91 darwin-arm64, locale zh-Hans-CN)
        ! Flutter version 3.13.4 on channel [user-branch] at /Users/misszhang/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 367f9ea16b (2 days ago), 2023-09-12 23:27:53 -0500
        • Engine revision 9064459a8b
        • Dart version 3.1.2
        • DevTools version 2.25.0
        • 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/misszhang/Library/Android/sdk
        • Platform android-33, 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.11+0-b60-7772763)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 15.0)
        • Xcode at /Users/misszhang/Downloads/Xcode.app/Contents/Developer
        • Build 15A240d
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.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 11.0.11+0-b60-7772763)
    
    [✓] VS Code (version 1.82.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.72.0
    
    [✓] VS Code (version 1.63.2)
        • VS Code at /Users/misszhang/Desktop/Old_Homebrew/2022-01-18 11:36:37/opt/homebrew/homebrew/Caskroom/visual-studio-code/1.62.3/Visual Studio Code.app/Contents
        • Flutter extension version 3.72.0
  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 15, 2023
  6. zhangyanzhu88 commented on Sep 15, 2023

    @zhangyanzhu88
    Author
    47_1694741786.mp4
  7. zhangyanzhu88 commented on Sep 15, 2023

    @zhangyanzhu88
    Author
  8. zhangyanzhu88 commented on Sep 15, 2023

    @zhangyanzhu88
    Author
    flutter run -v
    [  +68 ms]  └─Compiling, linking and signing... (completed in 1,575ms)
    [        ] Xcode build done.                                            9.0s
    [        ] executing: /usr/bin/arch -arm64e xcrun xcresulttool get --path /var/folders/_v/tlswlrl91y7b26678vy50rgr0000gn/T/flutter_tools.BvND2w/flutter_ios_build_temp_dircUAYj0/temporary_xcresult_bundle --format json
    [  +30 ms] {
                 "_type" : {
                   "_name" : "ActionsInvocationRecord"
                 },
                 "actions" : {
                   "_type" : {
                     "_name" : "Array"
                   },
                   "_values" : [
                     {
                       "_type" : {
                         "_name" : "ActionRecord"
                       },
                       "actionResult" : {
                         "_type" : {
                           "_name" : "ActionResult"
                         },
                         "coverage" : {
                           "_type" : {
                             "_name" : "CodeCoverageInfo"
                           }
                         },
                         "issues" : {
                           "_type" : {
                             "_name" : "ResultIssueSummaries"
                           }
                         },
                         "metrics" : {
                           "_type" : {
                             "_name" : "ResultMetrics"
                           }
                         },
                         "resultName" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "action"
                         },
                         "status" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "notRequested"
                         }
                       },
                       "buildResult" : {
                         "_type" : {
                           "_name" : "ActionResult"
                         },
                         "coverage" : {
                           "_type" : {
                             "_name" : "CodeCoverageInfo"
                           }
                         },
                         "issues" : {
                           "_type" : {
                             "_name" : "ResultIssueSummaries"
                           },
                           "warningSummaries" : {
                             "_type" : {
                               "_name" : "Array"
                             },
                             "_values" : [
                               {
                                 "_type" : {
                                   "_name" : "IssueSummary"
                                 },
                                 "documentLocationInCreatingWorkspace" : {
                                   "_type" : {
                                     "_name" : "DocumentLocation"
                                   },
                                   "concreteTypeName" : {
                                     "_type" : {
                                       "_name" : "String"
                                     },
                                     "_value" : "Xcode3ProjectDocumentLocation"
                                   },
                                   "url" : {
                                     "_type" : {
                                       "_name" : "String"
                                     },
                                     "_value" :
                                     "file:\/\/\/Users\/misszhang\/Documents\/work\/test\/myapp\/ios\/Pods\/Pods.xcodeproj#Timestamp=716435131.3816381&XcodeLocation=%7B%22Selection%22:%7B%22Editor%22:%22Xcode3BuildSettingsEditor%22,%22Target%22:%22Flutter%22,%22Xcode3BuildSettingsEditorLocations%22:%5B%7B%22Selected%20Build%20Properties%22:%5B%22IPHONEOS_DEPLOYMENT_TARGET%22%5D%7
                                     D%5D%7D%7D"
                                   }
                                 },
                                 "issueType" : {
                                   "_type" : {
                                     "_name" : "String"
                                   },
                                   "_value" : "Target Integrity"
                                 },
                                 "message" : {
                                   "_type" : {
                                     "_name" : "String"
                                   },
                                   "_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.0.99."
                                 }
                               }
                             ]
                           }
                         },
                         "logRef" : {
                           "_type" : {
                             "_name" : "Reference"
                           },
                           "id" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "0~iI3ib0V1AAfC8rbtfptEqlHBkLjcOLqmMRTmZa_I2Y6Ct3Kvc4_TAF2fUUxnLHga0AkpWH7ZgsMUcq4xTP3k-w=="
                           },
                           "targetType" : {
                             "_type" : {
                               "_name" : "TypeDefinition"
                             },
                             "name" : {
                               "_type" : {
                                 "_name" : "String"
                               },
                               "_value" : "ActivityLogSection"
                             }
                           }
                         },
                         "metrics" : {
                           "_type" : {
                             "_name" : "ResultMetrics"
                           },
                           "warningCount" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "1"
                           }
                         },
                         "resultName" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "build"
                         },
                         "status" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "succeeded"
                         }
                       },
                       "endedTime" : {
                         "_type" : {
                           "_name" : "Date"
                         },
                         "_value" : "2023-09-15T09:45:31.383+0800"
                       },
                       "runDestination" : {
                         "_type" : {
                           "_name" : "ActionRunDestinationRecord"
                         },
                         "displayName" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : “xxx的 iPhone"
                         },
                         "localComputerRecord" : {
                           "_type" : {
                             "_name" : "ActionDeviceRecord"
                           },
                           "busSpeedInMHz" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "cpuCount" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "1"
                           },
                           "cpuKind" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "Apple M1"
                           },
                           "cpuSpeedInMHz" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "identifier" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "00008103-000C51523633001E"
                           },
                           "isConcreteDevice" : {
                             "_type" : {
                               "_name" : "Bool"
                             },
                             "_value" : "true"
                           },
                           "logicalCPUCoresPerPackage" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "8"
                           },
                           "modelCode" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "MacBookAir10,1"
                           },
                           "modelName" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "MacBook Air"
                           },
                           "modelUTI" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "com.apple.macbookair-late-2020"
                           },
                           "name" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "My Mac"
                           },
                           "nativeArchitecture" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "arm64e"
                           },
                           "operatingSystemVersion" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "13.5.2"
                           },
                           "operatingSystemVersionWithBuildNumber" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "13.5.2 (22G91)"
                           },
                           "physicalCPUCoresPerPackage" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "8"
                           },
                           "platformRecord" : {
                             "_type" : {
                               "_name" : "ActionPlatformRecord"
                             },
                             "identifier" : {
                               "_type" : {
                                 "_name" : "String"
                               },
                               "_value" : "com.apple.platform.macosx"
                             },
                             "userDescription" : {
                               "_type" : {
                                 "_name" : "String"
                               },
                               "_value" : "macOS"
                             }
                           },
                           "ramSizeInMegabytes" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "16384"
                           }
                         },
                         "targetArchitecture" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "arm64"
                         },
                         "targetDeviceRecord" : {
                           "_type" : {
                             "_name" : "ActionDeviceRecord"
                           },
                           "busSpeedInMHz" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "cpuCount" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "cpuSpeedInMHz" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "identifier" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "00008110-000974A43A3A801E"
                           },
                           "isConcreteDevice" : {
                             "_type" : {
                               "_name" : "Bool"
                             },
                             "_value" : "true"
                           },
                           "logicalCPUCoresPerPackage" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "modelCode" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "iPhone14,2"
                           },
                           "modelName" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "iPhone 13 Pro"
                           },
                           "modelUTI" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "com.apple.iphone-13-pro-1"
                           },
                           "name" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : “xxx的 iPhone"
                           },
                           "nativeArchitecture" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "arm64e"
                           },
                           "operatingSystemVersion" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "17.0"
                           },
                           "operatingSystemVersionWithBuildNumber" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "17.0 (21A329)"
                           },
                           "physicalCPUCoresPerPackage" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           },
                           "platformRecord" : {
                             "_type" : {
                               "_name" : "ActionPlatformRecord"
                             },
                             "identifier" : {
                               "_type" : {
                                 "_name" : "String"
                               },
                               "_value" : "com.apple.platform.iphoneos"
                             },
                             "userDescription" : {
                               "_type" : {
                                 "_name" : "String"
                               },
                               "_value" : "iOS"
                             }
                           },
                           "ramSizeInMegabytes" : {
                             "_type" : {
                               "_name" : "Int"
                             },
                             "_value" : "0"
                           }
                         },
                         "targetSDKRecord" : {
                           "_type" : {
                             "_name" : "ActionSDKRecord"
                           },
                           "identifier" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "iphoneos17.0"
                           },
                           "name" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "iOS 17.0"
                           },
                           "operatingSystemVersion" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "17.0"
                           }
                         }
                       },
                       "schemeCommandName" : {
                         "_type" : {
                           "_name" : "String"
                         },
                         "_value" : "Run"
                       },
                       "schemeTaskName" : {
                         "_type" : {
                           "_name" : "String"
                         },
                         "_value" : "Build"
                       },
                       "startedTime" : {
                         "_type" : {
                           "_name" : "Date"
                         },
                         "_value" : "2023-09-15T09:45:23.762+0800"
                       },
                       "title" : {
                         "_type" : {
                           "_name" : "String"
                         },
                         "_value" : "Build \"Runner\""
                       }
                     }
                   ]
                 },
                 "issues" : {
                   "_type" : {
                     "_name" : "ResultIssueSummaries"
                   },
                   "warningSummaries" : {
                     "_type" : {
                       "_name" : "Array"
                     },
                     "_values" : [
                       {
                         "_type" : {
                           "_name" : "IssueSummary"
                         },
                         "documentLocationInCreatingWorkspace" : {
                           "_type" : {
                             "_name" : "DocumentLocation"
                           },
                           "concreteTypeName" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" : "Xcode3ProjectDocumentLocation"
                           },
                           "url" : {
                             "_type" : {
                               "_name" : "String"
                             },
                             "_value" :
                             "file:\/\/\/Users\/misszhang\/Documents\/work\/test\/myapp\/ios\/Pods\/Pods.xcodeproj#Timestamp=716435131.3816381&XcodeLocation=%7B%22Selection%22:%7B%22Editor%22:%22Xcode3BuildSettingsEditor%22,%22Target%22:%22Flutter%22,%22Xcode3BuildSettingsEditorLocations%22:%5B%7B%22Selected%20Build%20Properties%22:%5B%22IPHONEOS_DEPLOYMENT_TARGET%22%5D%7D%5D%7D%
                             7D"
                           }
                         },
                         "issueType" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "Target Integrity"
                         },
                         "message" : {
                           "_type" : {
                             "_name" : "String"
                           },
                           "_value" : "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.0.99."
                         }
                       }
                     ]
                   }
                 },
                 "metadataRef" : {
                   "_type" : {
                     "_name" : "Reference"
                   },
                   "id" : {
                     "_type" : {
                       "_name" : "String"
                     },
                     "_value" : "0~NebeO2vIPdFn4F1OKLFjbNOw59NZkV55Bnnmw9xF0TMtMbmfuWBTpR_pDoUyleQ8m3lPQM_FtySHkYZfsLEJ6g=="
                   },
                   "targetType" : {
                     "_type" : {
                       "_name" : "TypeDefinition"
                     },
                     "name" : {
                       "_type" : {
                         "_name" : "String"
                       },
                       "_value" : "ActionsInvocationMetadata"
                     }
                   }
                 },
                 "metrics" : {
                   "_type" : {
                     "_name" : "ResultMetrics"
                   },
                   "warningCount" : {
                     "_type" : {
                       "_name" : "Int"
                     },
                     "_value" : "1"
                   }
                 }
               }
    [   +6 ms] executing: rsync -8 -av --delete /Users/misszhang/Documents/work/test/myapp/build/ios/Debug-iphoneos/Runner.app /Users/misszhang/Documents/work/test/myapp/build/ios/iphoneos
    [  +36 ms] sending incremental file list
               Runner.app/
               Runner.app/Info.plist
               Runner.app/Runner
               Runner.app/_CodeSignature/CodeResources
    
               sent 149,943 bytes  received 100 bytes  300,086.00 bytes/sec
               total size is 85,115,242  speedup is 567.27
    [   +1 ms] Installing and launching...
    [        ] Debugging is enabled, connecting to vmService
    [   +1 ms] You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
    [   +1 ms] executing: /usr/bin/xcode-select --print-path
    [   +4 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
    [        ] /Users/misszhang/Downloads/Xcode.app/Contents/Developer
    [        ] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/misszhang/development/flutter/packages/flutter_tools/bin/xcode_debug.js check-workspace-opened --xcode-path /Users/misszhang/Downloads/Xcode.app --project-path /Users/misszhang/Documents/work/test/myapp/ios/Runner.xcodeproj --workspace-path
    /Users/misszhang/Documents/work/test/myapp/ios/Runner.xcworkspace --verbose
    [ +140 ms] {"status":true,"errorMessage":null,"debugResult":null}
    
                        {"command":"check-workspace-opened","xcodePath":"/Users/misszhang/Downloads/Xcode.app","projectPath":"/Users/misszhang/Documents/work/test/myapp/ios/Runner.xcodeproj","workspacePath":"/Users/misszhang/Documents/work/test/myapp/ios/Runner.xcworkspace","targetDestinationId":null,"targetSchemeName":null,"skipBuilding":null,"launchArguments":null,"closeWindowO
                        nStop":null,"promptToSaveBeforeClose":null,"verbose":true}
    [   +1 ms] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/misszhang/development/flutter/packages/flutter_tools/bin/xcode_debug.js debug --xcode-path /Users/misszhang/Downloads/Xcode.app --project-path /Users/misszhang/Documents/work/test/myapp/ios/Runner.xcodeproj --workspace-path /Users/misszhang/Documents/work/test/myapp/ios/Runner.xcworkspace
    --device-id 00008110-000974A43A3A801E --scheme Runner --skip-building --launch-args ["--enable-dart-profiling"] --verbose
    [  +30 ms] stderr:
    {"command":"debug","xcodePath":"/Users/misszhang/Downloads/Xcode.app","projectPath":"/Users/misszhang/Documents/work/test/myapp/ios/Runner.xcodeproj","workspacePath":"/Users/misszhang/Documents/work/test/myapp/ios/Runner.xcworkspace","targetDestinationId":"00008110-000974A43A3A801E","targetSchemeName":"Runner","skipBuilding":true,"launchArguments":["--enable-dart-profiling"],
    "closeWindowOnStop":null,"promptToSaveBeforeClose":null,"verbose":true}
    [ +107 ms] stderr: Workspace: /Users/misszhang/Documents/work/test/myapp/ios/Runner.xcworkspace
    [  +65 ms] stderr: Device: My Mac (00008103-000C51523633001E)
    [  +54 ms] stderr: Device: xxx的 iPhone (00008110-000974A43A3A801E)
    [  +30 ms] stderr: Action result status: not yet started
    [ +520 ms] {"status":true,"errorMessage":null,"debugResult":{"completed":false,"status":"running","errorMessage":null}}
    [   +2 ms] Application launched on the device. Waiting for Dart VM Service url.
    [   +5 ms] Checking for advertised Dart VM Services...
    [   +8 ms] Installing and launching... (completed in 977ms)
    [        ] Error launching application on xxx的 iPhone.
    [   +2 ms] "flutter run" took 16,746ms.
    [   +2 ms] 
               #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
               #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:760:9)
               <asynchronous suspension>
               #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
               <asynchronous suspension>
               #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
               <asynchronous suspension>
               #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
               <asynchronous suspension>
               #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
               <asynchronous suspension>
               #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
               <asynchronous suspension>
               #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #10     main (package:flutter_tools/executable.dart:90:3)
               <asynchronous suspension>
               
               
    [   +8 ms] Running 1 shutdown hook
    [        ] Shutdown hooks complete
    [   +3 ms] exiting with code 1
  9. huycozy commented on Sep 15, 2023

    @huycozy
    Member

    Thanks for the update. I re-formatted your comment for better readability.

    Although it's unclear why I couldn't reproduce the issue previously, I can reproduce it now. Reproduced this issue on iPhone 14 Pro, iOS 17 whilst it works normally on iPhone 7, iOS 15.7.2.

    Even though I couldn't see any error from the output console, the app was frozen, and couldn't input further.

    flutter doctor -v (stable and master)
    [✓] Flutter (Channel stable, 3.13.4, on macOS 13.5 22G74 darwin-x64, locale en-VN)
        • Flutter version 3.13.4 on channel stable at /Users/huynq/Documents/GitHub/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 367f9ea16b (31 hours ago), 2023-09-12 23:27:53 -0500
        • Engine revision 9064459a8b
        • Dart version 3.1.2
        • DevTools version 2.25.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-34, build-tools 32.0.0
        • ANDROID_HOME = /Users/huynq/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)
        • Xcode at /Applications/Xcode15RC.app/Contents/Developer
        • Build 15A240d
        • CocoaPods version 1.11.3
    
    [✓] 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)
    
    [✓] VS Code (version 1.82.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.72.0
    
    [✓] Connected device (5 available)
        • RMX2001 (mobile)       • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
        • iPhone (mobile)        • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
        • iPhone 14 Pro (mobile) • 3BD60F46-FB95-41A0-A179-8AA3F637DA4E     • ios            •
          com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
        • macOS (desktop)        • macos                                    • darwin-x64     • macOS 13.5 22G74 darwin-x64
        • Chrome (web)           • chrome                                   • web-javascript • Google Chrome 117.0.5938.62
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.14.0-14.0.pre.307, on macOS 13.5 22G74 darwin-x64, locale en-VN)
        • Flutter version 3.14.0-14.0.pre.307 on channel master at /Users/huynq/Documents/GitHub/flutter_master
        ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 1e4a1be681 (60 minutes ago), 2023-09-14 19:10:37 -0700
        • Engine revision 45bc4307cd
        • Dart version 3.2.0 (build 3.2.0-162.0.dev)
        • DevTools version 2.28.0-dev.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 32.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-34, build-tools 32.0.0
        • ANDROID_HOME = /Users/huynq/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 14.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 14E222b
        • CocoaPods version 1.11.3
    
    [✓] 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)
    
    [✓] VS Code (version 1.82.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.72.0
    
    [✓] Connected device (4 available)
        • Pixel 7 (mobile) • 2B171FDH20084L                           • android-arm64  • Android 13 (API 33)
        • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
        • macOS (desktop)  • macos                                    • darwin-x64     • macOS 13.5 22G74 darwin-x64
        • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 117.0.5938.62
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
  10. added
    a: text inputEntering text in a text field or keyboard related problems
    platform-iosiOS applications specifically
    a: internationalizationSupporting other languages or locales. (aka i18n)
    e: OS-version specificAffects only some versions of the relevant operating system
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    and removed
    in triagePresently being triaged by the triage team
    on Sep 15, 2023
  11. 11 remaining items

  12. stuartmorgan-g commented on Sep 21, 2023

    @stuartmorgan-g
    Contributor

    @hellohuanlin Assigning to you since you said you were looking into this; if you don't end up having time to work on this please let me know. This is a likely CP candidate (assuming a fix that's viable for CP).

  13. castleche commented on Sep 22, 2023

    @castleche

    This could repro with iOS 17.0.1. As more users are upgrading to iOS 17, this issue is causing increasingly lost to our app. Hope this can be fixed by Apple or Flutter soon.

  14. jkgatt commented on Sep 25, 2023

    @jkgatt

    Another issue similarly related to this too is when having Auto-Correction on.
    Typing in both Japanese or Chinese and English characters seems to hang at some point and crashes the whole app.

    Reproducible steps:

    1. Add a single character in Japanese/Chinese
    2. Change to English and start typing, ensuring you activate auto-correct.
    3. App just hangs.

    Reproduced this on three different devices, all on iOS 17.0.1.

    The log that seems related to this issue:
    Screenshot 2023-09-25 at 10 39 36

  15. hellohuanlin commented on Oct 4, 2023

    @hellohuanlin
    Contributor

    quick update that i found a potential fix, which happens to resolve another issue with text input. I am doing more testing in case of regression.

  16. jkgatt commented on Oct 5, 2023

    @jkgatt

    @hellohuanlin this is great news, please keep us informed!

  17. yx-mike commented on Oct 22, 2023

    @yx-mike
  18. zhangyanzhu88 commented on Nov 21, 2023

    @zhangyanzhu88
    Author

    @huycozy hi,Is the problem solved?

  19. hellohuanlin commented on Nov 21, 2023

    @hellohuanlin
    Contributor

    @zhangyanzhu88 this is resolved. I think it's also released yesterday iirc.

  20. zhangyanzhu88 commented on Nov 22, 2023

    @zhangyanzhu88
    Author

    @hellohuanlin thank you

  21. added
    r: fixedIssue is closed as already fixed in a newer version
    on Nov 22, 2023
  22. github-actions commented on Dec 6, 2023

    @github-actions

    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 flutter doctor -v and a minimal reproduction of the issue.

  23. locked as resolved and limited conversation to collaborators on Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemse: OS-version specificAffects only some versions of the relevant operating systemfound in release: 3.13Found to occur in 3.13found in release: 3.14Found to occur in 3.14has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions