Skip to content

Sunshine crashes with 0xc0000005 immediately after New streaming session started (RTSP handshake fails) #5472

Description

@dfsgdgsdgdg

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

Sunshine crashes with ACCESS_VIOLATION (0xc0000005) as soon as a Moonlight client launches a stream. Pairing and applist work. The last useful log line is New streaming session started [active sessions: 1], then the process dies and SunshineService restarts it.

Moonlight then fails the RTSP handshake with a connection reset:

  • Moonlight Qt on the same PC (127.0.0.1): error 10054
  • Moonlight iOS: error 54
  • Moonlight on Samsung Tizen TV: error 15

Reproduction:

  1. Install Sunshine (tested v2026.516.143833 and v2025.924.154138)
  2. Pair Moonlight
  3. Launch Desktop
  4. Sunshine crashes; client shows RTSP handshake failure

Expected Behavior

Stream starts normally and RTSP handshake completes.

Additional Context

Crash still happens after these mitigations:

  • Firewall disabled
  • LAN encryption disabled + re-pair via localhost
  • encoder = software (libx264)
  • stream_audio = disabled
  • nvenc_realtime_hags = disabled, system_tray = disabled
  • HAGS disabled
  • Resolution changed from 2560x1080 to 1920x1080
  • NVIDIA driver rollback from 610.88 to 572.83
  • Reproduced on localhost Moonlight (not a remote/network-only issue)

Windows fault details:

  • Faulting application: Sunshine.exe
  • Exception: 0xc0000005
  • Fault offset on v2025.924.154138: 0x00000000000abcb2
  • Fault offset on v2026.516.143833: 0x00000000000c067f

Minidumps exist under %LOCALAPPDATA%\CrashDumps\sunshine.exe.*.dmp (can upload on request). Example from the original Sunshine session: sunshine.exe.23972.dmp.

Host Operating System

Windows

Operating System Version

Windows 11 Pro 25H2 (build 26200)

Architecture

amd64/x86_64

Sunshine commit or version

v2026.516.143833 and v2025.924.154138

Package

Windows - msi installer (recommended)

GPU Type

NVIDIA

GPU Model

NVIDIA GeForce RTX 3060

GPU Driver/Mesa Version

Reproduced on Game Ready 610.88 and 572.83

Capture Method

Desktop Duplication API (Windows)

Config

nvenc_realtime_hags = disabled
system_tray = disabled
encoder = software
stream_audio = disabled
hevc_mode = 0
av1_mode = 0
lan_encryption_mode = 0

Also crashed with default/empty config.

Apps

Default Desktop app from stock apps.json.

Online logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions