Portal fails to grab full resolution when scaling is applied

Abierto
#6,063 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, linux

Línea de trabajo

Start by tracing the XDG Portal Grab and PipeWire capture path; the issue provides logs showing a 2560x1440 output with a 2048x1152 logical size at 125% scaling. Compare stream dimensions when scaling is set before startup with dimensions after changing it midstream. Done means a stream started with scaling captures the full window, as it does after a midstream scaling change.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

When using a monitor created with krfb-virtualmonitor that has a scaling different than 100% part of the streamed window will be cutoff. Only occurs when the stream is started with the scaling. If it is changed midstream it will still work properly. Logs attached of a stream started at 100% scaling and 125% scaling.

Works properly on KWin Screencast, however that is no longer available in the Flatpak version.

Expected Behavior

No response

Additional Context

Discussed here https://github.com/ublue-os/bazzite/issues/6253

Host Operating System

Linux

Operating System Version

Bazzite 45

Architecture

amd64/x86_64

Package

Linux - flathub/flatpak

GPU Type

NVIDIA

GPU Model

4070 Ti

GPU Driver/Mesa Version

615.78.08

Capture Method

XDG Portal Grab (FreeBSD/Linux)

Apps

Log output
[2026-11-07 17:46:20.053]: Info: CLIENT CONNECTED
[2026-11-07 17:46:20.089]: Info: [portalgrab] Loaded portal restore token from disk
[2026-11-07 17:46:20.089]: Warning: setpriority failed for nice -10: Permission denied
[2026-11-07 17:46:20.099]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:46:20.099]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:46:20.099]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:46:20.099]: Info: [wayland] Found interface: wl_output(110) version 4
[2026-11-07 17:46:20.099]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:46:20.099]: Info: [wayland] Offset: 0x0
[2026-11-07 17:46:20.099]: Info: [wayland] Logical size: 2560x1440
[2026-11-07 17:46:20.099]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:46:20.099]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:46:20.101]: Info: [portalgrab] Found stream for display id/name: 'Virtual-sunshine-vmon' position: 0x0 resolution: 2560x1440
[2026-11-07 17:46:20.102]: Error: Failed to gain CAP_SYS_ADMIN
[2026-11-07 17:46:20.102]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-11-07 17:46:20.102]: Info: Screencasting with XDG portal
[2026-11-07 17:46:20.102]: Info: [pipewire] Requested frame rate: 120fps
[2026-11-07 17:46:20.102]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:46:20.119]: Info: [portalgrab] Loaded portal restore token from disk
[2026-11-07 17:46:20.127]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:46:20.128]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:46:20.128]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:46:20.128]: Info: [wayland] Found interface: wl_output(110) version 4
[2026-11-07 17:46:20.128]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:46:20.128]: Info: [wayland] Offset: 0x0
[2026-11-07 17:46:20.128]: Info: [wayland] Logical size: 2560x1440
[2026-11-07 17:46:20.128]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:46:20.128]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:46:20.130]: Info: [pipewire] Streaming display 'Virtual-sunshine-vmon' offset: 0x0 resolution: 2560x1440
[2026-11-07 17:46:20.130]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:46:20.130]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:46:20.130]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:46:20.130]: Info: [wayland] Found interface: wl_output(110) version 4
[2026-11-07 17:46:20.130]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:46:20.130]: Info: [wayland] Offset: 0x0
[2026-11-07 17:46:20.130]: Info: [wayland] Logical size: 2560x1440
[2026-11-07 17:46:20.130]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:46:20.130]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:46:20.132]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
[2026-11-07 17:46:20.132]: Info: [pipewire] Connected to pipewire version 1.6.11
[2026-11-07 17:46:20.132]: Info: [pipewire] PipeWire stream state: connecting -> paused
[2026-11-07 17:46:20.147]: Info: [pipewire] Video format: 12
[2026-11-07 17:46:20.147]: Info: [pipewire] Size: 2560x1440
[2026-11-07 17:46:20.147]: Info: [pipewire] Color primaries: 0
[2026-11-07 17:46:20.147]: Info: [pipewire] Transfer function: 0
[2026-11-07 17:46:20.147]: Info: [pipewire] Compositor negotiated frame rate: 0/1, max: 119953/1000
[2026-11-07 17:46:20.147]: Info: [pipewire] using memory buffers
[2026-11-07 17:46:20.152]: Info: Creating encoder [hevc_nvenc]
[2026-11-07 17:46:20.152]: Info: Color coding: SDR (Rec. 601)
[2026-11-07 17:46:20.164]: Info: Color depth: 8-bit
[2026-11-07 17:46:20.164]: Info: Color range: MPEG



