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

Sunshine error at launch #1446

Closed
3 tasks done
Jerophoto opened this issue Jul 13, 2023 · 13 comments · Fixed by #2132
Closed
3 tasks done

Sunshine error at launch #1446

Jerophoto opened this issue Jul 13, 2023 · 13 comments · Fixed by #2132

Comments

@Jerophoto
Copy link

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 nightly release?

  • This issue is present in the nightly release

Describe the Bug

I just installed Sunshine on my Windows 10 desktop but when i open it i get this message: Terminate called after throwing an instance of 'std::range_error'
what(): wstring_convert::from_bytes

And suddenly stops.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Docker

Operating System Version

Windows 10

Architecture

64 bit

Sunshine commit or version

0.20.0

Package

Windows - installer

GPU Type

Nvidia

GPU Model

Quaddro M 4000

GPU Driver/Mesa Version

536.25

Capture Method (Linux Only)

No response

Config

OS Name	Microsoft Windows 10 Pro
Version	10.0.19045 Build 19045
Other OS Description 	Not Available
OS Manufacturer	Microsoft Corporation
System Name	JEDAIL
System Manufacturer	System manufacturer
System Model	System Product Name
System Type	x64-based PC
System SKU	SKU
Processor	Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz, 4200 Mhz, 4 Core(s), 4 Logical Processor(s)
BIOS Version/Date	American Megatrends Inc. 3801, 14.03.2018
SMBIOS Version	3.0
Embedded Controller Version	255.255
BIOS Mode	Legacy
BaseBoard Manufacturer	ASUSTeK COMPUTER INC.
BaseBoard Product	MAXIMUS VIII GENE
BaseBoard Version	Rev 1.xx
Platform Role	Desktop
Secure Boot State	Unsupported
PCR7 Configuration	Binding Not Possible
Windows Directory	C:\WINDOWS
System Directory	C:\WINDOWS\system32
Boot Device	\Device\HarddiskVolume7
Locale	Switzerland
Hardware Abstraction Layer	Version = "10.0.19041.2728"
Username	JEDAIL\Jérôme
Time Zone	W. Europe Summer Time
Installed Physical Memory (RAM)	32,0 GB
Total Physical Memory	31,9 GB
Available Physical Memory	18,2 GB
Total Virtual Memory	63,9 GB
Available Virtual Memory	46,1 GB
Page File Space	32,0 GB
Page File	C:\pagefile.sys
Kernel DMA Protection	Off
Virtualisation-based security	Not enabled
Device Encryption Support	Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and the device is not Modern Standby, Un-allowed DMA-capable bus/device(s) detected, TPM is not usable
Hyper-V - VM Monitor Mode Extensions	Yes
Hyper-V - Second Level Address Translation Extensions	Yes
Hyper-V - Virtualisation Enabled in Firmware	No
Hyper-V - Data Execution Protection	Yes

Apps

No response

Relevant log output

Terminate called after throwing an instance of 'std::range_error'
  what():  wstring_convert::from_bytes
@Nonary
Copy link
Collaborator

Nonary commented Jul 25, 2023

You have invalid configuration in your sunshine.conf file, please upload it.

@ReenigneArcher ReenigneArcher added the invalid:template-incomplete Template is not completed. label Jul 26, 2023
@LizardByte-bot
Copy link
Member

👋 @Jerophoto, please edit your issue to complete the template with all the required info. Your issue will be automatically closed in 5 days if the template is not completed. Thanks.

@LizardByte-bot LizardByte-bot removed the invalid:template-incomplete Template is not completed. label Jul 27, 2023
@wangzhaode
Copy link

same error and my sunshine.conf is default, it's content is null.

image

@cgutman
Copy link
Collaborator

cgutman commented Aug 10, 2023

I think this is a duplicate of #475. Please try this build: https://github.com/LizardByte/Sunshine/suites/14939820346/artifacts/851805098 (must be signed in with GitHub account)

@jmiguec
Copy link

jmiguec commented Oct 9, 2023

I think this is a duplicate of #475. Please try this build: https://github.com/LizardByte/Sunshine/suites/14939820346/artifacts/851805098 (must be signed in with GitHub account)

First time I'm installing Sunshine and I'm having the same problem. In my case, my local installation path also contains spaces ' ' and characters like 'ã'. In any version I try to install I've the same sympthons, therefore I'm not able to install any Sunshine version.

@MrJiaGe
Copy link

MrJiaGe commented Dec 21, 2023

I encountered the same problem, my version of sunshine is 0.21.0, Windows11, the system language is Chinese (simplified), but my problem is very strange: My sunshine started normally and displayed an icon in the lower right corner of the desktop, but after clicking the icon and then clicking the open sunshine button, the program would crash, then I manually ran the exe and exported the log. The result is "terminate called after throwing an instance of 'std::range_error'
what(): wstring_convert::from_bytes ". In addition, there is a weird thing: if I open a browser and manually type in the webUI, the web site will open and I can use the default Desktop stream, but the application involving other startup applications (such as steam big pic) will still crash in the same way.

