"peek" hangs gnome-shell Wayland sessions (but not Xorg)

Bug #1727742 reported by Jonathan Kamens
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Medium
gnome-shell (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I have "peek" installed from its PPA repository as described at https://github.com/phw/peek#ubuntu .

When I attempt to record a GIF with peek under Wayland, it counts down and then my display hangs. I can't even switch VTs, so the only thing I can do at this point is power-cycle my laptop. I know it's just the display hanging, not everything, because the music I'm listening to continues to play.

This occurs whether or not I set GDK_BACKEND to x11 before launching peek.

Peek works fine when I use it under Xorg instead of Xwayland.

See also https://github.com/phw/peek/issues/202 , the bug I filed with the peek developers about this, but regardless of whether peek is doing something wrong, it shouldn't be able to cause the display server to hang.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xwayland 2:1.19.5-0ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 26 10:09:23 2017
DistUpgraded: 2017-10-20 10:34:09,954 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: artful
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 5.1.30, 4.10.0-37-generic, x86_64: installed
 virtualbox, 5.1.30, 4.13.0-16-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Crystal Well Integrated Graphics Controller [8086:0d26] (rev 08) (prog-if 00 [VGA controller])
   Subsystem: CLEVO/KAPOK Computer Crystal Well Integrated Graphics Controller [1558:7410]
InstallationDate: Installed on 2017-05-19 (159 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
MachineType: System76, Inc. Galago UltraPro
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.13.0-16-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: xorg-server
UpgradeStatus: Upgraded to artful on 2017-10-20 (5 days ago)
dmi.bios.date: 12/12/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: Tag 12345
dmi.board.name: W740SU
dmi.board.vendor: Notebook
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: Notebook
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd12/12/2013:svnSystem76,Inc.:pnGalagoUltraPro:pvrgalu1:rvnNotebook:rnW740SU:rvrNotApplicable:cvnNotebook:ct9:cvrN/A:
dmi.product.family: Not Applicable
dmi.product.name: Galago UltraPro
dmi.product.version: galu1
dmi.sys.vendor: System76, Inc.
version.compiz: compiz 1:0.9.13.1+17.10.20170901-0ubuntu1
version.libdrm2: libdrm2 2.4.83-1
version.libgl1-mesa-dri: libgl1-mesa-dri 17.2.2-0ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 17.2.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.19.5-0ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.10.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20170309-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-2

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

affects: xorg-server (Ubuntu) → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
importance: Undecided → High
Revision history for this message
Jonathan Kamens (jik) wrote :

I am confused.

How do we know this is a gnome-shell issue rather than a Wayland issue?

As I noted in my bug report, peek works just fine if I use it under Xorg. In both cases I'm using the same gnome-shell.

What good is it going to do for me to report this as a bug to the GNOME team, when Wayland is an Ubuntu thing, not a GNOME thing?

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

"Wayland" is only a protocol. The product you are using is gnome-shell.

summary: - "peek" hangs Wayland display server
+ "peek" hangs gnome-shell Wayland sessions (but not Xorg)
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
Revision history for this message
Carl-Erik Kopseng (carlerik) wrote :

This is reported on the Gnome bug tracker as well (Nov 7): https://bugzilla.gnome.org/show_bug.cgi?id=790008

Changed in gnome-shell:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Carl-Erik Kopseng (carlerik) wrote :

I installed Peek using Snap and due to all the problems using Snap, the author of Peek recently pulled support for Snap packages. So the fix to this is
1. Don't use Wayland
2. Use non-snap packages, for instance Flatpak.

https://www.reddit.com/r/Ubuntu/comments/870bcn/snap_support_for_peek_screen_recorder_discontinued/
https://github.com/phw/peek/issues/245#issuecomment-375966170
https://forum.snapcraft.io/t/screen-recording-on-wayland/3563

Changed in gnome-shell:
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

According to the upstream bug this was fixed in 3.28.2.

Changed in gnome-shell (Ubuntu):
status: Incomplete → Fix Released
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.