[GH-ISSUE #3345] win11 Settings ->Advanced Settings cannot be opened #7193

Closed
opened 2026-08-05 01:11:58 -04:00 by saavagebueno · 10 comments
Owner

Originally created by @moqiu365 on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3345

Describe the problem

After pulling the code, I tracked the issue and found that due to the default font loading order, the tray icon, Settings ->Advanced Settings cannot be opened

Just move the code from line 113 in the client/ui/cron_ui.go file to line 93, and the problem will be solved

I used the fixed code, but it still reports this error on Win10 with only comments
client.setDefaultFonts()
Later, the management page can only be opened, and I don't know how to fix it

After reviewing the information, I found that the reason is that FYNE does not support the ttc font very well

Because I am not very good at using Git and do not know how to submit the code I have modified, I am raising this issue. Once the issue is resolved, I will close it

The following is the repair process

Image

The following is the console log after the error occurred

Image

Expected behavior

Successful images when running the program after repair

Image

Are you using NetBird Cloud?

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

netbird version

NetBird status -dA output:

If applicable, add the `netbird status -dA' command output.

Do you face any (non-mobile) client issues?

Please provide the file created by netbird debug for 1m -AS.
We advise reviewing the anonymized files for any remaining PII.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Originally created by @moqiu365 on GitHub (Feb 18, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3345 **Describe the problem** After pulling the code, I tracked the issue and found that due to the default font loading order, the tray icon, Settings ->Advanced Settings cannot be opened Just move the code from line 113 in the client/ui/cron_ui.go file to line 93, and the problem will be solved I used the fixed code, but it still reports this error on Win10 with only comments client.setDefaultFonts() Later, the management page can only be opened, and I don't know how to fix it After reviewing the information, I found that the reason is that FYNE does not support the ttc font very well Because I am not very good at using Git and do not know how to submit the code I have modified, I am raising this issue. Once the issue is resolved, I will close it The following is the repair process ![Image](https://github.com/user-attachments/assets/ae3946c8-f8b9-4bf9-afec-d13649554271) The following is the console log after the error occurred ![Image](https://github.com/user-attachments/assets/8f3a6c11-83a3-472b-9c51-e2c58cd2aaaa) **Expected behavior** Successful images when running the program after repair ![Image](https://github.com/user-attachments/assets/8063ff26-7e22-4212-aaa8-c3c599b0f38a) **Are you using NetBird Cloud?** Please specify whether you use NetBird Cloud or self-host NetBird's control plane. **NetBird version** `netbird version` **NetBird status -dA output:** If applicable, add the `netbird status -dA' command output. **Do you face any (non-mobile) client issues?** Please provide the file created by `netbird debug for 1m -AS`. We advise reviewing the anonymized files for any remaining PII. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here.
saavagebueno added the triage-needed label 2026-08-05 01:11:58 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Feb 19, 2025):

@moqiu365 This week, we fixed an issue related to the peer sessions and the settings menu. Can you confirm if you have tested with the most recent code in our main repo and that the problem persists without your proposal?

<!-- gh-comment-id:2669102267 --> @mlsmaycon commented on GitHub (Feb 19, 2025): @moqiu365 This week, we fixed an issue related to the peer sessions and the settings menu. Can you confirm if you have tested with the most recent code in our main repo and that the problem persists without your proposal?
Author
Owner

@moqiu365 commented on GitHub (Feb 19, 2025):

本周,我们修复了与对等会话和设置菜单相关的问题。您能否确认您是否已经使用我们主存储库中的最新代码进行了测试,并且问题在没有您的提议的情况下仍然存在?

I have deleted the local code, created a new folder, and pulled the latest code. Even after deployment, I still have this problem. Here are my steps

//Clean up the previous cache
go clean -modcache
//Delete the pulled code (delete the entire folder) and re pull it

git clone https://ghproxy.cfd/https://github.com/netbirdio/netbird.git
cd netbird/
go mod tidy
cd client/
go build -x -v -o netbird-ui.exe .\ui\

Then using the administrator to run it, clicking on Settings ->Advanced Settings, the above problem appeared. Strangely, I followed my previous solution and still encountered this problem, only commenting it out
client.setDefaultFonts()
This line of code is required to open advanced settings

