Skip to content

[Bug] Launch failure + Chinese rendering issue + Wrong config save path #76

@CodeCatMeow

Description

@CodeCatMeow

Description

There are three issues to report as follows. I guess these should be related to the incomplete Chinese support of the program.

Issue 1

For the portable version of Ferrite, after launching it for the first time, modifying certain configurations and then closing the software, Ferrite fails to launch when double-clicking the icon or selecting "Open" from the right-click context menu.
Deleting the configuration file allows the software to launch with default settings, but the same launch failure will recur if the problematic configurations are modified again. The expected behavior is that the software can be launched normally at all times, and this issue will not occur if the specific configurations are left unchanged.

Testing has verified that the following configuration modifications will trigger the above launch failure:

  • Changing the option "Which CJK font to prioritize for regional glyph variants" to any option other than "Auto". Reverting this setting back to "Auto" will not cause the launch issue.
  • Setting the Font to "Maple Mono NF CN" or "consolas".

Issue 2

On Chinese-language operating systems (when the software can be launched successfully), Chinese character rendering fails on startup, as shown in the following screenshots:

Image Image

The Chinese rendering returns to normal after either changing the font once or modifying the option "Which CJK font to prioritize for regional glyph variants", as shown here:

Image

However, the Chinese character rendering failure will reoccur on the next launch. The expected behavior is that there should be no Chinese rendering issues at all.

Issue 3

The portable version automatically saves configurations to the user directory by default. Configurations will only be saved to a portable directory if this directory is manually created in the same folder where ferrite.exe is located—this requirement is not documented in the README file.
For a portable version, the expected behavior is that the software automatically creates a configuration directory in the same folder as the binary file and saves all configurations there, instead of defaulting to the user directory.

Environment

  • OS: Windows 11, Chinese-language
  • Ferrite version: 0.2.6
  • Rust version: no rust
  • Installation method: pre-built binary

Steps to Reproduce

Detailed reproduction steps are already provided in the Description section. A concise summary of the steps for Issue 1 is listed below (the core steps for other issues are described in natural language in the Description):

  1. Extract the package and launch ferrite.exe.
  2. Open the settings and change the option "Which CJK font to prioritize for regional glyph variants" to any option other than "Auto".
  3. Close the program.
  4. Double-click ferrite.exe—the software cannot be launched.

others

All relevant information (including current erroneous behavior, expected correct behavior, and unlisted reproduction steps for other issues) has been provided in the Description section. Please let me know if any part of the description is unclear or incomplete, and I will supplement the information promptly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2.7bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions