Skip to content

Vram "leak" #4703

@Khaivn1308

Description

@Khaivn1308

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

Image Image

at the start of the stream, vram usage is quite low. but vram usage isnt static, it keeps climbing steadily. when GTT reaches about 5gb, the stream starts to lag.

Expected Behavior

Vram stay at a reasonable level and dont lag the stream.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Ubuntu 25.10

Architecture

amd64/x86_64

Package

Linux - AppImage

GPU Type

AMD

GPU Model

Radeon 780m

GPU Driver/Mesa Version

25.3.5 - kisak-mesa PPA

Capture Method

KMS (Linux)

Apps

Log output

[2026-02-11 14:05:18.971]: Info: Sunshine version: 2026.211.25443 commit: 9d0622856b643165b9269287248ae99b01d57041
[2026-02-11 14:05:18.971]: Info: Package Publisher: LizardByte
[2026-02-11 14:05:18.971]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-02-11 14:05:18.971]: Info: Get support: https://app.lizardbyte.dev/support
[2026-02-11 14:05:18.971]: Info: config: 'controller' = disabled
[2026-02-11 14:05:18.971]: Info: config: 'high_resolution_scrolling' = disabled
[2026-02-11 14:05:18.971]: Info: config: 'keyboard' = disabled
[2026-02-11 14:05:18.971]: Info: config: 'stream_audio' = disabled
[2026-02-11 14:05:18.975]: Error: Couldn't load cuda: -1
[2026-02-11 14:05:18.976]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:18.976]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2026-02-11 14:05:18.976]: Info: Detecting displays
[2026-02-11 14:05:18.977]: Info: Detected display: eDP-1 (id: 0)eDP-1 connected: true
[2026-02-11 14:05:19.106]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-02-11 14:05:19.106]: Info: Trying encoder [nvenc]
[2026-02-11 14:05:19.106]: Info: Screencasting with KMS
[2026-02-11 14:05:19.106]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.107]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:19.107]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.107]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:19.307]: Info: Screencasting with KMS
[2026-02-11 14:05:19.307]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.308]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:19.308]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.308]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:19.509]: Info: Encoder [nvenc] failed
[2026-02-11 14:05:19.509]: Info: Trying encoder [vaapi]
[2026-02-11 14:05:19.509]: Info: Screencasting with KMS
[2026-02-11 14:05:19.509]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.509]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:19.509]: Info: Found connector ID [94]
[2026-02-11 14:05:19.510]: Info: Found cursor plane [77]
[2026-02-11 14:05:19.525]: Info: Creating encoder [h264_vaapi]
[2026-02-11 14:05:19.525]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:19.525]: Info: Color depth: 8-bit
[2026-02-11 14:05:19.525]: Info: Color range: JPEG
[2026-02-11 14:05:19.537]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:19.538]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:19.538]: Info: Using normal encoding mode
[2026-02-11 14:05:19.538]: Info: Using default rate control
[2026-02-11 14:05:19.562]: Info: Creating encoder [hevc_vaapi]
[2026-02-11 14:05:19.562]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:19.562]: Info: Color depth: 8-bit
[2026-02-11 14:05:19.562]: Info: Color range: JPEG
[2026-02-11 14:05:19.575]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:19.575]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:19.575]: Info: Using normal encoding mode
[2026-02-11 14:05:19.575]: Info: Using default rate control
[2026-02-11 14:05:19.597]: Info: Creating encoder [av1_vaapi]
[2026-02-11 14:05:19.597]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:19.598]: Info: Color depth: 8-bit
[2026-02-11 14:05:19.598]: Info: Color range: JPEG
[2026-02-11 14:05:19.607]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:19.607]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:19.607]: Info: Using normal encoding mode
[2026-02-11 14:05:19.607]: Info: Using VBR with single frame VBV size
[2026-02-11 14:05:19.607]: Warning: [av1_vaapi @ 0x555a1bc8dc80] Multiple slices were requested but this codec does not support controlling slices.
[2026-02-11 14:05:19.621]: Info: Screencasting with KMS
[2026-02-11 14:05:19.621]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:19.622]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:19.622]: Info: Found connector ID [94]
[2026-02-11 14:05:19.622]: Info: Found cursor plane [77]
[2026-02-11 14:05:19.627]: Info: Creating encoder [hevc_vaapi]
[2026-02-11 14:05:19.627]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:19.627]: Info: Color depth: 10-bit
[2026-02-11 14:05:19.627]: Info: Color range: JPEG
[2026-02-11 14:05:19.638]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:19.638]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:19.638]: Info: Using normal encoding mode
[2026-02-11 14:05:19.638]: Info: Using default rate control
[2026-02-11 14:05:19.661]: Info: Creating encoder [av1_vaapi]
[2026-02-11 14:05:19.661]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:19.661]: Info: Color depth: 10-bit
[2026-02-11 14:05:19.662]: Info: Color range: JPEG
[2026-02-11 14:05:19.670]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:19.671]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:19.671]: Info: Using normal encoding mode
[2026-02-11 14:05:19.671]: Info: Using VBR with single frame VBV size
[2026-02-11 14:05:19.671]: Warning: [av1_vaapi @ 0x555a1bc8dc80] Multiple slices were requested but this codec does not support controlling slices.
[2026-02-11 14:05:19.685]: Info: 
[2026-02-11 14:05:19.685]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-02-11 14:05:19.685]: Info: 
[2026-02-11 14:05:19.685]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2026-02-11 14:05:19.685]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2026-02-11 14:05:19.685]: Info: Found AV1 encoder: av1_vaapi [vaapi]
[2026-02-11 14:05:19.687]: Info: Starting system tray
[2026-02-11 14:05:19.689]: Info: Adding avahi service Inspiron
[2026-02-11 14:05:19.692]: Info: Configuration UI available at [https://localhost:47990]
[2026-02-11 14:05:19.718]: Info: System tray created
[2026-02-11 14:05:19.719]: Info: Starting main loop
[2026-02-11 14:05:20.476]: Info: Avahi service Inspiron successfully established.
[2026-02-11 14:05:26.083]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-02-11 14:05:26.083]: Info: Trying encoder [nvenc]
[2026-02-11 14:05:26.083]: Info: Screencasting with KMS
[2026-02-11 14:05:26.083]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.084]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:26.084]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.085]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:26.286]: Info: Screencasting with KMS
[2026-02-11 14:05:26.286]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.286]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:26.286]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.287]: Error: Couldn't find monitor [0]
[2026-02-11 14:05:26.487]: Info: Encoder [nvenc] failed
[2026-02-11 14:05:26.487]: Info: Trying encoder [vaapi]
[2026-02-11 14:05:26.487]: Info: Screencasting with KMS
[2026-02-11 14:05:26.487]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.487]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:26.487]: Info: Found connector ID [94]
[2026-02-11 14:05:26.488]: Info: Found cursor plane [77]
[2026-02-11 14:05:26.497]: Info: Creating encoder [h264_vaapi]
[2026-02-11 14:05:26.497]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:26.497]: Info: Color depth: 8-bit
[2026-02-11 14:05:26.497]: Info: Color range: JPEG
[2026-02-11 14:05:26.508]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.509]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:26.509]: Info: Using normal encoding mode
[2026-02-11 14:05:26.509]: Info: Using default rate control
[2026-02-11 14:05:26.532]: Info: Creating encoder [hevc_vaapi]
[2026-02-11 14:05:26.532]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:26.532]: Info: Color depth: 8-bit
[2026-02-11 14:05:26.532]: Info: Color range: JPEG
[2026-02-11 14:05:26.543]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.544]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:26.544]: Info: Using normal encoding mode
[2026-02-11 14:05:26.544]: Info: Using default rate control
[2026-02-11 14:05:26.565]: Info: Creating encoder [av1_vaapi]
[2026-02-11 14:05:26.565]: Info: Color coding: SDR (Rec. 601)
[2026-02-11 14:05:26.565]: Info: Color depth: 8-bit
[2026-02-11 14:05:26.565]: Info: Color range: JPEG
[2026-02-11 14:05:26.574]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.575]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:26.575]: Info: Using normal encoding mode
[2026-02-11 14:05:26.575]: Info: Using VBR with single frame VBV size
[2026-02-11 14:05:26.575]: Warning: [av1_vaapi @ 0x7a58d804b480] Multiple slices were requested but this codec does not support controlling slices.
[2026-02-11 14:05:26.588]: Info: Screencasting with KMS
[2026-02-11 14:05:26.588]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.588]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:26.589]: Info: Found connector ID [94]
[2026-02-11 14:05:26.589]: Info: Found cursor plane [77]
[2026-02-11 14:05:26.594]: Info: Creating encoder [hevc_vaapi]
[2026-02-11 14:05:26.594]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:26.594]: Info: Color depth: 10-bit
[2026-02-11 14:05:26.594]: Info: Color range: JPEG
[2026-02-11 14:05:26.606]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.606]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:26.606]: Info: Using normal encoding mode
[2026-02-11 14:05:26.606]: Info: Using default rate control
[2026-02-11 14:05:26.629]: Info: Creating encoder [av1_vaapi]
[2026-02-11 14:05:26.629]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:26.629]: Info: Color depth: 10-bit
[2026-02-11 14:05:26.629]: Info: Color range: JPEG
[2026-02-11 14:05:26.638]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.638]: Info: Streaming bitrate is 1000000
[2026-02-11 14:05:26.638]: Info: Using normal encoding mode
[2026-02-11 14:05:26.638]: Info: Using VBR with single frame VBV size
[2026-02-11 14:05:26.638]: Warning: [av1_vaapi @ 0x7a58d804b480] Multiple slices were requested but this codec does not support controlling slices.
[2026-02-11 14:05:26.653]: Info: 
[2026-02-11 14:05:26.653]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-02-11 14:05:26.653]: Info: 
[2026-02-11 14:05:26.653]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2026-02-11 14:05:26.653]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2026-02-11 14:05:26.653]: Info: Found AV1 encoder: av1_vaapi [vaapi]
[2026-02-11 14:05:26.653]: Info: Executing [Desktop]
[2026-02-11 14:05:26.731]: Info: New streaming session started [active sessions: 1]
[2026-02-11 14:05:26.755]: Info: CLIENT CONNECTED
[2026-02-11 14:05:26.807]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.808]: Info: Screencasting with KMS
[2026-02-11 14:05:26.808]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:26.808]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:26.808]: Info: Found connector ID [94]
[2026-02-11 14:05:26.808]: Info: Found cursor plane [77]
[2026-02-11 14:05:26.817]: Info: Creating encoder [h264_vaapi]
[2026-02-11 14:05:26.817]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:26.817]: Info: Color depth: 8-bit
[2026-02-11 14:05:26.817]: Info: Color range: MPEG
[2026-02-11 14:05:26.828]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:26.828]: Info: Streaming bitrate is 33388000
[2026-02-11 14:05:26.828]: Info: Using normal encoding mode
[2026-02-11 14:05:26.828]: Info: Using default rate control
[2026-02-11 14:05:26.835]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-02-11 14:05:31.246]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:31.247]: Info: Screencasting with KMS
[2026-02-11 14:05:31.247]: Info: /dev/dri/card1 -> amdgpu
[2026-02-11 14:05:31.248]: Info: Found monitor for DRM screencasting
[2026-02-11 14:05:31.248]: Info: Found connector ID [102]
[2026-02-11 14:05:31.248]: Info: Found cursor plane [77]
[2026-02-11 14:05:31.256]: Info: Creating encoder [h264_vaapi]
[2026-02-11 14:05:31.256]: Info: Color coding: SDR (Rec. 709)
[2026-02-11 14:05:31.256]: Info: Color depth: 8-bit
[2026-02-11 14:05:31.256]: Info: Color range: MPEG
[2026-02-11 14:05:31.265]: Info: vaapi vendor: Mesa Gallium driver 25.3.5 - kisak-mesa PPA for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 20.1.8, DRM 3.64, 6.17.0-12-generic)
[2026-02-11 14:05:31.266]: Info: Streaming bitrate is 33388000
[2026-02-11 14:05:31.266]: Info: Using normal encoding mode
[2026-02-11 14:05:31.266]: Info: Using default rate control
[2026-02-11 14:05:31.268]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-02-11 14:25:30.164]: Info: Opening UI from system tray
[2026-02-11 14:25:30.207]: Info: Opened url [https://localhost:47990]
[2026-02-11 14:25:34.786]: Info: Web UI: [127.0.0.1] -- not authorized

Online logs

No response

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