Skip to content

Some Unicode characters in Text cause a crash #12280

@najeira

Description

@najeira

Some Unicode characters in Text cause a crash.

Steps to Reproduce

import 'package:flutter/material.dart';

void main() {
  runApp(new MaterialApp(
    home: new Text('॑'),
  ));
}

The string contains this character: http://unicode.org/cldr/utility/character.jsp?a=0951

Actual devices that confirmed crash:

  • Android: 6.0, 7.0, 7.1
  • Devices: Nexus 5, Xperia Z3 Compact, Xperia XZ, Xperia X Performance, LG G4, Xperia Z5, Galaxy S7 Edge, P10 lite

There is no problem with the Android emulator and iOS.

Logs

flutter run console:

F/libc    (16474): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x151 in tid 16506 (Thread-5)

backtrace from Google Play Console:

native: pc 0000000000329584  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000032786d  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000031fd9f  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000490d73  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000490263  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000488e41  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 00000000004889f9  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000048a49b  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000048a22d  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000480d49  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000480e4b  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000047fe4f  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000047fb99  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 000000000048dcb3  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000062c81  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000060b89  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000060b43  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 00000000003aed9b  /data/app/com.example.android-1/lib/arm/libflutter.so
native: pc 0000000000002324  /data/data/com.example.android/app_flutter/vm_snapshot_instr

Flutter doctor

[✓] Flutter (on Mac OS X 10.12.6 16G29, locale ja-JP, channel master)
    • Flutter at /Applications/flutter
    • Framework revision 63d7b9338d (10 hours ago), 2017-09-26 14:54:23 -0700
    • Engine revision 9c518cb751
    • Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
    • Android SDK at /Users/najeira/Library/Android/sdk
    • Platform android-26, build-tools 26.0.1
    • ANDROID_HOME = /Users/najeira/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.0, Build version 9A235
    • ios-deploy 1.9.2
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.1)
    • Flutter plugin version 16.0
    • Dart plugin version 172.3544.34

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions