LizardByte / LizardByte/Sunshine

Sunshine crashes during autostart (Windows boot) causing AMD graphics driver timeout/crash

Open
#4,065 13 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
41.3k
Forks
2.1k
Avg merge
23h 47m
Merged PRs (30d)
124

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your issue described in the documentation?

- [x] I have read the documentation

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

I'm too lazy to test

### Describe the Bug

Sunshine crashes during Windows startup, triggering an AMD graphics driver crash or timeout. As a result, Sunshine enters a non-functional state: streaming is not possible, the host appears "offline", and the configuration web interface is inaccessible.

Workaround:
Manually closing Sunshine from the system tray and restarting it via sunshine.exe restores full functionality.
Disabling Sunshine's autostart also prevents the AMD driver crash/timeout from occurring.

### Expected Behavior

- Working sunshine with autostart
- No AMD graphics driver crash/timeout

### Additional Context

- The issue does not occur when using AMD driver version 23.3.1.
- I have also reported the issue to AMD.
- I’ve tested different display configurations, but the issue persists.

### Host Operating System

Windows

### Operating System Version

Win11 24H2 (Build 26100.4652)

### Architecture

amd64/x86_64

### Sunshine commit or version

v2025.628.4510 also on v2025.118.151840

### Package

Windows - installer (recommended)

### GPU Type

AMD

### GPU Model

RX 9070

### GPU Driver/Mesa Version

25.6.1

### Capture Method

None

### Config

```Shell
is empty
```

### Apps

```json

```

### Relevant log output