[2026-11-07 17:47:00.846]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:47:00.847]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:47:00.847]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:47:00.847]: Info: [wayland] Found interface: wl_output(113) version 4
[2026-11-07 17:47:00.847]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:47:00.847]: Info: [wayland] Offset: 0x0
[2026-11-07 17:47:00.847]: Info: [wayland] Logical size: 2048x1152
[2026-11-07 17:47:00.847]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:47:00.847]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:47:00.849]: Info: [portalgrab] Found stream for display id/name: 'Virtual-sunshine-vmon' position: 0x0 resolution: 2048x1152
[2026-11-07 17:47:00.850]: Error: Failed to gain CAP_SYS_ADMIN
[2026-11-07 17:47:00.850]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-11-07 17:47:00.850]: Info: Screencasting with XDG portal
[2026-11-07 17:47:00.850]: Info: [pipewire] Requested frame rate: 120fps
[2026-11-07 17:47:00.850]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:47:00.865]: Info: [portalgrab] Loaded portal restore token from disk
[2026-11-07 17:47:00.874]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:47:00.874]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:47:00.874]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:47:00.874]: Info: [wayland] Found interface: wl_output(113) version 4
[2026-11-07 17:47:00.874]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:47:00.874]: Info: [wayland] Offset: 0x0
[2026-11-07 17:47:00.874]: Info: [wayland] Logical size: 2048x1152
[2026-11-07 17:47:00.874]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:47:00.874]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:47:00.875]: Info: [pipewire] Streaming display 'Virtual-sunshine-vmon' offset: 0x0 resolution: 2048x1152
[2026-11-07 17:47:00.875]: Info: [wayland] Found display [wayland-1]
[2026-11-07 17:47:00.877]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-11-07 17:47:00.877]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 6
[2026-11-07 17:47:00.877]: Info: [wayland] Found interface: wl_output(113) version 4
[2026-11-07 17:47:00.877]: Info: [wayland] Resolution: 2560x1440
[2026-11-07 17:47:00.877]: Info: [wayland] Offset: 0x0
[2026-11-07 17:47:00.877]: Info: [wayland] Logical size: 2048x1152
[2026-11-07 17:47:00.877]: Info: [wayland] Name: Virtual-sunshine-vmon
[2026-11-07 17:47:00.877]: Info: [wayland] Found monitor: Virtual-sunshine-vmon
[2026-11-07 17:47:00.879]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
[2026-11-07 17:47:00.880]: Info: [pipewire] Connected to pipewire version 1.6.11
[2026-11-07 17:47:00.880]: Info: [pipewire] PipeWire stream state: connecting -> paused
[2026-11-07 17:47:00.893]: Info: [pipewire] Video format: 12
[2026-11-07 17:47:00.893]: Info: [pipewire] Size: 2048x1152
[2026-11-07 17:47:00.893]: Info: [pipewire] Color primaries: 0
[2026-11-07 17:47:00.893]: Info: [pipewire] Transfer function: 0
[2026-11-07 17:47:00.893]: Info: [pipewire] Compositor negotiated frame rate: 0/1, max: 119953/1000
[2026-11-07 17:47:00.893]: Info: [pipewire] using memory buffers
[2026-11-07 17:47:00.899]: Info: Creating encoder [hevc_nvenc]
[2026-11-07 17:47:00.899]: Info: Color coding: SDR (Rec. 601)
[2026-11-07 17:47:00.899]: Info: Color depth: 8-bit
[2026-11-07 17:47:00.899]: Info: Color range: MPEG
Online logs

No response

Lenguaje dominante
C++
Estrellas
43k
Forks
2.4k
Merge medio
1 d 15 h
PR fusionados (30 d)
105

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LizardByte/Sunshine

Todos los issues de LizardByte/Sunshine

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.