Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported macOS build crashes in compatibility mode with a Chinese application name #95173

Closed
mosquitochang opened this issue Aug 5, 2024 · 3 comments · Fixed by #95235
Closed

Comments

@mosquitochang
Copy link

Tested versions

  • Reproducible in 4.3.rc2, 4.3.rc1, 4.2.2.stable, 4.2.2.rc2, 4.2.1.stable, 4.2.1.rc1
  • Not reproducible in 4.2.stable, 4.1.4.stable, 4.0.4.stable

System information

Godot v4.3.rc2 - macOS 14.6.0 - GLES3 (Compatibility) - Apple M1 Pro - Apple M1 Pro (10 Threads)

Issue description

Exported macOS build crashes in compatibility mode with a Chinese application name

In my test, the application crashes when those conditions are met:

  1. macOS (doesn't happen in Windows, Andriod and iOS)
  2. Exported build (doesn't happen in the editor)
  3. Compatibility mode (doesn't happen in forward+ and mobile mode)
  4. The application name contains Chinese char (doesn't happen for Japanese char, e.g. "あいうえお")
  5. The application name is larger than one char (e.g. "一" is working fine, but "一二" is not)

This bug is likely to be included during the time between 4.2.stable and 4.2.1.rc1.

Steps to reproduce

  1. Open Godot editor
  2. Create a new project with compatibility mode and a Chinese project name (e.g. "遊戲")
  3. Setup a blank scene as the start scene, and export a macOS build with the default preset
  4. Execute the "遊戲.app" and immediately crashed

Minimal reproduction project (MRP)

MRP: 4.3.rc2-crash.zip
Crash report: 4.3.rc2-crash.txt

@inhalt120g
Copy link

Just tested it: confirming it crashes on my end too
v4.3.rc2.official [3978628]
Godot v4.3.rc2 - macOS 14.5.0 - GLES3 (Compatibility) - Apple M1 - Apple M1 (8 Threads)

@akien-mga
Copy link
Member

This bug is likely to be included during the time between 4.2.stable and 4.2.1.rc1.

Changes in 4.2.1.rc1: https://godotengine.github.io/godot-interactive-changelog/#4.2.1-rc1

I don't see any obvious culprit in the list. My only guess would be maybe #85785, if there's a bug in the ANGLE OpenGL backend maybe?

CC @bruvzg

@bruvzg
Copy link
Member

bruvzg commented Aug 6, 2024

Will take a look, but macOS does not like a lot of characters in the executable names, and crash seems to be in the OS code.

It's best to use Latin only base app name (which is also used for the executable name) and use localized app name to translate it (that's what macOS will display in Finder and all other places).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Very Bad
Development

Successfully merging a pull request may close this issue.

4 participants