```shell
[2025-07-11 16:23:31.549]: Info: Sunshine version: v2025.628.4510
[2025-07-11 16:23:31.550]: Info: Package Publisher: LizardByte
[2025-07-11 16:23:31.550]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-07-11 16:23:31.550]: Info: Get support: https://app.lizardbyte.dev/support
[2025-07-11 16:23:31.550]: Info: Provided workaround settings for SettingsManager:
{
"hdr_blank_delay": null
}
[2025-07-11 16:23:31.596]: Info: Currently available display devices:
[
{
"device_id": "{0a9851af-7c28-596c-9429-691851451521}",
"display_name": "",
"edid": {
"manufacturer_id": "GSM",
"product_code": "0001",
"serial_number": 16843009
},
"friendly_name": "LG TV",
"info": null
},
{
"device_id": "{74fc82fd-05e3-520f-a247-27d8d3de6025}",
"display_name": "\\\\.\\DISPLAY2",
"edid": {
"manufacturer_id": "SAM",
"product_code": "0B43",
"serial_number": 1515864408
},
"friendly_name": "S24D300",
"info": {
"hdr_state": null,
"origin_point": {
"x": 2560,
"y": 357
},
"primary": false,
"refresh_rate": {
"type": "rational",
"value": {
"denominator": 1001,
"numerator": 60000
}
},
"resolution": {
"height": 1080,
"width": 1920
},
"resolution_scale": {
"type": "rational",
"value": {
"denominator": 100,
"numerator": 100
}
}
}
},
{
"device_id": "{e91cc73e-d030-5f24-8f6e-09d2c8a415f2}",
"display_name": "\\\\.\\DISPLAY1",
"edid": {
"manufacturer_id": "GSM",
"product_code": "5C97",
"serial_number": 252588
},
"friendly_name": "LG ULTRAGEAR",
"info": {
"hdr_state": "Disabled",
"origin_point": {
"x": 0,
"y": 0
},
"primary": true,
"refresh_rate": {
"type": "rational",
"value": {
"denominator": 1,
"numerator": 180
}
},
"resolution": {
"height": 1440,
"width": 2560
},
"resolution_scale": {
"type": "rational",
"value": {
"denominator": 100,
"numerator": 100
}
}
}
}
]
[2025-07-11 16:23:31.621]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2025-07-11 16:23:31.636]: Info: Compiling shaders...
[2025-07-11 16:23:31.723]: Info: Compiled shaders
[2025-07-11 16:23:31.736]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-07-11 16:23:31.736]: Info: Trying encoder [nvenc]
[2025-07-11 16:23:31.852]: Info:
Device Description : AMD Radeon RX 9070
Device Vendor ID : 0x00001002
Device Device ID : 0x00007550
Device Video Mem : 16304 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16346 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 4480x1440
[2025-07-11 16:23:31.852]: Info: Active GPU has HAGS enabled
[2025-07-11 16:23:31.852]: Info: Using realtime GPU priority
[2025-07-11 16:23:31.852]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 10
Red Primary : [0.685547,0.308594]
Green Primary : [0.264648,0.667969]
Blue Primary : [0.150391,0.0576172]
White Point : [0.313477,0.329102]
Min Luminance : 0.3923 nits
Max Luminance : 408 nits
Max Full Luminance : 408 nits
[2025-07-11 16:23:31.853]: Info: Desktop resolution [2560x1440]
[2025-07-11 16:23:31.853]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-07-11 16:23:31.853]: Info: Display refresh rate [180Hz]
[2025-07-11 16:23:31.853]: Info: Requested frame rate [60fps]
[2025-07-11 16:23:31.855]: Info: Encoder [nvenc] is not supported on this GPU
[2025-07-11 16:23:31.866]: Info: Trying encoder [quicksync]
[2025-07-11 16:23:31.949]: Info:
Device Description : AMD Radeon RX 9070
Device Vendor ID : 0x00001002
Device Device ID : 0x00007550
Device Video Mem : 16304 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16346 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 4480x1440
[2025-07-11 16:23:31.949]: Info: Active GPU has HAGS enabled
[2025-07-11 16:23:31.949]: Info: Using realtime GPU priority
[2025-07-11 16:23:31.949]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 10
Red Primary : [0.685547,0.308594]
Green Primary : [0.264648,0.667969]
Blue Primary : [0.150391,0.0576172]
White Point : [0.313477,0.329102]
Min Luminance : 0.3923 nits
Max Luminance : 408 nits
Max Full Luminance : 408 nits
[2025-07-11 16:23:31.949]: Info: Desktop resolution [2560x1440]
[2025-07-11 16:23:31.949]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-07-11 16:23:31.949]: Info: Display refresh rate [180Hz]
[2025-07-11 16:23:31.949]: Info: Requested frame rate [60fps]
[2025-07-11 16:23:31.951]: Info: Encoder [quicksync] is not supported on this GPU
[2025-07-11 16:23:31.962]: Info: Trying encoder [amdvce]
[2025-07-11 16:23:32.034]: Info:
Device Description : AMD Radeon RX 9070
Device Vendor ID : 0x00001002
Device Device ID : 0x00007550
Device Video Mem : 16304 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16346 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 4480x1440
[2025-07-11 16:23:32.034]: Info: Active GPU has HAGS enabled
[2025-07-11 16:23:32.035]: Info: Using realtime GPU priority
[2025-07-11 16:23:32.035]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 10
Red Primary : [0.685547,0.308594]
Green Primary : [0.264648,0.667969]
Blue Primary : [0.150391,0.0576172]
White Point : [0.313477,0.329102]
Min Luminance : 0.3923 nits
Max Luminance : 408 nits
Max Full Luminance : 408 nits
[2025-07-11 16:23:32.035]: Info: Desktop resolution [2560x1440]
[2025-07-11 16:23:32.035]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-07-11 16:23:32.035]: Info: Display refresh rate [180Hz]
[2025-07-11 16:23:32.035]: Info: Requested frame rate [60fps]
[2025-07-11 16:23:32.051]: Info: Creating encoder [h264_amf]
[2025-07-11 16:23:32.051]: Info: Color coding: SDR (Rec. 601)
[2025-07-11 16:23:32.051]: Info: Color depth: 8-bit
[2025-07-11 16:23:32.051]: Info: Color range: JPEG
[2025-07-11 16:23:32.089]: Info: Streaming bitrate is 1000000
[2025-07-11 16:23:33.662]: Info: System tray created
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files, tests, or entry points. Start by reproducing Sunshine autostart on Windows 11 with the reported AMD RX 9070 and driver version, then trace the startup logs around display and encoder initialization. Done means Sunshine starts without triggering the graphics-driver timeout, remains online, and exposes its web interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.