GNOME screen recorder drops vast majority of frames

Bug #1993912 reported by Matthew D. Mower
This bug report is a duplicate of:  Bug #1987631: Screencast only records one second. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I try to record a region on my screen, after about 4 seconds the frames stop updating. In the attached video, I am toggling between the two visible windows every half second, roughly. The only frame updates after 0:04 occur at 0:33, 1:07, and 1:40.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.4-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.15.0-52.58-generic 5.15.60
Uname: Linux 5.15.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Oct 22 12:13:30 2022
DisplayManager: gdm3
InstallationDate: Installed on 2022-05-01 (174 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 42.2-0ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Matthew D. Mower (mdmower) wrote :
Revision history for this message
Matthew D. Mower (mdmower) wrote :

Additional testing:
- My laptop (also with AMD graphics, Lenovo T14s Gen2) running the same OS also exhibits this issue.
- Switching my session from wayland to XOrg does not remedy the problem.
- Installing AMD drivers from https://www.amd.com/en/support/linux-drivers does not remedy the problem.

description: updated
Revision history for this message
Matthew D. Mower (mdmower) wrote :

I believe this is the same issue as reported here: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5585

Revision history for this message
Matthew D. Mower (mdmower) wrote :

It looks like the fix for this was just prepared for jammy-proposed a couple of days ago: https://git.launchpad.net/ubuntu/+source/gnome-shell/commit/js/dbusServices/screencast/screencastService.js?h=applied/ubuntu/jammy-proposed&id=40715f8dfa77b9edd5a8fad033718df4d4d65440

I've tested this change locally and verified it resolves the issue:
1. $ mkdir -p ~/.gnome-shell-custom-overlays/Screencast
2. $ gresource extract /usr/share/gnome-shell/org.gnome.Shell.Screencast.src.gresource /org/gnome/Shell/Screencast/js/screencastService.js > ~/.gnome-shell-custom-overlays/Screencast/screencastService.js
3. Apply changes to screencastService.js from https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/d32c03488fcf6cdb0ca2e99b0ed6ade078460deb )
4. Add the following to ~/.profile: export G_RESOURCE_OVERLAYS="/org/gnome/Shell/Screencast/js/screencastService.js=$HOME/.gnome-shell-custom-overlays/Screencast/screencastService.js"
5. Logout and login

tags: added: amdgpu
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's the fix for bug 1987631 so we can merge with that.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.