Skip to content

Infinite loop in Mac text field #77855

@justinmc

Description

@justinmc
  1. Run an app on Mac with any sort of text field, such as the example code below.
  2. Click to focus the input.
  3. Quickly hammer down on some keys like "asdf".

The text will oscillate back and forth in the field and the following error will be logged over and over again in the console:

2021-03-10 15:06:45.620 sandbox[35149:395097] TSMSendMessageToUIServer: CFMessagePortSendRequest FAILED(-1) to send to port com.apple.tsm.uiserver
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: Center(
          child: TextField(),
        ),
      ),
    );
  }
}

Not sure if I or someone else broke this recently or if it's been around awhile. CC @gspencergoog @dkwingsmt

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsplatform-macBuilding on or for macOS specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions