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

Unable to connect if PC hostname is UTF-16 encoded #3381

Closed
2 tasks done
Snugug opened this issue Nov 8, 2024 · 2 comments · Fixed by #3382
Closed
2 tasks done

Unable to connect if PC hostname is UTF-16 encoded #3381

Snugug opened this issue Nov 8, 2024 · 2 comments · Fixed by #3382
Assignees
Labels
bug Something isn't working

Comments

@Snugug
Copy link

Snugug commented Nov 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

On Windows, if the hostname of the PC is UTF-16 encoded (mine included ö), everything appears to start and work from from the Sunshine side (besides a small error about encoding in the logs) but connecting to Moonlight will fail without a helpful message. Overriding the name to be UTF-8 encoded solves the problem.

Expected Behavior

Any valid UTF-16 encoded (or otherwise extended) string should be a valid hostname

Additional Context

No response

Host Operating System

Windows

Operating System Version

10

Architecture

amd64/x86_64

Sunshine commit or version

0.23.1

Package

Windows - installer (recommended)

GPU Type

Nvidia

GPU Model

RTX 2060 Super

GPU Driver/Mesa Version

Unknown

Capture Method

None

Config

No response

Apps

No response

Relevant log output

[2024:11:08:06:36:42]: Info: Sunshine version: v0.23.1
[2024:11:08:06:36:42]: Info: nvprefs: No need to modify application profile settings
[2024:11:08:06:36:42]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:11:08:06:36:42]: Info: Compiling shaders...
[2024:11:08:06:36:42]: Info: System tray created
[2024:11:08:06:36:42]: Info: Compiled shaders
[2024:11:08:06:36:42]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:11:08:06:36:42]: Info: Trying encoder [nvenc]
[2024:11:08:06:36:42]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:11:08:06:36:42]: Info: Set GPU preference: 1
[2024:11:08:06:36:42]: Info: 
Device Description : NVIDIA GeForce RTX 2060 SUPER
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001F06
Device Video Mem   : 8006 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16337 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:11:08:06:36:42]: Info: Active GPU has HAGS disabled
[2024:11:08:06:36:42]: Info: Using realtime GPU priority
[2024:11:08:06:36:42]: Info: Desktop resolution [2560x1440]
[2024:11:08:06:36:42]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:11:08:06:36:42]: Info: Display refresh rate [59.951Hz]
[2024:11:08:06:36:42]: Info: Requested frame rate [60fps]
[2024:11:08:06:36:42]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.662109,0.329102]
Green Primary      : [0.300781,0.620117]
Blue Primary       : [0.144531,0.0488281]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:11:08:06:36:42]: Info: SDR color coding [Rec. 601]
[2024:11:08:06:36:42]: Info: Color depth: 8-bit
[2024:11:08:06:36:42]: Info: Color range: [JPEG]
[2024:11:08:06:36:42]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:11:08:06:36:42]: Info: SDR color coding [Rec. 601]
[2024:11:08:06:36:42]: Info: Color depth: 8-bit
[2024:11:08:06:36:42]: Info: Color range: [JPEG]
[2024:11:08:06:36:42]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:11:08:06:36:42]: Info: SDR color coding [Rec. 601]
[2024:11:08:06:36:42]: Info: Color depth: 8-bit
[2024:11:08:06:36:42]: Info: Color range: [JPEG]
[2024:11:08:06:36:42]: Error: NvEnc: encoding format is not supported by the gpu
[2024:11:08:06:36:43]: Info: 
Device Description : NVIDIA GeForce RTX 2060 SUPER
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001F06
Device Video Mem   : 8006 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16337 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:11:08:06:36:43]: Info: Active GPU has HAGS disabled
[2024:11:08:06:36:43]: Info: Using realtime GPU priority
[2024:11:08:06:36:43]: Info: Desktop resolution [2560x1440]
[2024:11:08:06:36:43]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:11:08:06:36:43]: Info: Display refresh rate [59.951Hz]
[2024:11:08:06:36:43]: Info: Requested frame rate [60fps]
[2024:11:08:06:36:43]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.662109,0.329102]
Green Primary      : [0.300781,0.620117]
Blue Primary       : [0.144531,0.0488281]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:11:08:06:36:43]: Info: SDR color coding [Rec. 709]
[2024:11:08:06:36:43]: Info: Color depth: 10-bit
[2024:11:08:06:36:43]: Info: Color range: [JPEG]
[2024:11:08:06:36:43]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:11:08:06:36:43]: Info: 
[2024:11:08:06:36:43]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:11:08:06:36:43]: Info: 
[2024:11:08:06:36:43]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:11:08:06:36:43]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:11:08:06:36:43]: Error: Failed to get UTF-16 buffer size: 1113
[2024:11:08:06:36:43]: Info: Configuration UI available at [https://localhost:47990]
[2024:11:08:06:36:43]: Info: Registered Sunshine mDNS service
@ReenigneArcher ReenigneArcher added the bug Something isn't working label Nov 9, 2024
@cgutman
Copy link
Collaborator

cgutman commented Nov 9, 2024

Can you elaborate on what you mean by "UTF-16 encoded" vs "UTF-8 encoded" and what exactly you changed as a workaround? Both UTF-8 and UTF-16 can express the ö character.

Are you talking about overriding the hostname in sunshine.conf (labeled as "Sunshine Name" in the UI) with a UTF-8 vs UTF-16 string, or you've actually configured Windows with a UTF-16 hostname?

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Nov 9, 2024

They changed the "Sunshine Name" in the Sunshine config. https://discord.com/channels/804382334370578482/1304413118197141575/1304583500640424066

Edit: to clarify, originally it was pulling from the OSes hostname. They worked around the issue by removing the symbol in the sunshine config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants