mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1802] Barrier fails when config file contain non-ASCII characters #1321
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:

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.

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
Any other information
No response