Skip to content

App crashes when displayName is written in CJK(Chinese, Korean, Japanese) #34066

@ZeroCho

Description

@ZeroCho

Description

In android emulator, if I change app name to Korean or Chinese, it crashes.
If I revert the name of an app to english, it works well again.

Version

0.69

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22000
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 5.96 GB / 31.93 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
Watchman: 20210110.135312.0 - C:\ProgramData\chocolatey\bin\watchman.EXE
SDKs:
Android SDK: Not Found
Windows SDK:
AllowAllTrustedApps: Disabled
Versions: 10.0.19041.0
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 11.0.1
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.0 => 0.69.0
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. react-native init koreantestapp
  2. change app_name to 세종대왕 in res/values/strings.xml OR (make res/values-ko/strings.xml and change app_name to 세종대왕)
  3. npm run android
  4. Crash!

Snack, code example, screenshot, or link to a repository

https://github.com/ZeroCho/food-delivery-app-69

Activity

ZeroCho

ZeroCho commented on Jun 25, 2022

@ZeroCho
Author

@mensonones Thx, it's a Flipper issue.

android/gradle.properties

FLIPPER_VERSION=0.145.0

works fine.

oakis

oakis commented on Nov 28, 2022

@oakis

@mensonones Thx, it's a Flipper issue.

android/gradle.properties

FLIPPER_VERSION=0.145.0

works fine.

This was also the solution for me. I had a Swedish character in my name and couldn't figure out why the app crashed. Thanks for the solution!

cortinico

cortinico commented on Nov 28, 2022

@cortinico
Contributor

Thanks for sharing the resolution @ZeroCho
I'm closing as we updated the default Flipper version last week. It will land in 0.72
Users on previous versions of RN can still manually update the version as you suggested

sqlsystems

sqlsystems commented on Dec 1, 2022

@sqlsystems

@ZeroCho 감사합니다. 디버그 실력에 감탄 했습니다!

Pointotech

Pointotech commented on Jan 10, 2023

@Pointotech

This is a nasty bug that breaks apps created with older versions of React Native. Updating Flipper to 0.145.0 fixes this.

@ZeroCho Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: FixedA PR that fixes this issue has been merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cortinico@oakis@ZeroCho@sqlsystems@Pointotech

        Issue actions

          App crashes when displayName is written in CJK(Chinese, Korean, Japanese) · Issue #34066 · facebook/react-native