@ByronLeeeee
Copy link

I encountered the same problem, my version of sunshine is 0.21.0, Windows11, the system language is Chinese (simplified), but my problem is very strange: My sunshine started normally and displayed an icon in the lower right corner of the desktop, but after clicking the icon and then clicking the open sunshine button, the program would crash, then I manually ran the exe and exported the log. The result is "terminate called after throwing an instance of 'std::range_error' what(): wstring_convert::from_bytes ". In addition, there is a weird thing: if I open a browser and manually type in the webUI, the web site will open and I can use the default Desktop stream, but the application involving other startup applications (such as steam big pic) will still crash in the same way.

@3856887

可以依次通过Win+S输入【区域】并进入区域设置,点击【管理】标签页,然后点击【更改系统区域设置】,勾选【Beta版:使用Unicode UTF-8 提供全球语言支持】,重启电脑即可成功打开。

(The following is the English version)
You can sequentially enter "Region" through Win+S and access the region settings. Click on the "Manage" tab, then click on "Change system locale." Check the option for "Beta: Use Unicode UTF-8 for worldwide language support," and restart your computer to successfully open it.

@Kaehvaman
Copy link

I encountered the same problem, my version of sunshine is 0.21.0, Windows11, the system language is Chinese (simplified), but my problem is very strange: My sunshine started normally and displayed an icon in the lower right corner of the desktop, but after clicking the icon and then clicking the open sunshine button, the program would crash, then I manually ran the exe and exported the log. The result is "terminate called after throwing an instance of 'std::range_error' what(): wstring_convert::from_bytes ". In addition, there is a weird thing: if I open a browser and manually type in the webUI, the web site will open and I can use the default Desktop stream, but the application involving other startup applications (such as steam big pic) will still crash in the same way.

@3856887

可以依次通过Win+S输入【区域】并进入区域设置,点击【管理】标签页,然后点击【更改系统区域设置】,勾选【Beta版:使用Unicode UTF-8 提供全球语言支持】,重启电脑即可成功打开。

(The following is the English version) You can sequentially enter "Region" through Win+S and access the region settings. Click on the "Manage" tab, then click on "Change system locale." Check the option for "Beta: Use Unicode UTF-8 for worldwide language support," and restart your computer to successfully open it.

Thank you!

@ZReplicant
Copy link

ZReplicant commented Feb 9, 2024

I encountered the same problem, my version of sunshine is 0.21.0, Windows11, the system language is Chinese (simplified), but my problem is very strange: My sunshine started normally and displayed an icon in the lower right corner of the desktop, but after clicking the icon and then clicking the open sunshine button, the program would crash, then I manually ran the exe and exported the log. The result is "terminate called after throwing an instance of 'std::range_error' what(): wstring_convert::from_bytes ". In addition, there is a weird thing: if I open a browser and manually type in the webUI, the web site will open and I can use the default Desktop stream, but the application involving other startup applications (such as steam big pic) will still crash in the same way.

@3856887

可以依次通过Win+S输入【区域】并进入区域设置,点击【管理】标签页,然后点击【更改系统区域设置】,勾选【Beta版:使用Unicode UTF-8 提供全球语言支持】,重启电脑即可成功打开。

(The following is the English version) You can sequentially enter "Region" through Win+S and access the region settings. Click on the "Manage" tab, then click on "Change system locale." Check the option for "Beta: Use Unicode UTF-8 for worldwide language support," and restart your computer to successfully open it.

As expected, this also works if the system language is cyrillic (russian). Thanks, that problem has bugged me for a month!

@Kaehvaman
Copy link

But devs should not close this issue because that option in Windows breaks other apps. For example all text in MSI Afterburner looked like this: "???????????????????"

@ByronLeeeee
Copy link

But devs should not close this issue because that option in Windows breaks other apps. For example all text in MSI Afterburner looked like this: "???????????????????"

Yes, this feature, as indicated by its prompt, is a Beta feature. It converts characters without specified encoding to UTF-8 encoding, which may result in many old files becoming garbled and may also cause many legacy applications to display garbled text. Generally, it should not be opened casually... Therefore, the simplest solution is to submit a PR to make Sunshine default to UTF-8 encoding, which will resolve the Bug of software failure caused by non-English system languages.

@cgutman
Copy link
Collaborator

cgutman commented Feb 11, 2024

We are defaulting to UTF-8 and generally do take care to use Unicode-compatible APIs in Sunshine. I'm not completely sure what's going on, but I will try to install a Russian or Chinese version of Windows in a VM and see if I can debug it.

@cgutman
Copy link
Collaborator

cgutman commented Feb 11, 2024

Please test this build: https://github.com/LizardByte/Sunshine/actions/runs/7864940019/artifacts/1236941310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.