Upon further investigation, it was found that the issue was caused by zh CN using ttc format fonts in client \ ui \ font_windows.go, which is not well supported by the fyne framework for ttc format fonts

Many Chinese fonts that come with the Windows system are not allowed for commercial use

Suggest changing the font in zh CN format to
https://github.com/adobe-fonts/source-han-sans/tree/release
This ttf format font avoids commercial disputes,

<!-- gh-comment-id:2670190043 --> @moqiu365 commented on GitHub (Feb 19, 2025): > 本周,我们修复了与对等会话和设置菜单相关的问题。您能否确认您是否已经使用我们主存储库中的最新代码进行了测试,并且问题在没有您的提议的情况下仍然存在? I have deleted the local code, created a new folder, and pulled the latest code. Even after deployment, I still have this problem. Here are my steps //Clean up the previous cache go clean -modcache //Delete the pulled code (delete the entire folder) and re pull it git clone https://ghproxy.cfd/https://github.com/netbirdio/netbird.git cd netbird/ go mod tidy cd client/ go build -x -v -o netbird-ui.exe .\ui\ Then using the administrator to run it, clicking on Settings ->Advanced Settings, the above problem appeared. Strangely, I followed my previous solution and still encountered this problem, only commenting it out client.setDefaultFonts() This line of code is required to open advanced settings Upon further investigation, it was found that the issue was caused by zh CN using ttc format fonts in client \ ui \ font_windows.go, which is not well supported by the fyne framework for ttc format fonts Many Chinese fonts that come with the Windows system are not allowed for commercial use Suggest changing the font in zh CN format to https://github.com/adobe-fonts/source-han-sans/tree/release This ttf format font avoids commercial disputes,
Author
Owner

@moqiu365 commented on GitHub (Feb 20, 2025):

There is another solution, in
client\ui\font_windows.go
Annotate lines 28, 32, and 33 to use the default font, which will also enable it to open advanced settings normally

Image

<!-- gh-comment-id:2670525069 --> @moqiu365 commented on GitHub (Feb 20, 2025): There is another solution, in client\ui\font_windows.go Annotate lines 28, 32, and 33 to use the default font, which will also enable it to open advanced settings normally ![Image](https://github.com/user-attachments/assets/1939fe81-dfe5-44d7-8d93-5a3dc0e6b3b3)
Author
Owner

@wgetnz commented on GitHub (Feb 21, 2025):

I have the same problem

<!-- gh-comment-id:2675885719 --> @wgetnz commented on GitHub (Feb 21, 2025): I have the same problem
Author
Owner

@AtaLuZiK commented on GitHub (Mar 10, 2025):

same problem +1

<!-- gh-comment-id:2712208218 --> @AtaLuZiK commented on GitHub (Mar 10, 2025): same problem +1
Author
Owner

@levindecaro commented on GitHub (Mar 11, 2025):

same problem +1

<!-- gh-comment-id:2712554483 --> @levindecaro commented on GitHub (Mar 11, 2025): same problem +1
Author
Owner

@RoyLi-Pvt commented on GitHub (Mar 11, 2025):

0.38 same problem

<!-- gh-comment-id:2712810964 --> @RoyLi-Pvt commented on GitHub (Mar 11, 2025): 0.38 same problem
Author
Owner

@lpqoang commented on GitHub (Mar 12, 2025):

The issue still exists v0.38.0

<!-- gh-comment-id:2716378273 --> @lpqoang commented on GitHub (Mar 12, 2025): The issue still exists v0.38.0
Author
Owner

@betaxab commented on GitHub (Mar 15, 2025):

The issue still exists in Windows11 24H2 Simple Chinese edition, nb client windows version: v0.38.0

<!-- gh-comment-id:2726399230 --> @betaxab commented on GitHub (Mar 15, 2025): The issue still exists in Windows11 24H2 Simple Chinese edition, nb client windows version: v0.38.0
Author
Owner

@lpqoang commented on GitHub (Mar 24, 2025):

The issue still exists v0.38.0

v0.39.1 fixed

<!-- gh-comment-id:2747014807 --> @lpqoang commented on GitHub (Mar 24, 2025): > The issue still exists v0.38.0 v0.39.1 fixed
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#7193