[GH-ISSUE #1802] Barrier fails when config file contain non-ASCII characters #1321

Open
opened 2026-05-05 07:43:47 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @Wind-Explorer on GitHub (Oct 7, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1802

What happened?

By connecting my Mac as the server and Windows PC as the client together, I clicked Start.

Barrier seems to be stuck in a loop, and from the logs I see repeated error messages, as seen from below:
截屏2022-10-07 下午11 08 04

From this we can see that invalid character has been read from the configuration file and the server process seems to panic when it happens.

By seperately saving and loading configuration file, I found my Windows PC screen name located in line 2 of the file, exactly where the error occured.
截屏2022-10-07 下午11 10 02

It seems that Barrier server process is having difficulties reading non-ASCII characters (in this case Chinese) in the configuration file.

After some digging, I found out about the ability to change the screen name for each devices, but I would still like to point out that it would be better if non-ASCII hostnames can be automatically converted to English alphabets for Barrier server process to work with, since right now by default, the device hostname (which may not always be in English) is used as screen name.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Executables provided in GitHub repository release page

What OSes are you seeing the problem on? (Check all that apply)

Windows

What OS versions are you using?

Windows 11 Home (22H2) as the client
macOS Ventura (13.0 Developer Beta 7) as the server

Relevant log output

forgot to copy paste log output from above screenshot window before closing it.

Any other information

No response

Originally created by @Wind-Explorer on GitHub (Oct 7, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1802 ### What happened? By connecting my Mac as the server and Windows PC as the client together, I clicked Start. Barrier seems to be stuck in a loop, and from the logs I see repeated error messages, as seen from below: <img width="1557" alt="截屏2022-10-07 下午11 08 04" src="https://user-images.githubusercontent.com/66894537/194586410-c3464434-e150-4872-8852-5bbbeb230390.png"> From this we can see that invalid character has been read from the configuration file and the server process seems to panic when it happens. By seperately saving and loading configuration file, I found my Windows PC screen name located in line 2 of the file, exactly where the error occured. <img width="235" alt="截屏2022-10-07 下午11 10 02" src="https://user-images.githubusercontent.com/66894537/194586983-203ccc17-b368-43bc-abaf-56adf290a01a.png"> It seems that Barrier server process is having difficulties reading non-ASCII characters (in this case Chinese) in the configuration file. After some digging, I found out about the ability to change the screen name for each devices, but I would still like to point out that it would be better if non-ASCII hostnames can be automatically converted to English alphabets for Barrier server process to work with, since right now by default, the device hostname (which may not always be in English) is used as screen name. ### Version v2.4.0 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? Executables provided in GitHub repository release page ### What OSes are you seeing the problem on? (Check all that apply) Windows ### What OS versions are you using? Windows 11 Home (22H2) as the client macOS Ventura (13.0 Developer Beta 7) as the server ### Relevant log output ```shell forgot to copy paste log output from above screenshot window before closing it. ``` ### Any other information _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1321
No description provided.