! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-screenshooter -r fails with "Failed to grab seat"
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description Jan Greimann 2019-04-23 11:28:57 CEST
Expected behaviour:
- press shift + print
- select area for screenshot
- get a screenshot

Actual behaviour:
- press shift + print
- Cursor flickers once
- nothing happens
- .xsession-errors shows: ** (xfce4-screenshooter:19839): WARNING **: 11:24:59.578: Failed to grab seat

System:
~> lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco

~> uname -a
Linux lb01005 5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

~> dpkg -l |grep xfce4-screenshooter
ii  xfce4-screenshooter                     1.9.5-1                                 amd64        screenshots utility for Xfce
Comment 1 Jan Greimann 2019-04-23 11:31:26 CEST
Additional note:
pressing shift + print multiple times triggers sometimes the screen capture, but the chances seem quite low.
Comment 2 Andre Miranda editbugs 2019-04-24 03:08:40 CEST
Created attachment 8451 
increase-delay.diff

Can you try with the attached patch? It looks like 100ms is not enough for xfsettings to release the keyboard.
Let me know if increasing that solves the problem for you, if so I'm considering to retry the grab about 5 times with a 100ms delay between each attempt.
Comment 3 Jan Greimann 2019-04-24 10:43:15 CEST
Hi Andre,

I couldn't trigger the error any more after applying the patch. Seems to work fine with that patch.
Comment 4 Git Bot editbugs 2019-04-30 03:48:21 CEST
Andre Miranda referenced this bugreport in commit ffac21adbcb9d6dc75bb253fd388ae182ac5ccee

Try to grab seat more than once (Bug #15320)

https://git.xfce.org/apps/xfce4-screenshooter/commit?id=ffac21adbcb9d6dc75bb253fd388ae182ac5ccee
Comment 5 Andre Miranda editbugs 2019-04-30 03:49:16 CEST
Hopefully fixed with the commit above, please reopen if not.
Thanks for reporting.

Bug #15320

Reported by:
Jan Greimann
Reported on: 2019-04-23
Last modified on: 2019-04-30

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

increase-delay.diff (1.09 KB, patch)
2019-04-24 03:08 CEST , Andre Miranda
no flags

Additional information