Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

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

Open BjorniFPV opened this issue 6 months ago • 10 comments

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

is empty

Apps


Relevant log output

[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

BjorniFPV avatar Jul 11 '25 15:07 BjorniFPV

I was trying to hunt down why I got a driver timeout nearly every boot, and I think this is why. I have Sunshine installed, but don't frequently use it (looks like I'm a few versions behind at 0.21.0). Same thing though where the web interface doesn't load until I restart.

jacobgb24 avatar Aug 09 '25 04:08 jacobgb24

You're 8 versions and 2 years behind. Please update as there have been several security fixes since then.

ReenigneArcher avatar Aug 09 '25 12:08 ReenigneArcher

I also have this same issue. Only difference is I'm using a 9070xt. Latest drivers, bios and software updates. Happens with Sunshine and other forks.

mnkybndit avatar Aug 31 '25 07:08 mnkybndit

my 9070xt is also have this same issue

flppt avatar Sep 03 '25 10:09 flppt

Same problem with a rx480

adri10499 avatar Sep 04 '25 14:09 adri10499

Same problem here with an RX 9070 XT. It’s a brand-new build, and I initially thought I had a faulty GPU. However, the problem completely disappears after uninstalling Sunshine.

chelit4s avatar Sep 18 '25 22:09 chelit4s

Is this a duplicate of https://github.com/LizardByte/Sunshine/issues/4139?

darkwisebear avatar Oct 02 '25 08:10 darkwisebear

I'm also using an RX 9070 XT and noticed the same issue.

~~Going into services.msc and setting the Sunshine service to Delayed start fixed the issue for me. Now I get no AMD errors and sunshine launches as it should.~~

Edit 1: Setting the service to "Delayed start" only seems to work sometimes but not always for me. I have now changed it to "Manual" startup and made a task in Task scheduler to start it up a few min after boot instead. So far no issues...

Edit 2: Adding onto my workaround above, disabling "Fast startup" in Windows seemed to fix the issue even after a regular shutdown, not just reboot

krofinzki avatar Oct 03 '25 06:10 krofinzki

我也在使用 RX 9070 XT,并注意到了同样的问题。

~进入 services.msc 并将 Sunshine 服务设置为延迟启动为我解决了这个问题。现在我没有收到 AMD 错误,并且阳光会按应有的方式发射。~

编辑 1:将服务设置为“延迟启动”似乎只是有时有效,但对我来说并不总是有效。我现在已将其更改为“手动”启动,并在任务计划程序中执行任务,以便在启动后几分钟启动它。到目前为止没有问题......

编辑 2:添加到我上面的解决方法中,即使在定期关闭后,在 Windows 中禁用“快速启动”似乎也能解决问题,而不仅仅是重新启动

你是最正确的 什么都不用设置 只要禁用快速启动就能完全解决问题 十分感谢

sky123456789sky avatar Oct 13 '25 13:10 sky123456789sky

I have the same issue - at startup I have an error report from AMD drivers that there was a timeout or crash, the sunshine service is running but the web UI is unavailable and I can't create a stream connection. Restarting the service fixes the issue. Tried to set the service to delayed start but didn't help so I'm trying the workaround from @krofinzki Sunshine version: 2025.924.154138 CPU: AMD Ryzen 7 7800X3D GPU: AMD RX 9060 TX, AMD driver version 25.11.1

zuzi-m avatar Dec 05 '25 10:12 zuzi-m