Portal fails to grab full resolution when scaling is applied

オープン
#6,063 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, linux

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
43k
フォーク
2.4k
平均マージ
1日 15時間
マージ済み PR(30日)
105

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LizardByte/Sunshine のほかの issue

LizardByte/Sunshine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。