Skip to content

[CP] Flutter apps crash when emojis and Korean text are combined #112963

@cyanglaz

Description

@cyanglaz

issue_link

#111494

Commit Hash

ba1c87a

Target

stable

pr_link

flutter/engine#36807

Impacted Users

end-customers who types in Korean on iPhone running on iOS 16. Although not tested, other languages that have similar behavior might also be affected, such as Japanese.

Impact Description

on iOS 16, app crashes when an emoji followed by multiple Korean characters combining into one.

Workaround

No.

Risk

Medium

Test Coverage

yes

Validation Steps

  1. Ensure to add Korean keyboard in the simulator or iPhone. (can be tested with iOS 16 simulator or iPhone device running on iOS 16):
  2. Launch a flutter app with the below sample code
  3. Type in an emoji in the text field
  4. Type in Korean characters ㅇ ㅏ
  5. Observe app crashes when ㅇ ㅏ combined.

code sample

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Korean Emoji Crash'),
        ),
        body: const Center(child: TextField()),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    cp: approvedApproved cherry-pick requestcp: reviewCherry-picks in the review queue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions